PANDORE Version 6 | GREYC-IMAGE |
parraymode calculates the mode of the items of the name_in array in the input collection col_in. The mode is the most frequently frequently occurring value in the vector. When there are multiple values occurring equally frequently, mode returns the smallest of those values.
The result is stored in the output collection col_out as the value named name_out.
Returns SUCCESS or FAILURE
Compute the most frequently height of the tangram pieces with a precision of 5 pixels:
pbinarization 100 255 ~/pantheon/software/pandore/examples/tangram.pan a.pan plabeling 8 a.pan b.pan pregionheight height b.pan c.pan parraymode height mode 5 c.pan d.pan pcolgetvalue mode d.pan pstatus
Errc PArrayMode( const Collection &col_in, Collection &col_out, const std::string &name_in, const std::string &name_out, int precision );
Author: Régis Clouard