PANDORE Version 6 GREYC-IMAGE

phistomerging



Perfoms priority region merging based on histogram correlation.


Synopsis

phistomerging number threshold [-m mask] [rg_in|-] [gr_in|-] [im_in|-] [rg_out|-] [gr_out|-]

Description

phistomerging merges connected regions of the input region map rg_in if the correlation between their histogram is greater than the specified threshold.

The algorithm uses the priority merging that consists in merging regions with the greater correlation.

The output region map reg_out defines the new regions and the output graph gr_out defines the new relationship between regions.

The correlation between two histograms is given by:

   correlation(H1,H2) = H1.H2 / (norm(H1).norm(H2))

where H1.H2 = scalar product between H1 and H2 and norm(Hi) = euclidean norm of histogram Hi.

The greater is the correlation, the closer is the two histograms.

Parameters

Inputs

Outputs

Result

Returns the number of merging.

Examples

Merges regions yielded by a quadtree splitting process:

   puniformityquadtree 0.9 tangram.pan a.pan
   prg2gr a.pan b.pan
   phistomerging -1 0.94 a.pan b.pan tangram.pan c.pan d.pan

See also

Segmentation

C++ prototype

Errc PHistoMerging(Reg2d &rg_in, Graph2d &gr_in, Img2duc &im_in, Reg2d &rg_out, Graph2d &gr_out, long number, float threshold);

Version française

Fusion prioritaire de régions selon la corrélation d'histogramme.


Author: Laurent Quesnel