[Insight-developers] erro in reading original standard dicom file using itkGDCMImageIO.cxx

Çرó½Ü bjqin at sjtu.edu.cn
Thu Dec 23 02:27:50 EST 2004


Hi bill and all:
    There is error at line 340 of itkGDCMImageIO.cxx in reading original standard dicom file under Visual c++ platform¡£the error exception's description is, 0x0551a1d9 "C:\ITK\Code\IO\itkGDCMImageIO.cxx: 340: itk::error: GDCMImageIO(05516940):Unrecognized type:OS in file E:\dicomdat\ct.dcm".

    Anyway, when using same code such as following 
{ 
    ......... 
    typedef itk::Image< short, 2 > ImageType2D;
	typedef  itk::ImageFileReader< ImageType2D >   ReaderType2D;
	
	ReaderType2D::Pointer reader=ReaderType2D::New();
	
	typedef itk::GDCMImageIO        ImageIOType;
	ImageIOType::Pointer gdcmImageIO = ImageIOType::New();
	
	reader->SetFileName(filename);
	
	reader->SetImageIO( gdcmImageIO );
	
	try
	{
		reader->Update();
	}
	catch (itk::ExceptionObject &ex)
	{
		std::cout << ex << std::endl;
		return ;//EXIT_FAILURE;
	}		
	
	gdcmImageIO->ReadImageInformation(); 

     ......

}
   to read dicom file which is created by OSIRIS's ROI and Zoom out operator-the new file is different from original image file at image spacing and dimension size information, this new file is displayed correctly.

   Any help? Thank you!

   Best Regards

bjqin at sjtu


    






More information about the Insight-developers mailing list