Mean Greyscale Index matrix

1 vue (au cours des 30 derniers jours)
Muhammad Hilmi Azman
Muhammad Hilmi Azman le 14 Mai 2019
How do I calculate mean N x M in 2d pictures?
Is it same is I use mean2() function?

Réponses (1)

Aiswarya
Aiswarya le 6 Juil 2022
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(:));

Catégories

En savoir plus sur Matrix Indexing dans Help Center et File Exchange

Produits


Version

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by