how to write a headerless flat binary file into tiff using matlab
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
mahesh chathuranga
am 15 Sep. 2014
Kommentiert: Image Analyst
am 17 Sep. 2014
I have header less flat binary files(they have no extension). I want to convert those into tiff. is it possible with MATLAB
0 Kommentare
Akzeptierte Antwort
Image Analyst
am 15 Sep. 2014
Yes. Use fread(), then use imwrite().
3 Kommentare
David Young
am 17 Sep. 2014
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
am 17 Sep. 2014
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.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!