% -*- 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