[MINC-users] Convert file.tag into Analyze format

Andrew Janke andrew_janke@iinet.net.au
Sat Dec 18 04:18:05 2004


On Fri, 17 Dec 2004, Anna Caroli wrote:

> Does anybody know how to convert a .tag file into an Analyze one?
> To better explain the problem: I manually draw ROIs on MRIs using Display
> software and I got files .tag; now I'd like to study MRIs (with ROIs drawn)
> with SPM... How can I do that? Thanks a lot for your help and best regards!

THe most straightforward approach may be to save your traced labels as .mnc 
files within Display.

When you are in the save 'menu' you will note that you can either save your 
labels as a .tag or a .mnc.  I believe it is possible to reload your .tag files 
and then same them as .mnc ie:

    Display <file.mnc> -label labels.tag

>From here, I suspect you want your labels with the same sampling as your input 
file for alater analyze analysis.  (Display saves the label in the smallest 
possible minc volume it cna whilst maintaing the original resolution.

So use mincresample:

    mincresample -like infile.mnc label.mnc label_res.mnc

Then convert both to analyze:

    mnc2ana file.mnc file.hdr
    mnc2ana label.mnc label.hdr


--
Andrew Janke (andrew_janke@iinet.net DOT au || www.cmr.uq.edu.au/~rotor) 
Australia->Brisbane            H: +61 7 3390 6332  || M: +61 4 2138 8581