How to read the X,Y and Z coordinates from a TIFF image extracted into Matlab?
46 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Sachin Nag
le 18 Mar 2017
Modifié(e) : MathWorks Support Team
le 8 Juin 2022
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 commentaires
Réponse acceptée
Chad Greene
le 18 Mar 2017
Modifié(e) : MathWorks Support Team
le 8 Juin 2022
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 commentaires
Plus de réponses (1)
sajeela khan
le 22 Avr 2018
hello sir can u plz send me the code that hp ow u find the x y and z axis of an image
0 commentaires
Voir également
Catégories
En savoir plus sur Read, Write, and Modify Image dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!