How can i get a magnitue of an image?

1 visualización (últimos 30 días)
Hashem Burki
Hashem Burki el 22 de Mayo de 2011
I have got a grayscale image and i want to find its magnitude. As in that image should return a single scalar number.

Respuestas (1)

Walter Roberson
Walter Roberson el 23 de Mayo de 2011
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(:))

Categorías

Más información sobre Computer Vision with Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by