Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

If you use cv::cvtColor(gray, color, cv::COLOR_GRAY2BGR) you should get a 3 channel image but there are no colors, because all the channels have the same value as the gray image. Except if your gray image is not a normal gray image, but some kind of a map image (like values between x and y are z color)

If you use cv::cvtColor(gray, color, cv::COLOR_GRAY2BGR) cv::COLOR_GRAY2BGR) you should get a 3 channel image but there are no colors, because all the channels have the same value as the gray image. Except if your gray image is not a normal gray image, but some kind of a map image (like values between x and y are z color)