[Mrtrix-discussion] patch for DICOM mosaics

Samuel Gröschel samugo at gmx.net
Fri Sep 5 02:43:48 PDT 2008


Hi Donald,

Thanks very much for the patch which should sort out my slice-ordering
issue. After applying it, however, the following error message occurs
when trying to 'mrview' the ("incorrectly-ordered") dicom files.

mrview: reading DICOM series "ep2d_diff_tra_22x20x20_69#"... 100%
mrview: lib/file/dicom/image.cpp:141: bool
MR::File::Dicom::Image::operator<(const MR::File::Dicom::Image&) const:
Assertion `!gsl_isnan(distance)' failed.
Aborted

Did I do anything wrong during installation? Can anyone help?

Regards, Samuel


Donald Tournier schrieb:
> Hi everyone,
>
> Here is a patch to fix occasional slice-ordering issues when loading
> DICOM mosaic images. The images would sometimes be loaded upside-down,
> due to my complete ignorance of Siemens' obscure 'SliceNormalVector'
> CSA entry in the image headers (thanks to the SPM5 code for pointing
> me in right direction...). Note that this problem really shouldn't
> affect anything else: if you haven't had this problem yet, there is
> nothing to worry about. You might want to wait until the next release
> of MRtrix which will contain this fix anyway.
>
> To apply the patch, simply unpack the files into the MRtrix code
> folder - this should overwrite the 3 modified files. You should then
> issue the ./build command and install as normal. In other words,
> assuming you have already downloaded the patch file into the
> mrtrix-0.2.5/ folder:
>
>   
>> cd mrtrix-0.2.5/
>> tar xfjv mrtrix-0.2.5_dicom_mosaic_patch_2008-09-05.tar.bz2
>> ./build
>>     
>
> and copy over into your final installation folder as you would normally.
>
> Regards,
>
> Donald.
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Mrtrix-discussion mailing list
> Mrtrix-discussion at www.nitrc.org
> http://www.nitrc.org/mailman/listinfo/mrtrix-discussion
>   


More information about the Mrtrix-discussion mailing list