PANDORE Version 6 GREYC-IMAGE

pentropyquadtree



Performs quadtree segmentation based on entropy uniformity.



Synopsis

pentropyquadtree threshold [-m mask] [im_in|-] [rg_out|-]

Description

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.

Parameters

Inputs

Outputs

Result

Returns the number of regions.

Examples

Builds the quadtree of tangram.pan:

   pentropyquadtree 4 tangram.pan a.pan

See also

Segmentation

C++ prototype

Errc PEntropyQuadtree( const Img2duc &im_in, Reg2d &rg_out, float threshold );

Version française

Segmentation d'une image par quadtree (ou octree) selon l'entropie.


Author: Laurent Quesnel