Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

noob quation about image size

Hi All,

when I load an image via imread command I get the image size ,that is row and columns are inverted. For example say I have an jpg image of size 48x24 pixels (when I right clicked the mouse in windows explorer I see its properties) and whan I ask OpenCV to cout image.rows I get 24 and when I print out image.cols I get 48.

I can't figure it out why rows and cols are inverted in OpenCV

Thank u in advance

noob quation A question about image sizesize concerning inverted image rows and colums

Hi All,

when I load an image via imread command I get the image size ,that is row and columns are inverted. For example say I have an jpg image of size 48x24 pixels (when I right clicked the mouse in windows explorer I see its properties) and whan I ask OpenCV to cout image.rows I get 24 and when I print out image.cols I get 48.

I can't figure it out why rows and cols are inverted in OpenCV

Thank u in advance