How to find average R value in an RGB image?

1 visualización (últimos 30 días)
Sivasurya J
Sivasurya J el 2 de Feb. de 2018
Respondida: Jan el 2 de Feb. de 2018
I am trying to split the RGB image into separate colors(like R,G,B) and find the average value for each colours. Please anyone can help me... I need this code for my project

Respuestas (1)

Jan
Jan el 2 de Feb. de 2018
RGB = rand(640, 480, 3);
avgRGB = mean(reshape(RGB, [], 3), 1)

Categorías

Más información sobre Image Processing Toolbox 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