PANDORE Version 6 GREYC-IMAGE

parraymean



Calculates the mean value of array.



Synopsis

parraymean name_in name_out [col_in|-] [col_out|-]

Description

parraymean calculates the mean of the items of the name_in array in the input collection col_in. The result is stored in the output collection col_out as the value named name_out.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE

Examples

Compute the average height of the tangram pieces:

pbinarization 100 255 ~/pantheon/software/pandore/examples/tangram.pan a.pan
plabeling 8 a.pan b.pan 
pregionheight height b.pan c.pan
parraymean height mode c.pan d.pan
pcolgetvalue mode d.pan
pstatus

See also

Array

C++ prototype

Errc PArrayMean( const Collection &col_in, Collection &col_out
                 const std::string &name_in, const std::string &name_out );

Author: Alexandre Duret-Lutz