Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

for a 1 channel CV_8U image, your Pixel should not be:

typedef cv::Point_<uchar> Pixel; // wrong

but simply:

typedef uchar Pixel;  //  correct

then you'd get:

 Size : 2 , 3
[0,0]= 125      [0,1]= 145      [0,2]= 37
[1,0]= 71       [1,1]= 255      [1,2]= 90


[0,0]= 125
[1,0]= 71
[0,1]= 145
[1,1]= 255
[0,2]= 37
[1,2]= 90