[Insight-users] converting Image Type

Luis Ibanez luis.ibanez at kitware.com
Sun Oct 17 10:45:40 EDT 2010


Hi Sarah,

Why are you defining the pixel type to be

              Vector< short, 26 >     ?

Please let us know,


    Thanks


         Luis


-----------------------------------------------
On Mon, Sep 27, 2010 at 2:00 PM, Sarah Waldron <sarah.waldron11 at yahoo.com>wrote:

>
>
>
> 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
>
>
>
> _____________________________________
> 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/20101017/4be4164c/attachment.htm>


More information about the Insight-users mailing list