Borrar filtros
Borrar filtros

How to read the X,Y and Z coordinates from a TIFF image extracted into Matlab?

46 visualizaciones (últimos 30 días)
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

Respuesta aceptada

Chad Greene
Chad Greene el 18 de Mzo. de 2017
Editada: MathWorks Support Team el 8 de Jun. de 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 comentarios
Sachin Nag
Sachin Nag el 22 de Mzo. de 2017
I was able to get the correct plot after changing the Matlab version! Thanks again for your help and time

Iniciar sesión para comentar.

Más respuestas (1)

sajeela khan
sajeela khan el 22 de Abr. de 2018
hello sir can u plz send me the code that hp ow u find the x y and z axis of an image

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by