How can I reset the h and s channels?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
matlab9000
am 24 Mär. 2018
Kommentiert: matlab9000
am 27 Mär. 2018
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 Kommentare
Akzeptierte Antwort
Walter Roberson
am 24 Mär. 2018
NewImage = hsvimage;
NewImage(:, :, 1:2) = 0;
However if your purpose is to desaturate then you should only assign to the s channel, 2
3 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!