PANDORE Version 6 GREYC-IMAGE

plocationselection



Selects regions from their location.



Synopsis

plocationselection relation xmin ymin zmin xmax ymax zmax [-m mask] [rg_in|-] [rg_out|-]

Description

plocationselection selects regions from their coordinate values. The parameters define the selection parallelepiped. If the parameter relation is positive, then only then regions completly inside the paralleliped are selected. If the parameter relation is negative, then only then regions not completely inside are selected.

Warning: there is no relabling of the regions.

Parameters

Inputs

Outputs

Result

Returns the number of selected regions.

Examples

Selects regions based on their location:

pbinarization 112 256 examples/tangram.pan b.pan
plabeling 8 b.pan r.pan
plocationselection -1 0 10 0 238 228 0 r.pan v.pan

See also

Region

C++ prototype

Errc PLocationSelection( const Reg2d &rg_in, Reg2d &rg_out, int relation, int xmin, int ymin, int xmax, int ymax);

Author: Régis Clouard