1/21/2014

(OpenCV Study) Color Mat convert to gray Mat, cvtColor function example

cv::Mat greyMat, colorMat;
cv::cvtColor(colorMat, greyMat, CV_BGR2GRAY);

and

cv::cvtColor(greyMat, colorMat, CV_GRAY2BGR);


No comments:

Post a Comment