Variance of image in matlab

Hi I wanna calculate variance of image on the matlab, what is the code? My image is grayscale not RGB.

Réponses (1)

KALYAN ACHARJYA
KALYAN ACHARJYA le 14 Juil 2019
Modifié(e) : KALYAN ACHARJYA le 14 Juil 2019

1 vote

var_result=var(gray_image)
It returns the row matrix variance with respect to each column
Detail Documentation var
For Complete image, try the following
var_result=var(gray_image(:))

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by