<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><br><div id="yiv1766587515"><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font-family: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; font-size: inherit; line-height: inherit; font-size-adjust: inherit; font-stretch: inherit; -x-system-font: none;" valign="top">Hello, <br>I have a DWI *nrrd image with these properties:<br>type: short<br>dimension: 4<br>size: 26, 256, 256, 49<br><br>I want to convert this image to another Diffusion weighted image that is in *.nii.gz format instead.<br>I wrote up this ITK code (attached) but it's giving me this error when I run it:<br><br><br>sarah@sarah-laptop:~/Desktop/nrrd2nii$ ./VectorImageReadWrite ../TEST_SUBJECT/DWI.nrrd ../TEST_SUBJECT/DWI.nii.gz<br>ExceptionObject
 caught !<br><br>itk::ExceptionObject (0x8560fb0)<br>Location: "virtual bool itk::ImageIOBase::SetPixelTypeInfo(const std::type_info&amp;)" <br>File: /home/sarah/InsightToolkit-3.10.2/Code/IO/itkImageIOBase.cxx<br>Line: 461<br>Description: itk::ERROR: NiftiImageIO(0x85611e0): Pixel type currently not supported. typeid.name = N3itk6VectorIsLj26EEE<br><br>Can someone point out what I could be doing
 wrong?<br>Regards,<br>Sarah<br></td></tr></tbody></table><br>

      </div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_____________________________________<br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br></div></blockquote></td></tr></table><br>