PANDORE Version 6 | GREYC-IMAGE |
pfillhole builds the output region map rg_out with the regions of the input region map rg_in where all holes are filled.
A hole is an inner region into a unique region with label =0 (ie, the inner region has only one neighbor). The connexity defines the conexity of the holes. If the continuity of holes is defined as 4-connexity then then continuity of the regions is defined as 8-connexity and conversely. A hole that touches the border are not considered as a hole. The hole is filled with the same label as the including region. Regions keep the same label in the output region map than in the input region map.
connexity specifies the hole connexity (4 and 8 for 2D image and 6 or 26 for 3D image).
Returns the number of filled holes.
Fills holes (4-connex) of the regions in the input region map rin.pan:
pfillhole 4 rin.pan rout.pan
Bouchage des trous dans les régions.
Author: Régis Clouard