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

조회 수: 2 (최근 30일)
Manoj Kumar
Manoj Kumar 2014년 10월 17일
댓글: Manoj Kumar 2014년 10월 20일
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...

채택된 답변

Image Analyst
Image Analyst 2014년 10월 17일
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))

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Propagation and Channel Models에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by