Ask Your Question

Revision history [back]

click to hide/show revision 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.

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.