Saving in TIF format without losing properties
2 次查看(过去 30 天)
显示 更早的评论
Hi all,
I have a TIF file, and im processing the file in order to do segmentation and then save it in TIF format
Im working with QGIS, if I load the regular image into QGIS, I can see the coordinates of the image.
But when I load the TIF segmentation file there is no location properties of the image.
Can anyone please help with a way to save the segmented TIF file without losing those properties?
For loading the image I tried using imread or:
[tif,tfw]= readgeoraster(tif_PathName);
or
tif=read(Tiff(tif_PathName));
For saving the image after segmentation I tried:
imwrite(newTIF,'check.tif','tif');
Thanks!!
回答(1 个)
Jan
2022-8-15
[tif, tfw] = readgeoraster(tif_PathName);
geotiffwrite(tif_PathName, tif, tfw)
See also:
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Import, Export, and Conversion 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!