InsightSoftwareConsortium / InsightSoftwareConsortium/ITKPythonPackage

Reading Legacy Converted Enhanced Images

Đang mở
#105 19 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
CMake
Star
66
Fork
25
Merge trung bình
1 ngày 18 giờ
Pull request đã merge (30 ngày)
2

Mô tả

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)

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.