Read .avw files extraced from the Analyze Mayo Clinic software
19 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Dear all,
I would be grateful for any ideas on the following point. I am interested to read .avw files, which is the new file (image) format for files exported from the Analyze Mayo Clinic software. Previously, this was possible via the analyze75read command in Matlab, but this command can only read .img or .hdr (image) files, which are the previous files that could be exported from Analyze. I don't seem to find anything for .avw (image) files.
Any recommendations would be much appreciated it.
George
0 Commenti
Risposte (1)
Joe S
il 8 Giu 2021
Modificato: Joe S
il 8 Giu 2021
I haven't been able to sit down and write code for this, but believe the first 4096 bytes of the AVW files are the header. Here's where I'd go with this.
avwName = 'filename.awv';
fid = fopen(avwName,'r');
avwHdr = fread(fid,'*char'); %character array
avwHdr = avwHdr'; % make a bit prettier
avwHdrCell = strsplit(avwHdr,'\n'); %make cell array of parameters
fclose(fid);
From here you can extract out width, height, slices, bitdepth for reading in the binary data at the end of the header portion. This might get you started, if I take the time to write something out more complete, I'll post it in the community.
0 Commenti
Vedere anche
Categorie
Scopri di più su Data Import and Analysis in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!