How to read the X,Y and Z coordinates from a TIFF image extracted into Matlab?
46 ビュー (過去 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 で Read, Write, and Modify Image についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!