View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Image intensity statistics

Be the first to rate this file! 8 Downloads (last 30 days) File Size: 1.85 KB File ID: #27870 Version: 1.0

Image intensity statistics


Cyril (view profile)


Computes statistics on the intensity of an image.

| Watch this File

File Information

This function returns statistics on the intensity of an image, including the sum, mean, standard deviation, min and max. A rectangular region of interest can be selected by the user by using 'r' as the 2nd parameter. Alternatively, the region of interest can be more accurately defined by a passing its coordinates as a vector.

%IMGSTAT Image statistics
% Returns statistics of an image M, or a portion of it.
% Syntax
% [sum,avg,std,min,max] = imgstat(M)
% [sum,avg,std,min,max] = imgstat(M,'r')
% [sum,avg,std,min,max] = imgstat(M,V)
% Description
% imgstat(M)
% returns the stats of the matrix M.
% imgstat(M,'r')
% displays M and lets you select a rectangle for the stats. To
% constrain the rectangle to be a square, use a shift- or right-click
% to begin the drag.
% imgstat(M,V)
% returns the stats of a portion of M, defined by V.
% V is a four-element vector with the form [xmin ymin width height],
% with the origin being the upper-left corner of the image.

Required Products Image Processing Toolbox
MATLAB release MATLAB 7.10 (R2010a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us