PANDORE Version 6 | GREYC-IMAGE |
pmodevalue returns the pixel value that occurs the most frequenlty in the input image or region map or graph im_in. if im_in is an image, the mode value is the most frequent color on each band. If im_in is a region map, the mode value is the most frequent label value. If im_in is a graph, the mode value is the most frequent node value.
The mode values for each band are stored in the collection col_out.
Returns the mode value (for the first band only). This value can be get using operator pstatus.
Measures the mode of the tangram.pan (Unix version):
pmodevalue tangram.pan col.pan val=`pstatus` echo "Mode = $val"
Measures the mode of the tangram.pan (MsDos version):
pmodevalue tangram.pan col.pan call pstatus call pset val echo Mode = %val%
Recherche de la valeur de pixel la plus fréquente dans une image (un graphe ou une carte de régions).
Author: Régis Clouard