How can I reset the h and s channels?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
matlab9000
il 24 Mar 2018
Commentato: matlab9000
il 27 Mar 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 Commenti
Risposta accettata
Walter Roberson
il 24 Mar 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 Commenti
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Convert Image Type in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!