Converting image from HSI back to RGB changes color composition after processing I component
古いコメントを表示
Hello all,
I am trying to accomplish a certain process on color images. But performing the same on all R, G, B planes individually is very time consuming and computationally expensive. So I figured that since the I component of HSI would be good enough to alter the visual statistics of the image ( mean and variance). However when I convert it back to RGB, keeping the hue and saturation components as is, the output image is very different from the input in terms of color composition. Any ideas how can I go back to RGB without destroying the color profile?
回答 (1 件)
Image Analyst
2013 年 4 月 28 日
0 投票
How did you do the conversion? Did you actually use V instead of I and use rgb2hsv()? Changing the V component slightly should not change the Hue and Saturation and the colors should look pretty much the same, just brighter or darker according to whatever modifications you made in the V channel. I can't say much more without your image and your code.
2 件のコメント
Parth Parikh
2013 年 4 月 28 日
Image Analyst
2013 年 4 月 28 日
編集済み: Image Analyst
2013 年 4 月 28 日
If you wrote your own functions for going from HSI to RGB, then I can't debug or fix them because I don't know what they are.
There are no histogram matching routines built into MATLAB. You'd have to write them yourself, like I did in my histogram matching application.
カテゴリ
ヘルプ センター および File Exchange で Convert Image Type についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!