how to get coordinates from a value of the coordinates itself?
Show older comments
hi all, i want to ask something about getting coordinates from the value of something using matlab, soo i have this code :
R = HarrisMeasure(x,y);
R = abs(R);
sortedR = sort(R,'descend');
best = sortedR(1:50,:);
x and y is the inputed coordinates, so how can i get the coordinates after i sorted it? how can i get coordinates of 'best'? thank you
Answers (1)
Image Analyst
on 3 May 2014
1 vote
Look at the second return argument from sort(). I think you can use that.
2 Comments
Mirza M
on 3 May 2014
Image Analyst
on 3 May 2014
Impossible to know, because I don't know what HarrisMeasure does. You need a function that does the inverse of HarrisMeasure(), like
[x, y] = InverseHarrisMeasure(R);
but I imagine there are lots of x,y that could have a particular R value.
Categories
Find more on Shifting and Sorting Matrices in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!