Draft: Fix imagecontinuous dilate and erode

There seems to be an issue with vtkImageContinuousDilate3Dand vtkImageContinuousErode3D when a PNG image is used.

The error message is:

ImageContinuousErode3D: vtk/Common/Core/vtkDataArrayValueRange_AOS.h:79: vtk::detail::ValueRange<vtkAOSDataArrayTemplate<ValueType>, TupleSize, ForceValueTypeForVtkDataArray>::ValueRange(ArrayType*, vtk::ValueIdType, vtk::ValueIdType) [with ValueTypeT = unsigned char; int TupleSize = 1; ForceValueTypeForVtkDataArray = double; ArrayType = vtkAOSDataArrayTemplate<unsigned char>; vtk::ValueIdType = long long int]: Assertion `arr->GetNumberOfComponents() == TupleSize' failed.

I have have no idea how to fix this.

Merge request reports

Loading