Mean Greyscale Index matrix

1 次查看(过去 30 天)
Muhammad Hilmi Azman
回答: Aiswarya 2022-7-6
How do I calculate mean N x M in 2d pictures?
Is it same is I use mean2() function?

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Matrix Indexing 的更多信息

产品


版本

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by