필터 지우기
필터 지우기

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 CenterFile Exchange에서 Computer Vision with Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by