When I was trying to read a colored Doppler ultrasound image in MITK and display using MITK display module, I got a crash in vtkMitkLevelWindowFilter.cpp line 207:
*outputSI = static_cast<T>(rgb[0]); outputSI++;
For my case, in the dopplor ultrasound each channel in RGB space is float type. That means the pixel I should use is itk::RGBPixel<float>. However when I want to render this image I got the crash showing above.
But when I read the dicom using itk::RGBPixel<unsigned char>, it can be rendered without any problem. So it seems that this vtkMitkLevelWindowFilter can only handle color data with type itk::RGBPixel<unsigned char>.
I think this is a bug in vtkMitkLevelWindowFilter which cannot handle the RGB image with single channel pixel size larger than 255.