[Insight-users] Convert NRRD into DICOM

Ezequiel Geremia t-egerem at microsoft.com
Mon Jun 22 10:42:35 EDT 2009


Hi,

I tried to convert NRRD, which is ITK supported format, data volumes into DICOM volumes using the generic converter given in ImageReadWrite.exe with the following arguments

-          Input file: LTS_IMG05.raw

-          Output file: LTS_IM05.dcm (also tried .dic and .dicom file extensions)

-          Exception:

itk::ImageFileReaderException (0146EEC0)

Location: "void __thiscall itk::ImageFileReader<class itk::Image<short,3>,class itk::DefaultConvertPixelTraits<short> >::GenerateOutputInformation(void)"

File: c:\users\t-egerem\software\insighttoolkit-3.14.0\src\code\io\itkImageFileReader.txx

Line: 144

Description:  Could not create IO object for file C:\Users\t-egerem\Downloads\3D-Liver-Tumor-Segmentation-Challenge-2008\Extracted-Files\Testing-Data\LTS_IMG05.raw

  Tried to create one of the following:

    GDCMImageIO

    MetaImageIO

    PNGImageIO
    VTKImageIO

    GiplImageIO

    BioRadImageIO

    LSMImageIO

    AnalyzeImageIO

    NiftiImageIO

    StimulateImageIO

    JPEGImageIO

    TIFFImageIO

    NrrdImageIO

    BMPImageIO

    DICOMImageIO2

  You probably failed to set a file suffix or set the suffix to an unsupported type.

Then I tried to shortcut the pluggable factory mechanism and it does not as well with the same data it throws the following error message
                itk::ExceptionObject (0122F614)
Location: "void __thiscall itk::ImageFileReader<class itk::Image<short,3>,class itk::DefaultConvertPixelTraits<short> >::EnlargeOutputRequestedRegion(class itk::DataObject *)"File: c:\users\t-egerem\software\insighttoolkit-3.14.0\src\code\io\itkImageFileReader.txx
Line: 342
Description: itk::ERROR: ImageFileReader(0172F7C0): ImageIO returns IO region that does not fully contain the requested regionRequested region: ImageRegion (0122F8D8)
  Dimension: 3
  Index: [0, 0, 0]
  Size: [0, 0, 0]
StreamableRegion region: ImageRegion (0172F8A4)
  Dimension: 3
  Index: [0, 0, 0]
  Size: [0, 0, 0]

If you can think of a solution can you please point it out to me ?

Regards,

Ezequiel Geremia

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090622/e2bd620e/attachment-0001.htm>


More information about the Insight-users mailing list