How to find the image as in which channel it is in?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Manoj Kumar
le 17 Oct 2014
Commenté : Manoj Kumar
le 20 Oct 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...
0 commentaires
Réponse acceptée
Image Analyst
le 17 Oct 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))
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Propagation and Channel Models dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!