I have a image below
here i have detected surf features and have draw circle over it,now i want to apply k means for that surf features inside that blue circle,please assist
for whole image i used code
cform = makecform('srgb2lab'); lab_he = applycform(I,cform);
he=I; ab = double(lab_he(:,:,2:3)); nrows = size(ab,1); ncols = size(ab,2); ab = reshape(ab,nrows*ncols,2);
nColors = 3; % repeat the clustering 3 times to avoid local minima [cluster_idx cluster_center] = kmeans(ab,nColors,'distance','sqEuclidean', ... 'Replicates',3);
but how to apply for surffeatures inside circle
No products are associated with this question.