[Insight-users] converting Image Type
Sarah Waldron
sarah.waldron11 at yahoo.com
Fri Sep 24 14:04:45 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100924/cbe18b42/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/20100924/cbe18b42/attachment.cxx>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CMakeLists.txt
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100924/cbe18b42/attachment.txt>
More information about the Insight-users
mailing list