1 | initial version |
please AVOID
to use Mat::at
as good as you can. in 95% of all cases it's the wrong
thing to do.
to print out a 1 pixel Mat use:
cout << sobel_x(Rect(100, 100, 1, 1)) << endl;
this solves 3 problems:
2 | No.2 Revision |
please AVOID
to use Mat::at
as good as you can. in 95% of all cases it's the wrong
thing to do.
to print out a 1 pixel Mat use:
cout << sobel_x(Rect(100, 100, 1, 1)) << endl;
this solves 3 problems:
ddepth
, and why do you assume uchar here ?)