Ask Your Question
0

Why iplimage's widthStep is different from original image width?

asked 2014-01-29 23:18:39 -0600

james gravatar image

I know widthStep is the minimum number of 4's multiple which is larger than image width. But I can't understand WHY. Why they waste the memory to make iplimage's width 4's multiple? What I want to know is the ADVANTAGE if we use 4's multiple number of image width. I want know it concretely. Please help me.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2014-01-30 00:31:11 -0600

Nghia gravatar image

It was advantageous back in the old CPU days, probably not so much now. Here is a good post on it

http://stackoverflow.com/questions/2185944/why-must-stride-in-the-system-drawing-bitmap-constructor-be-a-multiple-of-4

edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-01-29 23:18:39 -0600

Seen: 860 times

Last updated: Jan 30 '14