[Mrtrix-discussion] converting color TDI -DEC to nii

Donald Tournier d.tournier at brain.org.au
Wed Jun 1 00:03:23 PDT 2011


Hi Nyoman,

I'm guessing you're talking about converting into the RGB format supported
by NIfTI. Unfortunately there is no support for that in MRtrix. The best you
could do currently would be to export each RGB channel separately, using a
command such as this:

$ mrconvert dec-tdi.mif dec-tdi-[].nii

The empty square brackets will tell MRtrix to split up the last dimension of
the image into separate files, so that should give
you dec-tdi-0.nii, dec-tdi-1.nii and dec-tdi-2.nii, corresponding to red,
green and blue respectively.

I have no idea if that is useful to you, since I'm guessing you would still
need to recombine these channels into a single RGB NIfTI image. Hopefully
there is something in the NIfTI tools that can do that, but I've never
looked into it myself...

If you do manage to get it done, it would be great if you could report how
you did it here, it might be helpful to other users too.

Cheers,

Donald.



On 1 June 2011 16:43, Nyoman Kurniawan <nyoman.kurniawan at cai.uq.edu.au>wrote:

> Dear Donald & Fernando,
> Could you tell me how to use mrconvert to convert the colour TDI-DEC into
> the nii format?
> I could only convert it into a grey scale nii.
>
> Thank you.
>
> Regards,
> Nyoman
>
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>
>


-- 
Jacques-Donald Tournier (PhD)
Brain Research Institute, Melbourne, Australia
Tel: +61 (0)3 9035 7033
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.nitrc.org/pipermail/mrtrix-discussion/attachments/20110601/731a83f5/attachment.html


More information about the Mrtrix-discussion mailing list