フィルターのクリア

print header from raw file

3 ビュー (過去 30 日間)
Sara Principi
Sara Principi 2017 年 11 月 14 日
編集済み: Stephen23 2017 年 11 月 15 日
Hi, I'm trying to print the header of a .raw file I don't know how it is, just it contains float32 data and it has a header. I can get the data with:
fid = fopen('mc-gpu_dose.dat.raw', 'r');
dose = fread(fid, 'float32');
But I cannot get the header. I am trying with:
frewind(fid);
tline = fgets(fid);
and I obtain a vector 1x350 char with illegible characters
  5 件のコメント
Sara Principi
Sara Principi 2017 年 11 月 15 日
It didn't let me. I just can do this. Thank you
Stephen23
Stephen23 2017 年 11 月 15 日
編集済み: Stephen23 2017 年 11 月 15 日
I guess you are referring to an image file, however there is not just one RAW format for images, because each camera/image sensor manufacturer basically defines their own binary format. You will need to find out what the format is for the file you have and find/write a parser for it.
You should start by searching this forum for "raw format" or "raw image".

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeImport, Export, and Conversion についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by