I proceeded my two satellite images and then I obtain D variable. Then I try to save my D variable as a tif image with the name of imagee in Deltaw folder but it gives these errors.

 Akzeptierte Antwort

Walter Roberson
Walter Roberson am 17 Jul. 2016

0 Stimmen

You are trying to write single precision, which imwrite() does not know how to handle for TIFF files. You will need to use the Tiff class. See http://www.mathworks.com/matlabcentral/answers/7184-how-can-i-write-32-bit-floating-point-tifs-with-nans

3 Kommentare

Image Analyst
Image Analyst am 17 Jul. 2016
Funny that imread() read in his A and B as singles, and computed D (which would also be a single), but that imwrite() does not handle singles like imread() evidently does.
Walter Roberson
Walter Roberson am 17 Jul. 2016
It happens. The facilities of imread() and imwrite() are not always mirror images.
Gokhan Kayan
Gokhan Kayan am 17 Jul. 2016
Thank you Roberson. I use D=double(D) and it seems that it is working now.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Azzi Abdelmalek
Azzi Abdelmalek am 16 Jul. 2016

0 Stimmen

imwrite(D,'yourfile.tif')

1 Kommentar

Gokhan Kayan
Gokhan Kayan am 16 Jul. 2016
Bearbeitet: Gokhan Kayan am 16 Jul. 2016
it doesn't work still gives same errors

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Images finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by