필터 지우기
필터 지우기

How to calculate rgb chromaticity value for set of images?

조회 수: 2 (최근 30일)
Sajina Rose
Sajina Rose 2019년 8월 16일
답변: Image Analyst 2019년 8월 18일
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 8월 18일
meanRGB = squeeze( sum(sum( double(YourImage), 1), 2) ./ (size(YourImage,1).*size(YourImage,2)) );
Or if you have R2019a or later,
meanRGB = squeeze(mean(YourImage, [1 2]));
Sajina Rose
Sajina Rose 2019년 8월 18일
Thank you sir..........and also one thing I want to enhance(adjust) two channels of the image by assuming third channel is unchanged.......How can I do it sir??

댓글을 달려면 로그인하십시오.

답변 (1개)

Image Analyst
Image Analyst 2019년 8월 18일
To convert ot grayscale, use rgb2gray().
To change the colors or enhance the colors, try the attached demos.

카테고리

Help CenterFile Exchange에서 Image Filtering and Enhancement에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by