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
- relation is an integer from [-3,3] which specifies
the order relation to the threshold value:
- relation = 3: regions with the maximum value.
- relation = 2: regions >= threshold.
- relation = 1: regions > threshold.
- relation = 0: regions = threshold.
- relation = -1: regions < threshold.
- relation = -2: regions <= threshold.
- relation = -3: regions with the minimum value.
- threshold is a real value from [0..1]
which is the rectangularity degree.
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