how to get coordinates from a value of the coordinates itself?
1 次查看(过去 30 天)
显示 更早的评论
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
2 个评论
Jan
2014-5-3
Please notice, that we do not know, what your function HarrisMeasure does. So how could we guess, how x,y are correlated to R?
回答(1 个)
Image Analyst
2014-5-3
Look at the second return argument from sort(). I think you can use that.
2 个评论
Image Analyst
2014-5-3
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.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Programming 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!