InsightSoftwareConsortium / InsightSoftwareConsortium/ITKPythonPackage

Reading Legacy Converted Enhanced Images

Aberta
#105 19 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
CMake
Estrelas
66
Forks
25
Merge médio
1d 18h
PRs com merge (30d)
2

Descrição

I've converted a DICOM Series of Single-Frame MR Images to a Legacy Converted Enhanced MR Image using [MultiFrameImageFactory](http://www.dclunie.com/pixelmed/software/javadoc/com/pixelmed/dicom/MultiFrameImageFactory.html). When I try to load the generated multi-frame image using ITK's `imread` function, I get the following error:

```None
----> 1 image = itk.imread(input_filename)

~/.pyenvs/imglib/lib/python3.6/site-packages/itkExtras.py in imread(fileName, pixelType)
443 reader = itk.ImageFileReader[ImageType].New(FileName=fileName)
444 else:
--> 445 reader = itk.ImageFileReader.New(FileName=fileName)
446 reader.Update()
447 return reader.GetOutput()

~/.pyenvs/imglib/lib/python3.6/site-packages/itkTemplate.py in New(self, *args, **kwargs)
381 cur = itk.auto_pipeline.current
382 if self.__name__ == "itk::ImageFileReader":
--> 383 return self._NewImageFileReader(*args, **kwargs)
384 primary_input_methods = ('Input', 'InputImage', 'Input1')
385 if len(args) != 0:

~/.pyenvs/imglib/lib/python3.6/site-packages/itkTemplate.py in _NewImageFileReader(self, *args, **kwargs)
418 imageIO = itk.ImageIOFactory.CreateImageIO( inputFileName, itk.ImageIOFactory.ReadMode )
419 if not imageIO:
--> 420 raise RuntimeError("No ImageIO is registered to handle the given file.")
421 componentTypeDic= {"float": itk.F, "double": itk.D,
422 "unsigned_char": itk.UC, "unsigned_short": itk.US, "unsigned_int": itk.UI,

RuntimeError: No ImageIO is registered to handle the given file.
```

Support for Legacy Converted Enhanced Image Storage classes has only recently been added to GDCM:
https://github.com/malaterre/GDCM/blob/513a75c2f4dc704549223b831879c4a5fab00076/Source/DataStructureAndEncodingDefinition/gdcmMediaStorage.cxx#L144

This functionality is not yet in the GDCM code that comes with ITK:
https://github.com/InsightSoftwareConsortium/ITK/blob/6dffe29eb245f77ac27a17d0398fa3073cb6bf4c/Modules/ThirdParty/GDCM/src/gdcm/Source/DataStructureAndEncodingDefinition/gdcmMediaStorage.cxx#L143

Is there a change that the GDCM source code will be updated for the 5.0 release?

See also related [SimpleITK issue](https://github.com/SimpleITK/SimpleITK/issues/440)

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.