How to convert pixel coordinate(returned back by imread function) to Cartesian x-coordinate and y-coordinate.
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using matlab version 7.10.0.499 (R2010a). I am taking input as .jpg file to imread function, I am getting the pixel coordinates. I need a function which can convert pixel coordinate to Cartesian x-coordinate and y-coordinate. A=imread('file.jpg'); How to convert value present in A matrix into Cartesian x-coordinate and y-coordinate.
댓글 수: 3
dpb
2015년 8월 20일
That would be returning the 'xdata' and 'ydata' properties from the figure. See
doc get % and set and friends
doc axes % for axes properties
답변 (1개)
Image Analyst
2015년 8월 19일
See my attached spatial calibration demo to convert pixels into real world distances.
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!