Mat理解:
Mat頭和數據區域
淺複製:
Mat A, C; // creates just the header parts
A = imread(argv[1], IMREAD_COLOR); // here we'll know the method used (allocate matrix)
Mat B(A); // Use the copy constructor
C = A; // Assignment operator
Mat D (A, Rect(10, 10, 100, 100) ); // using a rectangle
Mat E = A(Range::all(), Range(1,3)); // using row and column boundaries
深複製:
Mat F = A.clone();
Mat G;
A.copyTo(G);
Mat初始化操作
Mat輸出
其它數據操作(Point2f )