Ask Your Question

Revision history [back]

click to hide/show revision 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));

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;