opencv image conversion from rgb to hsv
Posted
by kaushalyjain
on Stack Overflow
See other posts from Stack Overflow
or by kaushalyjain
Published on 2010-06-10T18:58:40Z
Indexed on
2010/06/10
19:02 UTC
Read the original article
Hit count: 329
When I run this following code on a sample image ie an rgb image; and then execute it to display the converted hsv image, both appear to be different... can anyone explain why? or can you suggest a solution for this not to happen... coz its the same image afterall
Mat img_hsv,img_rgb,red_blob,blue_blob;
img_rgb = imread("pic.png",1);
cvtColor(img_rgb,img_hsv,CV_RGB2HSV);
namedWindow("win1", CV_WINDOW_AUTOSIZE);
imshow("win1", img_hsv);
© Stack Overflow or respective owner