int main()
{
Mat src = imread("C:\\Users\\Administrator\\Desktop\\TestImage\\clip_2.png");
const unsigned char *data = src.ptr<uchar>(0);
Mat dst;
dst = cv::Mat(src.rows, src.cols, CV_8UC3);
int imageSize = src.rows*src.cols*src.channels();
memcpy_s(dst.data, imageSize, data, imageSize);
namedWindow("output");
imshow("output", dst);
waitKey();
return 0;
}