标签:style blog class code ext get
IplImage *img = cvLoadImage("D:\\07Personal files\\headpicture.jpg"); CvScalar pixel; CvScalar s; s=cvGet2D(img,10,2); printf("B=%f,G=%f,R=%f/t", s.val[0], s.val[1], s.val[2]);
>> I=imread(‘headpicture.jpg‘); >> R=I(:,:,1); >> G=I(:,:,2); >> B=I(:,:,3); >> R(11,3) ans = 31 >> G(11,3) ans = 27 >> B(11,3) ans = 28
vector<Point2f> corners; ... FILE* fp = fopen(str, "wt"); Point2f data; for (int i=0;i<corners1.size();i++) { data=corners1.at(i); fprintf(fp, "%f %f\n", data.x,data.y); } fclose(fp);
MATLAB基本操作(十):关于OpenCV坐标系与MATLAB中矩阵行与列的对应,布布扣,bubuko.com
MATLAB基本操作(十):关于OpenCV坐标系与MATLAB中矩阵行与列的对应
标签:style blog class code ext get
原文地址:http://blog.csdn.net/jxlijunhao/article/details/25003381