The mitk::ImageWriter class returns a hard coded list of file extensions while using ITK writers to write image files. The attached patch provides a factory class which cycles through all registered ImageIO objects in ITK, collects a list of all ITK supported file extensions and returns it. This enables supporting own ITK base ImageIO classes instead of wrapping them for MITK.
The patch modifies the mitkImageWriter.cpp file as well as the Code/files.cmake and brings separate source/header file for the factory class. The patch applies to mitk trunk revision 23283. It was generated one level above the mitk root directory.