[Insight-users] problem reading dicom files

h h hossein9876 at gmail.com
Mon Apr 7 09:46:56 EDT 2008


Hi mathieu,
I dont want to convert my dicom files to png. My problem is that the
data that the iterator returns for file "img57" are incorrect but it
returns the correct data for file "im50"!!!! As i said before the high
byte of the ushort that the iterator returns is always "FC". I've
noticed that i can reconstruct the degraded image of  "IMG57" using
the low byte that the iterator returns, maybe thats the reason your
png file appears correct.


On 4/7/08, Mathieu Malaterre <mathieu.malaterre at gmail.com> wrote:
> On Mon, Apr 7, 2008 at 1:23 PM, h h <hossein9876 at gmail.com> wrote:
> > Hi luis,
> >  I did the procedure you described in part b and it didnt make a
> difference.
> >  I've uploaded 2 dicom files:
> >  1- http://myfreefilehosting.com/f/b97bbaf518_0.27MB
> >  2- http://myfreefilehosting.com/f/ee1443e018_0.5MB
> >
>
> Hi hossein,
>
>   What do you mean by incorrect data ?
>
> Following Luis advice, I modified a single line in:
>
> Insight/Examples/IO/ImageReadCastWrite.cxx
>
> I change:
>
>   typedef float               InputPixelType;
>
> into
>
>   typedef signed short InputPixelType;
>
> And then ran:
>
>  ./bin/ImageReadCastWrite ~/Desktop/IMG57 IMG57.png
>
> followed by
>
> ./bin/ImageReadCastWrite ~/Desktop/IM50 IM50.png
>
> In both case the image appear correct (using ITK CVS).
>
>
> Could you please post the png file that is not correct.
>
> Thanks
> --
> Mathieu
>


More information about the Insight-users mailing list