[Insight-users] RE : GDCMImageIO and unsigned Int pixel type
Mathieu Malaterre
mathieu.malaterre at gmail.com
Fri Oct 3 12:47:10 EDT 2008
Yes, simply because DICOM does not support this component type.
On Fri, Oct 3, 2008 at 6:27 PM, Benhacene Boudan Mustafa
<m.benhacene.boudan at umontreal.ca> wrote:
> Hi mathieu, thank you for the answer.
> I was a bit tired when i wrote my message. I am trying to save an unsigned int image (not unsigned short) in dicom format.
> I can use the unsigned char and short but i get an error using the unsigned int type. Any idea why?
>
> karim
>
>
> -------- Message d'origine--------
> De: Mathieu Malaterre [mailto:mathieu.malaterre at gmail.com]
> Date: ven. 03/10/2008 12:11
> À: Benhacene Boudan Mustafa
> Cc: insight-users at itk.org
> Objet : Re: [Insight-users] GDCMImageIO and unsigned Int pixel type
>
> On Fri, Oct 3, 2008 at 5:28 PM, Benhacene Boudan Mustafa
> <m.benhacene.boudan at umontreal.ca> wrote:
>>
>> Hi all,
>> when i trying to save an image with pixel type of unsigned short in dcm format i get a : "GDCMImageIO(0x8489090): DICOM does not support this component type" message error.
>> I don't see anything in the itkGDCMImageIO that explains that error, float and double are not supported but char, short and int should be ok.
>>
>> Any idea?
>
> You have either an RGB image (more than a single comp image). Or your
> image is simply not unsigned short, try printing the actual component
> type in the error message and you'll know for sure.
>
> --
> Mathieu
>
>
--
Mathieu
More information about the Insight-users
mailing list