c# - EmguCV Image size different from Image.Data size -


i copy part of image new one:

bigimage.roi = somerectangle; emgu.cv.image<emgu.cv.structure.rgb, byte> roiimage = bigimage.copy(); 

now roiimage.cols==roiimage.width==1 , roiimage.rows==roiimage.height==106; size of roiimage.data [106,4,3]. width of image not equal second dimension of data.

why occur?

emgucv requires each row of image aligned 4 bytes improve efficiency in fetching data.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -