Function File: total = bwarea (bw)

Estimate total area of objects on the image bw.

The image bw can be of any class, even non-logical, in which case non zero valued pixels are considered to be an object.

This algorithm is not the same as counting the number of pixels belonging to an object as it tries to estimate the area of the original object. The value of each pixel to the total area is weighted in relation to its neighbour pixels.

See also: im2bw, bweuler, bwperim, regionprops.

Package: image