Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

the correct way to access CV_16U3C pixels is:

 cv::Vec3w pixVal = im.at<cv::Vec3w>(0,2); // unsigned short

for CV_16S3C it would be:

 cv::Vec3s pixVal = im.at<cv::Vec3s>(0,2); // signed short