PANDORE Version 6 GREYC-IMAGE

pcontrastquadtree



Performs quadtree (or octree) segmentation based on contrast uniformity.



Synopsis

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

Description

pcontrastquadtree segments the input image im_in into homogeneous regions. Homogeneous regions are regions that have an inner contrast ≤ threshold.

The principle of the algorithm is as follows:

Therefore, the result is composed of rectangular regions.

The uniformity degree is calculated from:

    contrast(R)= MAX(R) - MIN(R).

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:

   pcontrastquadtree 10 tangram.pan a.pan

See also

Segmentation

C++ prototype

Errc PContrastQuadtree( const Img2duc &im_in, Reg2d &rg_out, Uchar threshold );

Version française

Segmentation d'une image par quadtree (ou octree) selon le contraste.


Author: Laurent Quesnel