The mitk::ImageWriter::WriteByITK method will use
AccessByItk_1( image, _mitkItkPictureWrite, fileName );
to store the image in case the file ending is one of (png, tif, jpg). The Access function itself has a hard-coded OutputImage Types
- <unsigned char, 2> OutputImageType2D
- <unsigned char, 3> OutputImageType3D
which then define the writer. Moreover, the intensity of the input image is scaled to fit to the range of unsigned char. For this reason, MITK is not able to store a RGB(A) image as PNG or JPG or TIFF.