PANDORE Version 6 | GREYC-IMAGE |
pinnermerging merges regions of input region map rg_in1 to regions of input region map rg_in2 if rg_in2 regions are inner rg_in1 regions.
An inner region in rg_in2 has only one neighbor region in region map rg_in1 other than region 0. Regions of the 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 merging.
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 pinnermerging b.pan e.pan out.pan
Fusion de régions englobées dans d'autres régions.
Author: Régis Clouard