PANDORE Version 6 | GREYC-IMAGE |
pentropyquadtree segments the input image im_in into homogeneous regions. Homogeneous regions are regions that have an inner entropy degree ≤ threshold.
The principle of the algorithm is as follows:
Therefore, the result is composed of rectangular regions.
The entropy in the sense of Shannon is the quantity of information held by the input image. The more seldom a pixel value is, the more information it holds and the greater the entropy is.
The entropy for a region is calculated as follows:
entropy= - SUM { Pi * log2(Pi) }
where Pi is the probability of pixel i. (Pi is computed from the normalized histogram.)
Notice: This operator cannot worked on float image since related probabilities are not significant.
For 3D image, the output region map is composed of octree regions.
Returns the number of regions.
Builds the quadtree of tangram.pan:
pentropyquadtree 4 tangram.pan a.pan
Segmentation d'une image par quadtree (ou octree) selon l'entropie.
Author: Laurent Quesnel