Pixel coordinates of a point on the map

I am looking for a function that gives the pixel coordinates of the points in the map that are specified by their (latitude, longitude) coordinates. My map is a piece of the US map.

답변 (1개)

Image Analyst
Image Analyst 2012년 10월 7일

0 개 추천

You need to calibrate it. You need to click at least two points and specify their lat and long so you can fix a coordinate system and get a spatial calibration (pixels per degree). So then when someone specifies (types in) a lat and long, you can find out how many degrees that is from the origin's lat and long, and then, knowing the lat and long of the origin, and the spatial calibration factor, tell the user what pixel that location would be at on the map image.

댓글 수: 5

Walter Roberson
Walter Roberson 2012년 10월 7일
The question has to do with maps and the mapping toolbox; see http://www.mathworks.co.uk/matlabcentral/answers/50031-drawing-directed-graphs-on-the-us-map for contextual information.
Taha
Taha 2012년 10월 8일
You are right. I thought asking the question in another way might help, which apparently didn't.
Image Analyst
Image Analyst 2012년 10월 8일
What do you mean when you talk about pixels if it's not an image? A pixel has to be somewhere. Do you mean the pixel on the screen instead of a pixel in an image array in your program?
Taha
Taha 2012년 10월 8일
Well, perhaps I haven't used the correct term. I meant some coordinates that can be used later in the plot() or similar functions. I have an image, but I guess it is in vector format (see Mapping Toolbox).
Image Analyst
Image Analyst 2012년 10월 8일
Sorry - I don't have that toolbox. Since no one else here seems to be able to help you either, you might have to call them. Hopefully you're current on your maintenance contract.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Blue에 대해 자세히 알아보기

질문:

2012년 10월 6일

Community Treasure Hunt

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

Start Hunting!

Translated by