[Insight-developers] Re: Insight-developers Digest, Vol 8, Issue 12

Çرó½Ü bjqin at sjtu.edu.cn
Thu Dec 23 21:06:57 EST 2004


Hi bill:
   The error took place at reading original dicom image file, not osiris created file. However, the osiris created file is read correctly.

======= 2004-12-24 01:00:14 ÄúÔÚÀ´ÐÅÖÐдµÀ£º=======

>Send Insight-developers mailing list submissions to
>	insight-developers at itk.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	http://www.itk.org/mailman/listinfo/insight-developers
>or, via email, send a message with subject or body 'help' to
>	insight-developers-request at itk.org
>
>You can reach the person managing the list at
>	insight-developers-owner at itk.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Insight-developers digest..."
>
>
>Today's Topics:
>
>   1. erro in reading original standard dicom file	using
>      itkGDCMImageIO.cxx (Çرó½Ü)
>   2. Re: erro in reading original standard	dicom file using
>      itkGDCMImageIO.cxx (Bill Lorensen)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Thu, 23 Dec 2004 15:27:50 +0800
>From: "Çرó½Ü" <bjqin at sjtu.edu.cn>
>Subject: [Insight-developers] erro in reading original standard dicom
>	file	using itkGDCMImageIO.cxx
>To: "insight-developers at itk.org" <insight-developers at itk.org>
>Message-ID: <20041223072312.DB158A0B0 at mx.sjtu.edu.cn>
>
>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
>
>
>    
>
>
>
>
>
>
>------------------------------
>
>Message: 2
>Date: Thu, 23 Dec 2004 08:55:44 -0500
>From: Bill Lorensen <wlorens1 at nycap.rr.com>
>Subject: Re: [Insight-developers] erro in reading original standard
>	dicom file using itkGDCMImageIO.cxx
>To: bjqin at sjtu.edu.cn,	"insight-developers at itk.org"
>	<insight-developers at itk.org>
>Message-ID: <6.0.0.22.2.20041223085411.028d9168 at pop.nycap.rr.com>
>Content-Type: text/plain; charset="iso-8859-1"; format=flowed
>
>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
>
>
>
>------------------------------
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk.org
>http://www.itk.org/mailman/listinfo/insight-developers
>
>
>End of Insight-developers Digest, Vol 8, Issue 12
>*************************************************
>

= = = = = = = = = = = = = = = = = = = =
			

¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡ÖÂ
Àñ£¡
 
				 
 Çرó½Ü               
Binjie Qin, Ph.D.
Associate Professor
Dept. of Biomedical Engineering
Shanghai Jiao Tong University
1954 Huashan Road 
Shanghai, 200030,P.R.China
Tel. 86-21-27893022,86-21-62932832-166(or 165)
Fax. 86-21-52540226
E-mail: bjqin at sjtu.edu.cn
2004-12-24





More information about the Insight-developers mailing list