24,854
社区成员
发帖
与我相关
我的任务
分享
.at<typename>(i,j);
可以遍历mat格式的图像,但是当我写 int z=m.<CV_16U>(1,1);
(m为mat格式的灰度图像)mat m(iplimage);
即可。#include <stdlib.h>
#include <stdio.h>
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <opencv2/opencv.hpp>
#include "opencv2/core/core.hpp"
#include <iostream>
#include "device_launch_parameters.h"
#include "cxcore.h"
using namespace cv;