kernel update in some vtkImageSpacialFilters' constructor
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
I hit a hardly reproducible segmentation fault and found a possible cause.
In some of vtkImageSpactialFilters (vtkImageContinuousErode3D, vtkImageDilateErode3D, vtkImageRange3D, vtkImageVariance3D), their kernel ellipse should be updated before multithreaded execution. But when these are used without changing its default kernel size (1,1,1), the ellipse hasn't been updated until the first execution.
These may be fixed as in vtkImageContinuousDilate3D:: vtkImageContinuousDilate3D()