1 | initial version |
Whats wrong in this snippet? -- the type. please check disp.type()
.
if it's CV_16S, use:
disp.at<short>(0, 0));
if it's CV_16U:
disp.at<ushort>(0, 0));
2 | No.2 Revision |
Whats wrong in this snippet? -- the type. please check disp.type()
.
if it's CV_16S, use:
disp.at<short>(0, 0));
if it's CV_16U:
disp.at<ushort>(0, 0));
maybe just print out some small region:
cout << disp(Rect(100,100,10,10)) << endl;