Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CV_8UC3 is simply the wrong flag here, please use one of the IMREAD_XXX flags instead, like:

cv::Mat image = cv::imread("image_file.jpg", IMREAD_COLOR);

CV_8UC3 is simply the wrong flag here, please use one of the IMREAD_XXX flags instead, like:

cv::Mat image = cv::imread("image_file.jpg", IMREAD_COLOR);
cv::IMREAD_COLOR);