Mean Greyscale Index matrix

2 ビュー (過去 30 日間)
Muhammad Hilmi Azman
Muhammad Hilmi Azman 2019 年 5 月 14 日
回答済み: 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 Center および File ExchangeMatrix Indexing についてさらに検索

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by