How to find average R value in an RGB image?

1 Ansicht (letzte 30 Tage)
Sivasurya J
Sivasurya J am 2 Feb. 2018
Beantwortet: Jan am 2 Feb. 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

Antworten (1)

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

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by