PANDORE Version 6 GREYC-IMAGE

pinnermerging



Performs inner region merging.



Synopsis

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

Description

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.

Inputs

Outputs

Result

Returns the number of merging.

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
    pinnermerging b.pan e.pan out.pan

See also

Segmentation

C++ prototype

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

Version française

Fusion de régions englobées dans d'autres régions.


Author: Régis Clouard