RGB to YIQ color space conversion for a image
Can anybody help me out with the complete method/code/inbuilt library function for converting an rgb mat image to an ntsc/yiq color space.
Like explained here, you need to write your own conversion function for that. It can be retrieved in the middle of the page!
However, if you can accept that the fact that your result is a bit less smooth, the HSV color space has similar results:
Mat original_image = imread("path_to_image");
Mat converted_image = original.clone();
cvtColor(original_image, converted_image, CV_BGR2HSV);
Asked: 2014-02-26 05:24:33 -0600
Seen: 5,723 times
Last updated: Feb 26 '14