PANDORE Version 6 GREYC-IMAGE

pareaselection



Selects regions from area size.



Synopsis

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

Description

pareaselection selects regions from their area size. The parameter relation specifies the order relation to the threshold value that is used to select or not a region.

The area is calculated from the number of pixels included in the region and on the boundary. The algorithm uses one half pixel for concavity. For example, the area is 10 pixels for the following region (8 + 4*0.5) :

    xx
   xxxx
    xx

Parameters

Inputs

Outputs

Result

Returns the number of selected regions.

Examples

Selects all regions with area size = 50 pixels:

   pareaselection 0 50  rin.pan rout.pan

See also

Region

C++ prototype

Errc PAreaSelection( const Reg2d &rg_in, Reg2d &rg_out, int relation, Ulong threshold );

Version française

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


Author: Régis Clouard