area_holes — Compute the area of holes of regions.
area_holes calculates the area of the holes in the
input regions. The area is defined as the number of pixels contained in the
holes. If a region has more than one hole the sum of the areas of all holes
in this region are returned. The neighborhood type is set via
In the documentation of this chapter (Regions / Features), you can find an image illustrating regions which vary in the area of their holes.
If more than one region is passed the results are stored in tuples with the index of a value in the tuple corresponding to the index of the input region. In case of an empty region the area has the value 0.
Region(s) to be examined.
Area(s) of holes of the region(s).
read_image(Image,'modules/modules_01') threshold(Image,Region,50,250) area_holes(Region,Area)
area_holes returns TRUE if all parameters are