13 #ifndef mitkContourModelUtils_h
14 #define mitkContourModelUtils_h
20 #include <vtkSmartPointer.h>
67 int paintingPixelValue = 1));
81 int paintingPixelValue = 1);
98 int paintingPixelValue = 1);
116 int paintingPixelValue,
117 double fillForegroundThreshold = 1.0);
#define MITKCONTOURMODEL_EXPORT
BaseGeometry Describes the geometry of a data object.
Helpful methods for working with contours and images.
mitkClassMacroItkParent(ContourModelUtils, itk::Object)
static void FillSliceInSlice(vtkSmartPointer< vtkImageData > filledImage, vtkSmartPointer< vtkImageData > resultImage, int paintingPixelValue, double fillForegroundThreshold=1.0)
Fills the paintingPixelValue into every pixel of resultImage as indicated by filledImage....
~ContourModelUtils() override
static void FillContourInSlice2(const ContourModel *projectedContour, Image *sliceImage, int paintingPixelValue=1)
Fill a contour in a 2D slice with a specified pixel value. This version always uses the contour of ti...
static ContourModel::Pointer ProjectContourTo2DSlice(const Image *slice, const ContourModel *contourIn3D)
Projects a contour onto an image point by point. Converts from world to index coordinates.
static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry, const ContourModel *contourIn2D)
Projects a slice index coordinates of a contour back into world coordinates.
static ContourModel::Pointer MoveZerothContourTimeStep(const ContourModel *contour, TimeStepType timeStep)
Move the contour in time step 0 to to a new contour model at the given time step.
static void FillContourInSlice2(const ContourModel *projectedContour, TimeStepType contourTimeStep, Image *sliceImage, int paintingPixelValue=1)
Fill a contour in a 2D slice with a specified pixel value. This overloaded version uses the contour a...
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
Image class for storing images.
Find image slices visible on a given plane.