PANDORE Version 6 GREYC-IMAGE

pconvexityselection



Selects regions from convexity degree.



Synopsis

pconvexityselection relation threshold [-m mask] [rg_in|-] [rg_out|-]

Description

pconvexityselection selects regions from their convexity degree. The parameter relation specifies the order relation to the threshold value that is used to select or not a region.

Convexity is the relative amount that a region differs from a convex region. It is calculated as follows:

convexity = region area / convex hull area.

The maximum value is 1.0 for convex region (eg. circle, square).

Parameters

Inputs

Outputs

Result

Returns the number of selected regions.

Examples

Selects regions with convexity degree ≥ 0.5:

   pconvexityselection 2 0.5 rin.pan rout.pan

See also

Region

C++ prototype

Errc PConvexitySelection( const Reg2d &rg_in, Reg2d &rg_out, int relation, Ushort threshold );

Version française

Sélection de régions sur leur valeur de convexité.


Author: Régis Clouard