Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am not familiar with the C-Api, but I doubt that with Iat->width(x) you will get a row, use cvGetRow(), see http://docs.opencv.org/modules/core/doc/old_basic_structures.html#CvMat%20cvGetRow(const%20CvArr%20arr,%20CvMat*%20submat,%20int%20row). Furthermore, your loop-ending Iat->width seems wrong, since I guess you want to iterate over all rows, i.e. you probably need Iat->height.