知识点列表
findcontours
contourArea
arcLength
Mat的相关属性
imread/imshow/imwrite
Mat类
头文件:#include<opencv\highgui.h>
构造函数:
Mat();
//rows是二维矩阵的行数,cols是列数,type是矩阵类型,详见**opencv中type的枚举常量**
Mat(int rows, int cols, int type);
//size是Size型变量,Size(cols,rows),在size中,**行数和列数是相反的**
Mat(Size size, int type);
//s是Scalar型常量,用于将矩阵元素赋予特定值,如果要在创建Mat之后再赋值,可以使用赋值运算符(assignment operator)
//Mat::operator=(const Scalar& value)
Mat(int rows, int cols, int type, const Scalar& s);
Mat(Size size, int type, const Scalar& s);
//ndims指的数组维度,sizes是指定(specifying)n维数组形状的整数数组
Mat(int ndims, const int* sizes, int type);
//sizes用于指定n维数组的形状
Mat(const std::vector<int>& sizes, int type);
Mat(int ndims, const int* sizes, int