一、如何自创图片
Mat类对象一种的构造函数的输入的参数如下。可以设定图片的长宽,图片的类型如8位的RGB(CV_8SC3)类型的图片。
Mat (int rows, int cols, int type, const Scalar &s)
二、自绘画图形
1、画圆
void cv::circle ( InputOutputArray img, Point center, int radius, const Scalar & color, int thickness =

一、如何自创图片
Mat类对象一种的构造函数的输入的参数如下。可以设定图片的长宽,图片的类型如8位的RGB(CV_8SC3)类型的图片。
Mat (int rows, int cols, int type, const Scalar &s)
二、自绘画图形
1、画圆
void cv::circle ( InputOutputArray img, Point center, int radius, const Scalar & color, int thickness =