[Insight-users] RE : Trouble with "DicomSeriesReadImageWrite2.cxx"

Mathieu Malaterre mathieu.malaterre at gmail.com
Fri Jun 22 08:15:54 EDT 2007


Hi Philippe,

You need to instanciate your PixelType as:

  typedef signed short    PixelType;

Your image has a Rescale Slope/Intercept that make it unsuitable for
unsigned short pixel type.

-Mathieu

On 6/22/07, gatts gatsu <g4tts at hotmail.com> wrote:
> Hi Mathieu,
>
> I tried what you asked me to do but the result is still bad. (forms are the
> same but once again the color are all mixed up)
> Thanks for posting this suggestion.
>
> Regards,
>
> Philippe
>
>
> >From: "Mathieu Malaterre" <mathieu.malaterre at gmail.com>
> >To: "gatts gatsu" <g4tts at hotmail.com>
> >CC: "insight-users at itk.org" <insight-users at itk.org>
> >Subject: Re: [Insight-users] RE : Trouble with
> >"DicomSeriesReadImageWrite2.cxx"
> >Date: Fri, 22 Jun 2007 07:29:08 +0000
> >
> >Hi Philippe,
> >
> >  You need to instanciate your PixelType as:
> >
> >typedef unsigned short    PixelType;
> >
> >
> >
> >HTH
> >-Mathieu
> >
> >On 6/21/07, gatts gatsu <g4tts at hotmail.com> wrote:
> >>Hi Mathieu,
> >>
> >>Thank you for looking at my problems.
> >>Here is what you requested me to do :
> >>
> >>(0028|0100) Bits Allocated = 16
> >>(0028|0101) Bits Stored = 12
> >>(0028|0102) High Bit = 11
> >>(0028|0103) Pixel Representation = 0
> >>
> >>I hope it will help you to find where the problem lies in.
> >>
> >>Thanks again for helping me.
> >>
> >>Regards,
> >>
> >>Philippe
> >>
> >>
> >>Performing Physician's Name (0008|1050): (No Value Found in File)
> >>
> >>
> >> >From: "Mathieu Malaterre" <mathieu.malaterre at gmail.com>
> >> >To: "gatts gatsu" <g4tts at hotmail.com>
> >> >CC: insight-users at itk.org
> >> >Subject: Re: [Insight-users] RE : Trouble with
> >> >"DicomSeriesReadImageWrite2.cxx"
> >> >Date: Thu, 21 Jun 2007 17:44:26 +0000
> >> >
> >> >Hi Philippe,
> >> >
> >> >  Could you please run the following command:
> >> >
> >> >$ ./bin/DicomImageReadPrintTags /full/path/to/one/of/your/dicom/file
> >> >
> >> >  And send us the *complete* result on one file from your Series. What
> >> >I am looking for especially are those fields:
> >> >
> >> >(0028|0100) Bits Allocated = ??
> >> >(0028|0101) Bits Stored = ??
> >> >(0028|0102) High Bit = ??
> >> >(0028|0103) Pixel Representation = ??
> >> >
> >> >Thanks
> >> >-Mathieu
> >> >
> >> >
> >> >On 6/21/07, gatts gatsu <g4tts at hotmail.com> wrote:
> >> >>Hi, sorry to make this fast a second post : I take back what I said
> >>about
> >> >>the unsigned char : it also gives a bad result.
> >> >>Whatever I use give a bad result.
> >> >>Does anyone have any ideas?
> >> >>
> >> >>Regards,
> >> >>
> >> >>Philippe
> >> >>
> >> >> >Hi,
> >> >> >I have trouble using the DicomSeriesReadImageWrite2.cxx program.
> >> >> >It's not that I can't start it.
> >> >> >It's just giving a very bad result when I use it with types other
> >>than
> >> >> >unsigned char.
> >> >> >(It gives weird colors and it's horrible in paraview)
> >> >> >Unsigned char gives an okay result but I would like a better
> >>precision.
> >> >> >The starting series are all 16 bits DICOMS so I don't understand the
> >>bad
> >> >> >results when  I >use "short " I have a few series and the result is
> >>the
> >> >> >same on all of them.
> >> >>
> >> >> >Does anyone know where the problem comes from ?
> >> >>
> >> >> >Thank you in advance,
> >> >>
> >> >> >Regards,
> >> >>
> >> >> >Philippe
> >> >>
> >> >>_________________________________________________________________
> >> >>Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis
> >>votre
> >> >>mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
> >> >>
> >> >>_______________________________________________
> >> >>Insight-users mailing list
> >> >>Insight-users at itk.org
> >> >>http://www.itk.org/mailman/listinfo/insight-users
> >> >>
> >> >
> >> >
> >> >--
> >> >Mathieu
> >>
> >>_________________________________________________________________
> >>Gagnez des écrans plats avec Live.com http://www.image-addict.fr/
> >>
> >>
> >
> >
> >--
> >Mathieu
>
> _________________________________________________________________
> Windows Live Messenger sur i-mode™ : dialoguez avec vos amis depuis votre
> mobile comme sur PC ! http://mobile.live.fr/messenger/bouygues/
>
>


-- 
Mathieu


More information about the Insight-users mailing list