Home > freetb4matlab > image > bwarea.m

bwarea

PURPOSE ^

% Estimates the area of the 'on' pixels of @var{bw}.

SYNOPSIS ^

function total = bwarea(bw)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} @var{total}= bwarea(@var{bw})
% Estimates the area of the 'on' pixels of @var{bw}.
% If @var{bw} is a binary image 'on' pixels are defined as pixels
% valued 1. If @var{bw} is a grayscale image 'on' pixels is defined
% as pixels with values larger than zero.
% This algorithm is not the same as counting the number of 'on'
% pixels as it tries to estimate the area of the original object
% and not the image object.
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003