[Insight-developers] erro in reading original standard
dicom file using itkGDCMImageIO.cxx
Bill Lorensen
wlorens1 at nycap.rr.com
Thu Dec 23 08:55:44 EST 2004
I have a version of Osiris. Can you tell me the steps to use the ROI and
zoom to create a new image? I'll try to reproduce your problem.
Bill
At 02:27 AM 12/23/2004, =?UNKNOWN?B?x9ix873c?= wrote:
>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
>
>
>
>
>
>
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers
More information about the Insight-developers
mailing list