I use the IOUtil in a test in DiffusionCore Module to load/save (diffusion-)images. With
RegisterDiffusionCoreObjectFactory(); mitk::Image::Pointer inputImage = mitk::IOUtil::LoadImage(str_filename);
the corresponding image is loaded correctly, but at the end of the test, when I call
mitk::IOUtil::SaveImage( dwi_image_out, "/tmp/output.dwi" )
the IOUtil reponses with:
!2.989! WARNING: .dwi extension is unknown. Extension set to default: /tmp/output.nrrd [4.429] Diffusion-Image successfully initialized. [4.440] Writing image: /tmp/output.nrrd
This should not happen, the factory is correctly registered.