How to open extension .a00 and .sin image Using Matlab

5 ビュー (過去 30 日間)
mohd akmal masud
mohd akmal masud 2022 年 2 月 3 日
コメント済み: DGM 2022 年 2 月 3 日
Hi all,
I have generate image from GEANT4 Monte Carlo simulation.
the file extension is .sin (as attached zip file: YourProjection (1))
I also generate image from SIMIND Monte Carlo simulation.
the file extension is .a00 (as attached zip file: point2)
Anyone know how to open it using matlab?
file as attached.
Both file I was open using ImageJ. (The picture as attached). But I dont know how to open using matlab.
point2 using ImageJ
YourProjection (1) Using ImageJ
  1 件のコメント
KSSV
KSSV 2022 年 2 月 3 日
It seems the files are binary files. You need to use fread to read the data. But you need to know the format of the file.

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

採用された回答

DGM
DGM 2022 年 2 月 3 日
Like KSSV says, use fread()
fid = fopen('YourProjection (1).sin','r');
A = fread(fid,Inf,'*uint16');
fclose(fid);
A = reshape(A,512,[]).';
imshow(A,[])
fid = fopen('point2.a00','r');
A = fread(fid,Inf,'*uint16');
fclose(fid);
A = permute(reshape(A,512,512,[]),[2 1 3]); % there are 8 pages
imshow(A(:,:,1),[])
  2 件のコメント
mohd akmal masud
mohd akmal masud 2022 年 2 月 3 日
TQ very much sir. Its Work. But how to open the file with .hdr extension sir? file as attached.
DGM
DGM 2022 年 2 月 3 日
You need both the header file (HDR) and the image file (IMG). The HDR file contains no image data. You should be able to use the interfile reading tools:

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

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by