Mean Greyscale Index matrix

How do I calculate mean N x M in 2d pictures?
Is it same is I use mean2() function?

Respuestas (1)

Aiswarya
Aiswarya el 6 de Jul. de 2022

0 votos

According to my understanding you want to calculate mean of all pixels in the image and it's a greyscale image.
So if your image is given by img you can use the function mean in the manner given below:
meanIntensity = mean(img(:));

Categorías

Productos

Versión

R2018a

Preguntada:

el 14 de Mayo de 2019

Respondida:

el 6 de Jul. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by