0

I am trying to load an MINC 2.0 Image with SimpleITK 0.5.1 C# version

I get the following error:

System.ApplicationException : Exception thrown in SimpleITK ImageFileReader_Execute: ..\..\..\..\..\ITK\Modules\IO\HDF5\src\itkHDF5ImageIO.cxx:883:
itk::ERROR: HDF5ImageIO(000000001DBE7AE0): H5Dopen2 failed

My code is as follows:

String fileName = @"d:\Temp\MRI\tst-convert.mnc";

ImageFileReader reader = new ImageFileReader();
reader.SetFileName(fileName);
Image image = reader.Execute();

Do you have an suggestions what can cause such error? Should I install some additional libraries?

hyde
  • 60,639
  • 21
  • 115
  • 176
Sebastian Widz
  • 1,962
  • 4
  • 26
  • 45

2 Answers2

1

I got a response from ITK User group: Current version of SimpleITK and also ITK can not read MINC Images.

Sebastian Widz
  • 1,962
  • 4
  • 26
  • 45
1

As of ITK version 4.4 a new MINC IO module has been contributed. This is not enabled by default, and is not include with the SimpleITK version. However a custom ITK can be build with this module enabled, by enabling the "Module_ITKIOMINC" cmake option. Then a custom SimpleITK can be built against that version of ITK.

blowekamp
  • 1,401
  • 7
  • 7