PANDORE Version 6 | GREYC-IMAGE |
parray2array creates the collection col_out with all items of the input collection col_in except that the array name has been converted to the new type.
The conversion of all item values is done by using the C casting convention.
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
Conversion du type d'une vecteur dans une collection.
Author: Alexandre Duret-Lutz