Problems writing a tiff file
3 ビュー (過去 30 日間)
古いコメントを表示
When I write an array as tiff, change the values.
if true
% code
end
I=round(rand(10,10,3)*10);
file='c:\temp';
for i=1:3
imwrite(I(:,:,i),'file','WriteMode','append');
end if true
if true
% code
end
thank you very much
1 件のコメント
回答 (2 件)
Image Analyst
2013 年 3 月 7 日
Try the Tiff class. http://www.mathworks.com/help/matlab/ref/tiffclass.html I believe it has more and better functionality regarding tiff files. I've not used the WriteMode append option in imwrite(). But maybe Tiff is worth a try. I don't know what an "extamente" matrix is, but do you see the file size in bytes increase after each write? If so, that indicates that some data is being appended.
5 件のコメント
Image Analyst
2013 年 3 月 7 日
Can you also show the code you are using to read it back in and verify what was written out?
参考
カテゴリ
Help Center および File Exchange で Image Data についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!