PANDORE Version 6 GREYC-IMAGE

prectangularityselection



Selects regions from rectangularity degree.



Synopsis

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

Description

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

Rectangularity is the ratio of a region area to the area of the minimum bounding rectangle. The maximum value is 1.0 for a circle.

Parameters

Inputs

Outputs

Result

Returns the number of selected regions.

Examples

Selects regions that have a rectangularity degree > 10:

   prectangularityselection 1 10 in.pn rout.pan

See also

Region

C++ prototype

Errc PRectangularitySelection( const Reg2d &rg_in, Reg2d &rg_out, int relation, float threshold );

Version française

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


Author: Régis Clouard