A new class 'PlanarFigureSegmentationController' shall be added that takes a series of PlanarFigures as input. By interpolating the contours defined by the figure, a binary image is to be created.
This class can be implemented analogous to the SurfaceInterpolationController.
Instead of getting Surfaces as Input, PlanarFigure are given.
From these figures, surfaces are created by using the figures polyline.
- For each planarFigure a mitkSurface is created from the figures polyline
- Using the mitk::ReduceContourSetFilter, the number of points of the surface is reduced to increase performance
- mitk::ComputeContourSetNormalsFilter computes the normals for each point to the surface (needed for interpolation)
- The mitk::CreateDistanceImageFromSurfaceFilter creates a distance-image from the surfaces
- The distance-image is 'turned into' a surface by means of the vtkMarchingCubes
- This surface is turned into a binary image by means of the mitk::SurfaceToImageFilter