[Insight-users] Re: error!: Analyze reader in release 1.2

Luis Ibanez luis.ibanez@kitware.com
Tue, 25 Mar 2003 10:53:19 -0500


Hi Zhuo,

This seems to be a bug that was present
in Analyze reader in the 1.2 release.


Please do the following:

1) edit the file:

  Insight/Code/IO/itkImageIOFactory.cxx


2) look for the line # 100 where you will
   find code like:

ObjectFactoryBase::RegisterFactory( GiplImageIOFactory::New() );
ObjectFactoryBase::RegisterFactory( AnalyzeImageIOFactory::New());
ObjectFactoryBase::RegisterFactory( StimulateImageIOFactory::New());

3) Comment out the line of the Analyze ImageIOFactory

4) Recompile the ITKIO library

5) Recompile the ImageReadWrite program

6) Run the program again.


Please let us know if you have any problems


Thanks


Luis


------------------------------------

zhuo Chen wrote:
> I executed ImageReadWrite under MS-DOS environment and
> occured the following error:
> D:\>ImageReadWrite DicomtoVtk.mhd DicomtoVtkTest.vtk
> ExceptionObject caught!
> 
> itk::ExceptionObject <00E6F424>
> Location: "Unknown"
> File:D:\cz\research\cztask\VHP\ITK
> Install<3.19>\InsightToolkit-1.2.0\InsightToolkit-1.2.0
> \Code\IO\itkAnalyzeImageIO.cxx
> Line:1002
> Description: File cannot be read
> 
> What is the reason?
> 
> _________________________________________________________
> Do You Yahoo!? 
> 雅虎通网络KTV, 随时随地免费卡拉OK~~
> http://rd.yahoo.com/mail_cn/tag/?http://cn.messenger.yahoo.com//chat/index.html
>