read and write greographic coordinate of an image

4 次查看(过去 30 天)
hi guys,
I have georeferenced images on envi on which I apply several treatment under matlab. the problem is that I have outputs of images that are not georeferenced. how to make it possible to read and write the coordinates on its images.
Thank you

采纳的回答

Cam Salzberger
Cam Salzberger 2017-10-25
Hello Safa,
I assume that the georeferenced images are GeoTIFFs or something similar. MATLAB is able to pull the image along with its referencing information in using geotiffread, for that file type at least. You can get more referencing information with geotiffinfo.
Once you have done your manipulation, you can write a new image while providing referencing information with geotiffwrite.
If you are talking about literally printing coordinates on the image, there are some ideas here.
If that is not what you are asking, can you clarify what file types you are using, and what you mean by "read and write coordinates on its images"?
-Cam
  2 个评论
safa bousbih
safa bousbih 2017-10-25
thank you for your help, I used hdrread and hdrwrite.
Cam Salzberger
Cam Salzberger 2017-10-25
Hmm, I'm not aware if there is a particular HDR format that allows for the georeferencing information to be stored in the image (the way TIFF files are extensible). If the information is stored separately from the image (like in a TFW file), you can possibly read that separately with worldfileread. If there is another file format, you may need to find or create another function for parsing it.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by