OpenCV - 应用场景笔记

  • cvtColor :转换图像的色彩空间,BGR,HSV,GRAY,HLS。。。

  • ShowManyImageOnSingleWindow : 在同一个cvWindow上显示多幅图像,便于观察对比

  • 有时候需要创建一幅空白图像作为背景,使用Mat的构造函数            

// Create color background
Mat colorBackground = Mat(cols, rows, CV_8UC3, Scalar(0,0,0)) 
// Create gray background 
Mat grayBackground = Mat(cols, rows, CV_8UC1, Scalar(0))

猜你喜欢

转载自blog.csdn.net/baishuo8/article/details/80861581