How can I reset the h and s channels?
1 回表示 (過去 30 日間)
古いコメントを表示
I have an image in hsv and I would like to set the h and s channels to 0 in order to have the desaturated image. How can I do?
0 件のコメント
採用された回答
Walter Roberson
2018 年 3 月 24 日
NewImage = hsvimage;
NewImage(:, :, 1:2) = 0;
However if your purpose is to desaturate then you should only assign to the s channel, 2
3 件のコメント
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!