Hi Sarah,<br><br>Why are you defining the pixel type to be<br><br>              Vector&lt; short, 26 &gt;     ?<br><br>Please let us know,<br><br><br>    Thanks<br><br><br>         Luis<br><br><br>-----------------------------------------------<br>
<div class="gmail_quote">On Mon, Sep 27, 2010 at 2:00 PM, Sarah Waldron <span dir="ltr">&lt;<a href="mailto:sarah.waldron11@yahoo.com">sarah.waldron11@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top"><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><br><div><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font: inherit;" 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&#39;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: &quot;virtual bool itk::ImageIOBase::SetPixelTypeInfo(const std::type_info&amp;)&quot; <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. <a href="http://typeid.name" target="_blank">typeid.name</a> = 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>_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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></tbody></table><br>

      <br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><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>
<br></blockquote></div><br>