필터 지우기
필터 지우기

how to get coordinates from a value of the coordinates itself?

조회 수: 1 (최근 30일)
Mirza M
Mirza M 2014년 5월 3일
댓글: Image Analyst 2014년 5월 3일
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
Mirza M
Mirza M 2014년 5월 3일
all i wanna do here is after i got the coordinates, i want to use
imshow(I); hold on
plot(a,b,'r*')
(a,b) for (x,y) of best, so the output will be a red dot in the best output
Jan
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
Image Analyst 2014년 5월 3일
Look at the second return argument from sort(). I think you can use that.
  댓글 수: 2
Mirza M
Mirza M 2014년 5월 3일
im sorry but i dont understand how? i want to get x and y of every sortedR, how to do that? i dont even know how to get x and y from R, how's the code?
Image Analyst
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 CenterFile Exchange에서 Graphics Object Programming에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by