ImLab Scilab Function
Last update :

imkmeansclassify - k-means method, classification phase: third step of image segmentation using k-means clustering method.

Calling Sequence

[classes_image] = imkmeansclassify(prototype,mask,weights,im1[,im2[,im3[,im4[,im5[,im6[,im7[,im8[,im9[,im10]]]]]]]]])

Parameters

Description

Thanks to the prototype, this function classifies all the pixels of images that are defined by the mask. The value of a pixel in the classes image is the number of the class whose center is the closest (class numbers begin at 0). Note that the distance used is the euclidean one.