rgb to hsv or hsi. color of image changes.
Show older comments
Hi when i convert rgb to hsv and thn i try to show image by imshow(I_HSV) result is quite diff from what with imshow(I_RGB).
wats the reason behind this???
if u have ne idea please let me know. Is imshow() applicable to rgb images only????
Accepted Answer
More Answers (3)
Andrew Newell
on 14 Jun 2011
1 vote
Yes, imshow is applicable to rgb images only. The reason for using rgb2hsv is to adjust hue, saturation or value. Then you have to translate back using hsv2rgb.
Image Analyst
on 14 Jun 2011
1 vote
What it's doing is assuming the Hue channel should be displayed as red, the saturation channel as green, and the value channel as blue. Of course, this will look strange. And there may be some scaling issues which may worsen the problem, since HSV images are floating point and sometimes floating point images need to be in the range 0-1 while other times they can be in the range 0-255 - it just depends on how you're displaying them.
HARSHIT SHARMA
on 19 Jun 2011
0 votes
Categories
Find more on Display Image in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!