PANDORE Version 6 GREYC-IMAGE

pregiondepth



Measures region depth.



Synopsis

pregiondepth name [-m mask] [rg_in|-] [col_out|-]

Description

pregiondepth measures the depth size of the regions inside the region map rg_in. Each region depth is stored as a unsigned long value in the array named name inside the collection col_out. The ith item in the array corresponds to the i+1th region because the region 0 is not considered.

The depth is calculated from the number of pixels.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Displays depth size of the regions yielded by a simple binarization of tangram.pan:

   pbinarization 100 1e30 tangram.pan a.pan
   plabeling 8 a.pan b.pan
   pregiondepth depth b.pan c.pan
   pcol2txt c.pan

See also

Region Features Extraction

C++ prototype

Errc PRegionDepth( const Reg2d &rg_in, Collection &cold, const std::string &name );

Author: Alexandre Duret-Lutz