Page MenuHomePhabricator

Error in vtkSmoothPolyDataFilter.cxx during creation of smoothed polygon model
Closed, WontfixPublic

Description

Actual behavior:
Using the right-click context of a segmentation node to perform the "Create Smoothed Polygon Model"-action, the MITK log outputs the following error message:
core.mod.core.loggingadapter ERROR: ERROR: In ...\bin\ep\src\VTK\Filters\Core\vtkSmoothPolyDataFilter.cxx, line 331
vtkSmoothPolyDataFilter (0000000012440790): No data to smooth!

This happens in the 'mitkManualSegmentationToSurfaceFilter.cpp' inside the 'void mitk::ManualSegmentationToSurfaceFilter::GenerateData()' function.

The smoothed contour is created as a surface node but does not contain any data.

Expected behavior:
Similar to the normal polygon model ("Create Polygon Model"-action), the renderer should draw a fine (e.g.) red contour around the selected segmentation

To reproduce:

  • load an image
  • open the segmentation plugin
  • create a new segmentation
  • draw a segmentation mask
  • right click on the newly created segmentation node and choose "Create Smoothed Polygon Model"
  • notice that the surface node is added to the segmentation node as a child node but no surface / contour is rendered

Event Timeline

kalali edited projects, added MITK; removed MITK (2016-11).
goch added a subscriber: goch.

This is not an error. If you create a single slice segmentation the third dimension will smooth out the entire segmentation to create an empty surface. Not an elegant mechanism, but not an error.

We came across this topic again:
I understand the idea of 3-dimensional smoothing. However, as mentioned in the task description, there is a vtk-filter error. We should strive to catch this error and not just "ignore" it. At least we should not throw an error in the MITK log.

kislinsk claimed this task.
kislinsk added a project: Auto-closed.
kislinsk added a subscriber: kislinsk.

Hi there! 🙂

This task was auto-closed according to our Task Lifecycle Management.
Please follow this link for more information and don't forget that you are encouraged to reasonable re-open tasks to revive them. 🚑

Best wishes,
The MITK devs

kislinsk removed kislinsk as the assignee of this task.May 26 2020, 12:05 PM
kislinsk removed a subscriber: kislinsk.