How could I get the spatial coordinates for each pixel of a Landsat scene?
5 views (last 30 days)
Show older comments
Hi, my problem is that I need the map coordinates of each pixel in a LandSat image.
What I have:
[A, R, bbox] = geotiffread(filename);
[X,Y] = pixcenters(R, size(A), 'makegrid');
With this I get a coordinate gird which looks fine to me in UTM coordinate, but with this my object of interest is moving from scene to scene. Which means its coordinates are changing which is definitely not the case (its a big mountain). Do you have any idea where I made the mistake?
Remark: I stacked the images in ENVI and there is no coordinate shift between the images
Thank you for your help!
0 Comments
Answers (1)
Chad Greene
on 12 Feb 2015
[A,x,y] = geoimread('filename');
where A is the image and x,y is pixel coordinates in meters.
0 Comments
See Also
Categories
Find more on Map Display in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!