[Insight-users] converting Image Type
Sarah Waldron
sarah.waldron11 at yahoo.com
Mon Sep 27 14:00:43 EDT 2010
Hello,
I have a DWI *nrrd image with these properties:
type: short
dimension: 4
size: 26, 256, 256, 49
I want to convert this image to another Diffusion weighted image that is in *.nii.gz format instead.
I wrote up this ITK code (attached) but it's giving me this error when I run it:
sarah at sarah-laptop:~/Desktop/nrrd2nii$ ./VectorImageReadWrite ../TEST_SUBJECT/DWI.nrrd ../TEST_SUBJECT/DWI.nii.gz
ExceptionObject caught !
itk::ExceptionObject (0x8560fb0)
Location: "virtual bool itk::ImageIOBase::SetPixelTypeInfo(const std::type_info&)"
File: /home/sarah/InsightToolkit-3.10.2/Code/IO/itkImageIOBase.cxx
Line: 461
Description: itk::ERROR: NiftiImageIO(0x85611e0): Pixel type currently not supported. typeid.name = N3itk6VectorIsLj26EEE
Can someone point out what I could be doing
wrong?
Regards,
Sarah
-----Inline Attachment Follows-----
_____________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.html
Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100927/79b960c9/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VectorImageReadWrite.cxx
Type: text/x-c++src
Size: 1780 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100927/79b960c9/attachment.cxx>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100927/79b960c9/attachment.txt>
More information about the Insight-users
mailing list