フィルターのクリア

How can i get a magnitue of an image?

2 ビュー (過去 30 日間)
Hashem Burki
Hashem Burki 2011 年 5 月 22 日
I have got a grayscale image and i want to find its magnitude. As in that image should return a single scalar number.

回答 (1 件)

Walter Roberson
Walter Roberson 2011 年 5 月 23 日
What do you mean by the magnitude of a grayscale image? Do you want the average pixel intensity, or do you want the total pixel intensity, or something else? And are you trying to do this in Simulink or in MATLAB?
Total intensity:
sum(YourImage(:))
Average intensity:
mean(YourImage(:))

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by