1 | initial version |
don't use cvCvtColor
, but cv::cvtColor
instead.
cv::Mat matInput(nHeight, nWidth, CV_8UC3);
cv::Mat matOutput; // empty
cv::cvtColor(matInput, matOutput, CV_BGR2HSV);
in short, try to avoid mixing old cv* functions and new cv::* ones.
2 | No.2 Revision |
don't use cvCvtColor
, but cv::cvtColor
instead.
cv::Mat matInput(nHeight, nWidth, CV_8UC3);
cv::Mat matOutput; // empty
empty, cvtColor will care for that
cv::cvtColor(matInput, matOutput, CV_BGR2HSV);
in short, try to avoid mixing old cv* functions and new cv::* ones.