13 #ifndef mitkContourModelUtils_h
14 #define mitkContourModelUtils_h
19 #include <vtkSmartPointer.h>
76 int paintingPixelValue = 1);
93 int paintingPixelValue = 1);
#define MITKCONTOURMODEL_EXPORT
Abstract base class describing the geometry of a data object.
Static utility methods for working with contour models and images.
mitkClassMacroItkParent(ContourModelUtils, itk::Object)
~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)
Project a 3D contour onto a 2D image slice.
static ContourModel::Pointer BackProjectContourFrom2DSlice(const BaseGeometry *sliceGeometry, const ContourModel *contourIn2D)
Back-project a 2D slice contour into 3D world coordinates.
static ContourModel::Pointer MoveZerothContourTimeStep(const ContourModel *contour, TimeStepType timeStep)
Create a new contour model with the contour from time step 0 placed at the specified 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...
A time-resolved contour representation consisting of linked vertices in 3D space.
Image class for storing multi-dimensional medical image data.
Find image slices visible on a given plane.
std::size_t TimeStepType
Type for time step indices (non-negative integers starting from 0).