PANDORE Version 6 GREYC-IMAGE

pregionheight



Measures region height.



Synopsis

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

Description

pregionheight measures the height size of the regions inside the region map rg_in. Each region height 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 height is calculated from the number of pixels.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Displays height 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
   pregionheight height b.pan c.pan
   pcol2txt c.pan

See also

Region Features Extraction

C++ prototype

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

Author: Alexandre Duret-Lutz