PANDORE Version 6 | GREYC-IMAGE |
parraysnorm creates the collection col_out with normalized versions of arrays of the input collection col_in name.1, name.2, ..., name.n. Arrays in the output collection are converted to Double, and each item has been divided by the maximum value of the related type in the input arrays. For example, each item of Uchar array is divided by 255. The result values are between 0 and 1 for unsigned type or between -1 and 1 for signed type.
Returns SUCCESS or FAILURE.
Segments the tangram.pan image thanks to a k-means classification of the pixels based on mean and variance features:
pmeanfiltering 1 tangram.pan moy.pan pvariancefilter 0 255 tangram.pan var.pan pim2array data.1 moy.pan data1.colc pim2array data.2 var.pan data2.colc parray2array data.1 Float data1.colc data1.cold parray2array data.2 Float data2.colc data2.cold pcolcatenateitem data1.cold data2.cold data3.cold parraysnorm data data3.cold data3.cold pkmeans data attrib 5 100 data3.cold cluster.cold pproperty 0 tangram.pan w=`pstatus` pproperty 1 tangram.pan h=`pstatus` parray2im $h $w 0 attrib cluster.Cold kmeans.pan pim2rg kmeans.pan classif1_out.pan
Normalisation des valeurs de plusieurs vecteurs entre 0 et 1.
Author: Alexandre Duret-Lutz