how to find variance of an image using built in matlab function?

3 views (last 30 days)
any body help me with how to read an image and find single scalar value of the variance of the read image.

Answers (1)

Walter Roberson
Walter Roberson on 20 May 2012
IM = imread('TheImageName.jpg');
var(IM(:))

Categories

Find more on Images in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!