PANDORE Version 6 GREYC-IMAGE

pregionelongation



Measure region elongation factor.



Synopsis

pregionelongation name [rg_in|-] [col_out|-]

Description

pregionelongation measures the elongation factor of the regions inside the region map rg_in. Each region elongation factor is stored as a float 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.

Elongation is the ratio between the length and the width of the bounding box:

elongation = width(bounding box)/width(bounding box).

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

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

   pbinarization 100 1e30 tangram.pan a.pan
   plabeling 8 a.pan b.pan
   pregionelongation elongation b.pan c.pan
   pcol2txt c.pan

See also

Region Features Extraction

C++ prototype

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

Version française

Calcul de l'élongation des régions.


Author: Alexandre Duret-Lutz