[MINC-users] time and time-width dimension in dynamic image

Sylvain MILOT sylvain at bic.mni.mcgill.ca
Fri Oct 21 17:42:29 EDT 2005


Yes this is fine for attributes but how do you do this for variables ?

time and time-width are extracted with :

mincinfo -varvalue time dynamic.mnc
mincinfo -varvalue time-width dynamic.mnc

How do you do this with minc_modify_header ?

Sylvain


On Fri, 21 Oct 2005, Jonathan HARLAP wrote:

> alternately (without the ambiguity of $MERGE) something on the order of...
>
> if X is an attribute in a minc header...
> minc_modify_header -sinsert "X=`mincinfo -quiet -attvar X original.mnc`" realigned.mnc
>
> would be an inefficient but simple way to do it...
>
> cheers,
> j
>
> On Fri, Oct 21, 2005 at 01:07:00PM -0400, Sylvain MILOT wrote:
> >
> > Hello Oliver,
> >
> > I'm not sure this will help but here are some thoughts for a
> > quick hack:
> >
> > The quickest way would be to use mincedit of course or something like
> > the following:
> >
> > ncdump -v 'time,time-width' original.mnc > time.cdl
> > mincheader realigned.mnc > realigned.cdl
> > $MERGE time.cdl realigned.cdl > new.cdl
> > ncgen -o new.mnc new.cdl
> > minccopy realigned.mnc new.mnc
> >
> > $MERGE is the unknown and could hinder the "quick" hack!
> >
> > Sylvain
> >
> >
> > On Thu, 20 Oct 2005, Oliver Winz wrote:
> >
> > > Hi,
> > >
> > > i have a problem with the "time" and "time-width" dimensions in a
> > > dynamic PET image. After converting ECAT PET to MINC (ecattominc) i get
> > > the correct values about both dimensions. When i splitting the dynamic
> > > image into single frame images, e.g. for realignment, and afterwards
> > > concat the single frames together to a new dynamic, the previous
> > > information is lost. How can i easy modifiy (at best command line) the
> > > mincheader and change the values for "time" and "time-width".
> > >
> > > Thanks!
> > >
> > > Oliver
> > >
> > > --
> > > Oliver Winz, M.Sc.
> > > Molecular Neuroimaging Group
> > > Institute of Medicine (IME)
> > > Research Centre Juelich
> > > D-52425 Juelich
> > > Germany
> > >
> > > Phone: +49 2461 61-6493
> > > Web: http://www.fz-juelich.de/ime/mni
> > > Location: Building 15.9, Room 3010
> > >
> > > _______________________________________________
> > > MINC-users at bic.mni.mcgill.ca
> > > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> > >
> >
> > ---
> > Sylvain Milot (sylvain at bic.mni.mcgill.ca)
> >               (trinity at bic.mni.mcgill.ca)
> > Brain Imaging Centre
> > Montreal Neurological Institute
> > Webster 2B, Room 208
> > Montreal, Qc., Canada, H3A 2B4
> > Phone  : (514) 398-4965, Fax: 398-8948
> > Mobile : (514) 712-1768
> > Office : 527 Av Des Pins O., Room 204
> >          Montreal, Qc., H2W 1S4
> >
> >
> >
> > _______________________________________________
> > MINC-users at bic.mni.mcgill.ca
> > http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
> _______________________________________________
> MINC-users at bic.mni.mcgill.ca
> http://www.bic.mni.mcgill.ca/mailman/listinfo/minc-users
>

---
Sylvain Milot (sylvain at bic.mni.mcgill.ca)
              (trinity at bic.mni.mcgill.ca)
Brain Imaging Centre
Montreal Neurological Institute
Webster 2B, Room 208
Montreal, Qc., Canada, H3A 2B4
Phone  : (514) 398-4965, Fax: 398-8948
Mobile : (514) 712-1768
Office : 527 Av Des Pins O., Room 204
         Montreal, Qc., H2W 1S4




More information about the MINC-users mailing list