Help me to open .bin file

42 次查看(过去 30 天)
mohd akmal masud
mohd akmal masud 2024-10-23,0:36
评论: mohd akmal masud 2024-10-23,5:38
Dear Everyone,
Anyone can help me to open the .bin file as attached.
I cannot open it.
Please help me.

采纳的回答

Walter Roberson
Walter Roberson 2024-10-23,3:28
No, we cannot help.
The ".bin" file extension is used by arbitrary file formats, with no standardization. You need additional information about the details of how this particular file is stored.
Is there also a ".hdr" file with the .bin file?
  3 个评论
Walter Roberson
Walter Roberson 2024-10-23,4:40
fid = fopen('model1_128_atn_1.bin');
Nslices = 128;
data = zeros(128,128,Nslices);
for K = 1 : Nslices
data(:,:,K) = fread(fid, [128 128], '*float32');
end
fclose(fid);
data = rescale(data);
volshow(data)
mohd akmal masud
mohd akmal masud 2024-10-23,5:38
Dear @Walter Roberson, Its Work. Amazing!. Thank you very much

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by