How to save output into tiff?
133 次查看(过去 30 天)
显示 更早的评论
Hi,
I want to save my output (I performed morphology to my image), the output in int16. So I tried to convert it into double but my output became white. Please someone teach me how to save my output in this case..
Thanks advanced for your guidance.
1 个评论
Rik
2018-10-5
Your output didn't become white. Unless you specify otherwise, Matlab will assume that all double images are scaled from 0 to 1. If you want to keep using double, just divide your image by double(int16(inf)).
回答(1 个)
ANKUR KUMAR
2018-10-5
Sample image is attached.
file=imread('sample.png');
imwrite(file,'sample2.tiff','tiff');
0 个评论
另请参阅
类别
在 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!