Rank: 100856 based on 0 downloads (last 30 days) and 0 files submitted
photo

Peter K

E-mail

Personal Profile:
Professional Interests:
Image Processing

 

Watch this Author's files

 

Comments and Ratings by Peter View all
Updated File Comments Rating
06 Jul 2011 Mean Shift Clustering Cluster data by using the Mean Shift Algorithm Author: Bart Finkston

This is great code! It's very easy to read and taught me a lot about mean shift.

I found that the runtime was decreased on my machine and data by replacing the lines:

sqDistToAll = sum((repmat(myMean,1,numPts) - dataPts).^2);
and
beenVisitedFlag(myMembers) = 1;

with:

sqDistToAll = sum(bsxfun(@minus,myMean,dataPts).^2);
and
beenVisitedFlag(inInds) = 1;

respectively.

Thanks for the code!

06 Jul 2011 Mean Shift Clustering Cluster data by using the Mean Shift Algorithm Author: Bart Finkston

Contact us at files@mathworks.com