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!