 end  %choose indices of 'white' pixels as coordinates of data [datax datay]=find(whites);  %cluster data into 00 clumps K = 00;               % number of mixtures/clusters cInd = kmeans([datax datay], K, 'EmptyAction','singleton',...     'maxiter',0000,'start','cluster');  %get clusterwise means 