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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -