How to read the X,Y and Z coordinates from a TIFF image extracted into Matlab?
40 次查看(过去 30 天)
显示 更早的评论
I have extracted a TIFF image into Matlab using the geotiff function [A, R] = geotiffread(filename). Now the image is stored for example in A. I want to extract the X,Y and Z coordinates from this image and plot it later using surf function. How do I achieve this?
Thanks for any inputs or pointers
0 个评论
采纳的回答
Chad Greene
2017-3-18
编辑:MathWorks Support Team
2022-6-8
Here are the x and y coordinates of a geotiff:
I = geotiffinfo(filename);
[x,y]=pixcenters(I);
2022 Update - The function pixcenters will be removed in a future release. Use the worldGrid functions instead.
5 个评论
更多回答(1 个)
sajeela khan
2018-4-22
hello sir can u plz send me the code that hp ow u find the x y and z axis of an image
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Convert Image Type 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!