How to calculate rgb chromaticity value for set of images?

3 visualizaciones (últimos 30 días)
Sajina Rose
Sajina Rose el 16 de Ag. de 2019
Respondida: Image Analyst el 18 de Ag. de 2019
  4 comentarios
Walter Roberson
Walter Roberson el 18 de Ag. de 2019
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 el 18 de Ag. de 2019
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??

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 18 de Ag. de 2019
To convert ot grayscale, use rgb2gray().
To change the colors or enhance the colors, try the attached demos.

Categorías

Más información sobre Image Filtering and Enhancement en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by