MATLAB Answers

0

Variance of image in matlab

Asked by Amir Majhool on 14 Jul 2019
Latest activity Edited by KALYAN ACHARJYA on 14 Jul 2019
Hi I wanna calculate variance of image on the matlab, what is the code? My image is grayscale not RGB.

  0 Comments

Sign in to comment.

1 Answer

Answer by KALYAN ACHARJYA on 14 Jul 2019
Edited by KALYAN ACHARJYA on 14 Jul 2019

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(:))

  0 Comments

Sign in to comment.