Sorting images

I have extracted features of all the images and for query image and have calculated distance,recall ,precision .now i have cancatanated average recall and precision,now,i have to apply PSO algorithm to move the features closer
for example if i have values like
S=[1 3 10 4 2 ],by using PSO algorithm i want to move the values closer i.e 2 must be moved closer to 1 and so on
please help

5 Comments

Walter Roberson
Walter Roberson on 23 Jan 2012
What is it you would apply PSO to, more precisely? What you have given us to go on at the moment just looks like a sort() call, which PSO would be a waste of time on.
kash
kash on 24 Jan 2012
Walter i have assigned a task of performing PSO in order to move the images closer ,should not use sort
Walter Roberson
Walter Roberson on 24 Jan 2012
What is it you would apply PSO to, more precisely?
Walter Roberson
Walter Roberson on 24 Jan 2012
Perhaps you should explain what you mean by "move the images closer" ?
kash
kash on 25 Jan 2012
am using PSO because am using 2 algorithms ,so i need to compare which gives good result,image closer means ,first is query image,i have calculated the euclidean distance,according to distance,where the euclidean distances are closest ,thwy should be moved closer to query image

Sign in to comment.

Answers (0)

Asked:

on 23 Jan 2012

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!