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.

 채택된 답변

Walter Roberson
Walter Roberson 2016년 7월 17일

0 개 추천

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

Image Analyst
Image Analyst 2016년 7월 17일
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 2016년 7월 17일
It happens. The facilities of imread() and imwrite() are not always mirror images.
Gokhan Kayan
Gokhan Kayan 2016년 7월 17일
Thank you Roberson. I use D=double(D) and it seems that it is working now.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Azzi Abdelmalek
Azzi Abdelmalek 2016년 7월 16일

0 개 추천

imwrite(D,'yourfile.tif')

댓글 수: 1

Gokhan Kayan
Gokhan Kayan 2016년 7월 16일
편집: Gokhan Kayan 2016년 7월 16일
it doesn't work still gives same errors

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Images에 대해 자세히 알아보기

질문:

2016년 7월 16일

댓글:

2016년 7월 17일

Community Treasure Hunt

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

Start Hunting!

Translated by