opencv学习之Mat对象

构造函数,有多种生成方式。

 1 Mat();
 2 
 3     
 4     Mat(int rows, int cols, int type);
 5 
 6     
 7     Mat(Size size, int type);
 8 
 9     
10     Mat(int rows, int cols, int type, const Scalar& s);
11 
12    
13     Mat(Size size, int type, const Scalar& s);
14 
15   
16     Mat(int ndims, const int* sizes, int type);
17 
18    
19     Mat(const std::vector<int>& sizes, int type);
20 
21   
22     Mat(int ndims, const int* sizes, int type, const Scalar& s);
23 
24  
25     Mat(const std::vector<int>& sizes, int type, const Scalar& s);
26 
27 
28   
29     Mat(const Mat& m);
30 
31     
32     Mat(int rows, int cols, int type, void* data, size_t step=AUTO_STEP);
33 
34    
35     Mat(Size size, int type, void* data, size_t step=AUTO_STEP);
36 
37    
38     Mat(int ndims, const int* sizes, int type, void* data, const size_t* steps=0);
39 
40    
41     Mat(const std::vector<int>& sizes, int type, void* data, const size_t* steps=0);
42 
43    
44     Mat(const Mat& m, const Range& rowRange, const Range& colRange=Range::all());
45 
46   
47     Mat(const Mat& m, const Rect& roi);
48 
49    
50     Mat(const Mat& m, const Range* ranges);
51 
52    
53     Mat(const Mat& m, const std::vector<Range>& ranges);

 

posted @ 2019-11-16 23:09  esc_coder  阅读(92)  评论(0)    收藏  举报