How to find the image as in which channel it is in?

2 visualizaciones (últimos 30 días)
Manoj Kumar
Manoj Kumar el 17 de Oct. de 2014
Comentada: Manoj Kumar el 20 de Oct. de 2014
Hi, I have an RGB image and I want to know the channel it belongs to.
whether red, green or blue. Here is the Image.
I know it is in blue channel but I just want to know how to find that...
Please assist me.
Thanks...

Respuesta aceptada

Image Analyst
Image Analyst el 17 de Oct. de 2014
Look for the channel that has the highest mean. To get the means:
redMean = mean2(rgbImage(:,:,1))
greenMean = mean2(rgbImage(:,:,2))
blueMean = mean2(rgbImage(:,:,3))

Más respuestas (0)

Categorías

Más información sobre Propagation and Channel Models en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by