[Insight-developers] Re: [Insight-users] Two ITK IO Problems

Bill Lorensen wlorens1 at nycap.rr.com
Sun Jan 9 09:10:37 EST 2005


I also just added a test to see if we can write jpeg's. Looking at the 
coverage, (and this user's report) it is obvious that we never tried to 
write a jpeg...

Bill

At 07:17 AM 1/9/2005, Julien Jomier wrote:
>Hi Jia,
>
>Thanks for the report. I've put a fix for the itkJPEGImageIO.
>I'm looking into the Analyze incompatibility with bmp. We'll get back to
>you as soon as this is fixed.
>
>Thanks again,
>
>Julien
>
>Jia Fucang wrote:
> > Hi, everyone,
> >
> >
> > I come across two problems when I use ITK IO.
> >
> > The first is JPEG can not be written , I think there maybe a
> > typo in Insight/Code/IO/itkJPEGImageIO.cxx (CVS v1.7), line 402:
> >
> >  if ( this->GetComponentType() != UCHAR
> >    || this->GetComponentType() != UINT)
> >
> > maybe "||" should be "&&".
> >
> > The second is when there are fileprefix.bmp and fileprefix.hdr
> > coexist in the same directory, ITK IO can not read fileprefix.bmp
> > correctly. For example:
> >
> > imagereadcastwrite b.bmp b.png
> >
> > (there is b.hdr in the same directory)
> > cause the following exception:
> >
> > ////////////////
> > ExceptionObject caught !
> >
> > itk::ExceptionObject (00F3FA54)
> > Location: "Unknown"
> > File: E:\toolkit\Insight\Code\IO\itkAnalyzeImageIO.cxx
> > Line: 696
> > Description: Analyze Data File can not be read: The following files 
> were attempt
> > ed:
> >
> > .gz
> >
> > //////////////
> >
> >
> > Thank you!
> >
> > Fucang
> >
> > _______________________________________________
> > Insight-users mailing list
> > Insight-users at itk.org
> > http://www.itk.org/mailman/listinfo/insight-users
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-developers mailing list