PANDORE Version 6 GREYC-IMAGE

pregionvolume



Measures region volume.



Synopsis

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

Description

pregionvolume measures the volume of the regions inside the region map rg_in. Each region volume 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 volume is calculated in pixel unit.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Displays volume of the regions yielded by a simple binarization of tangram3d.pan:

   pbinarization 100 1e30 tangram3d.pan a.pan
   plabeling 8 a.pan b.pan
   pregionvolume volume b.pan tangram3d.pan c.pan
   pcol2txt c.pan

See also

Region Features Extraction

C++ prototype

Errc PRegionVolume( const Reg3d &rg_in, Collection &cold, const std::string &name );

Version française

Calcul de volume des régions.


Author: Alexandre Duret-Lutz