[Insight-users] Two ITK IO Problems

Jia Fucang jiafucang at asisz.com
Sun Jan 9 06:39:32 EST 2005


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



More information about the Insight-users mailing list