Reputation:
I copy a part of an image to a new one:
bigImage.ROI = SomeRectangle;
Emgu.CV.Image<Emgu.CV.Structure.Rgb, byte> roiImage = bigImage.Copy();
Now roiImage.Cols==roiImage.Width==1
and roiImage.Rows==roiImage.Height==106
; however size of roiImage.Data
is [106,4,3]
. So Width of image is not equal to the second dimension of the data.
Why does that occur?
Upvotes: 2
Views: 1708
Reputation: 2702
EmguCV requires each row of your image to be aligned by 4 bytes to improve efficiency in fetching data.
Upvotes: 1