PANDORE Version 6 | GREYC-IMAGE |
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.
Returns the number of merging.
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
Fusion prioritaire de régions selon la corrélation d'histogramme.
Author: Laurent Quesnel