PANDORE Version 6 | GREYC-IMAGE |
pinnermostmerging merges regions of input region map rg_in1 to regions of input region map rg_in2 if rg_in2 regions are inner-most rg_in1 regions.
Inner region in rg_in2 is merged with the including region of input region map rg_in that has the longest common boundary points with the inner region other than region 0. Regions of region map rg_in2 that have no neighbor in the region map rg_in1 are not kept in the output region map rg_out.
Returns the number of merged regionß.
Segments tangram.pan and then merges inner regions:
pbinarization 96 1e30 tangram.pan a.pan plabeling 8 a.pan b.pan pfillhole b.pan c.pan pdif b.pan c.pan d.pan plabeling 8 d.pan e.pan pinnermostmerging b.pan e.pan out.pan
Fusion de régions avec la région voisine la plus englobante.
Author: Régis Clouard