Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/cplusplus/156.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/opencv/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C++ OpenCV Mat对象UINT16中的访问值_C++_Opencv - Fatal编程技术网

C++ OpenCV Mat对象UINT16中的访问值

C++ OpenCV Mat对象UINT16中的访问值,c++,opencv,C++,Opencv,如何访问Opencv Mat中的特定单元格,键入UINT16 我试过下面的那些,但都不管用 depthV = depthIm.at<int>(i, j); depthV = depthIm.at<UINT16>(i, j); depthV = depthIm.at<float>(i, j); depthV = depthIm.at<double>(i, j); depthV=depthIm.at(i,j); 深度v=在(i,j)处的深度; 深度v

如何访问Opencv Mat中的特定单元格,键入UINT16 我试过下面的那些,但都不管用

depthV = depthIm.at<int>(i, j);
depthV = depthIm.at<UINT16>(i, j);
depthV = depthIm.at<float>(i, j);
depthV = depthIm.at<double>(i, j);
depthV=depthIm.at(i,j);
深度v=在(i,j)处的深度;
深度v=在(i,j)处的深度;
深度v=在(i,j)处的深度;
int depthV=depthIm.at(i,j);
int depthV = depthIm.at<unsigned short>(i, j);