rgb to hsv or hsi. color of image changes.
古いコメントを表示
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????
採用された回答
その他の回答 (3 件)
Andrew Newell
2011 年 6 月 14 日
1 投票
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
2011 年 6 月 14 日
1 投票
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.
カテゴリ
ヘルプ センター および File Exchange で Display Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!