how to write a headerless flat binary file into tiff using matlab
2 ビュー (過去 30 日間)
古いコメントを表示
I have header less flat binary files(they have no extension). I want to convert those into tiff. is it possible with MATLAB
0 件のコメント
採用された回答
Image Analyst
2014 年 9 月 15 日
Yes. Use fread(), then use imwrite().
3 件のコメント
David Young
2014 年 9 月 17 日
You can use reshape(). Since the binary input is headerless, the image dimensions are not stored there, so you have to input them some other way.
Image Analyst
2014 年 9 月 17 日
fread() can give you a 2D matrix if the size is a 2D matrix. And no reshape is needed. For example:
oneSlice = fread(fileHandle, [rows, columns], '*uint8');
Read the documentation on sizeA in fread() again.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!