PANDORE Version 6 GREYC-IMAGE

pinnermostmerging



Performs inner-most region merging.



Synopsis

pmostinnermostmerging [-m mask] [rg_in1|-] [rg_in2|-] [rg_out|-]

Description

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.

Inputs

Outputs

Result

Returns the number of merged regionß.

Examples

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

See also

Segmentation

C++ prototype

Errc PMostInneMostMerging( const Reg2d &rg_in1, const Reg2d &rg_in2, Reg2d &rg_out );

Version française

Fusion de régions avec la région voisine la plus englobante.


Author: Régis Clouard