Open CV小细节
1.记录时间
double time = static_cast<double>(getTickCount());
time = ((double)getTickCount() - time)/getTickFrequency();
2.效果图的大小、类型与原图片相同
Mat dstImage;
dstImage.create(srcImage.rows,srcImage.cols,srcImage.type());
3.判定读取错误的方法
if( !srcImage1.data )
{ printf(