[Insight-users] reading dicom images

Luis Ibanez luis.ibanez at kitware.com
Thu Jun 16 10:03:33 EDT 2005


Hi Archana,


Please set the ImageIO object explicitly.

You will find a C++ example in the Softwrare Guide

      http://www.itk.org/ItkSoftwareGuide.pdf


you probably can translate this C++ example into Java.


The ImageIO object that you want to use is


          GDCMImageIO


Regards,


     Luis



--------------------------
Archana Chilukuri wrote:

>  
> Hi All
>  
> I have a problem reading dicom images in itk. My dicom files have the 
> extension .dcm, however I get the following error:
>  
> java.lang.RuntimeException: 
> C:\itk\cvs-VC6.0\Insight\Code\IO\itkImageFileWriter.txx:146:
> 
> Could not create IO object for file C:\itk-jar\E1.dcm
> 
> Tried to create one of the following:
> 
> MetaImageIO
> 
> PNGImageIO
> 
> VTKImageIO
> 
> GiplImageIO
> 
> AnalyzeImageIO
> 
> StimulateImageIO
> 
> JPEGImageIO
> 
> TIFFImageIO
> 
> NrrdImageIO
> 
> BMPImageIO
> 
> DICOMImageIO2
> 
> You probably failed to set a file suffix, or
> 
> set the suffix to an unsupported type.
> 
> at 
> InsightToolkit.itkImageFileWriter_2DJNI.itkImageFileWriterUS2_Pointer_Update(Native 
> Method)
> 
> at 
> InsightToolkit.itkImageFileWriterUS2_Pointer.Update(itkImageFileWriterUS2_Pointer.java:131)
> 
> at BinaryThresholdImageFilter.main(BinaryThresholdImageFilter.java:31)
> 
> Exception in thread "main"
> 
>  
> thanks,
> Archana
>  
> ------------------------------------------------------------------------
> 
> This email message is for the sole use of the intended recipient(s) and 
> may contain confidential and privileged information.Any unauthorized 
> review, use, disclosure or distribution is prohibited. If you are not 
> the intended recipient, please contact the sender by reply email and 
> destroy all copies of the original message. If you are the intended 
> recipient, please be advised that the content of this message is subject 
> to access, review and disclosure by the sender's Email System 
> Administrator.
> 
> ------------------------------------------------------------------------
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users





More information about the Insight-users mailing list