How can I reset the h and s channels?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
matlab9000
el 24 de Mzo. de 2018
Comentada: matlab9000
el 27 de Mzo. de 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 comentarios
Respuesta aceptada
Walter Roberson
el 24 de Mzo. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Convert Image Type en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!