Ask Your Question
0

RGB to YIQ color space conversion for a image

asked 2014-02-26 05:24:33 -0600

Sajal Gupta gravatar image

updated 2014-02-26 05:27:35 -0600

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-26 08:10:39 -0600

updated 2014-02-26 08:12:19 -0600

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);
edit flag offensive delete link more

Question Tools

Stats

Asked: 2014-02-26 05:24:33 -0600

Seen: 5,517 times

Last updated: Feb 26 '14