标签:mat extract ace div open nbsp rac img return
#include <iostream> #include "opencv2/opencv.hpp" #include <stdio.h> using namespace std; using namespace cv; int main( int argc, char* argv[] ) { Mat A = Mat::eye(6, 6, CV_32S); Mat B = A.row(2); //get second row Mat C = 3*A.col(2); // extracts A columns, 1 (inclusive) to 3 (exclusive). Mat D= A(Range(1, 3), Range::all()); cout<<"yunfung test:"<<endl<<endl; cout<<"A"<< A<<endl<<endl; cout<<"B"<< B<<endl<<endl; cout<<"C"<< C<<endl<<endl; cout<<"D"<< D<<endl<<endl; return(0); }
标签:mat extract ace div open nbsp rac img return
原文地址:http://www.cnblogs.com/yunfung/p/7616141.html