Medical Imaging Interaction Toolkit  2023.04.00
Medical Imaging Interaction Toolkit
mitk::ContourExt Namespace Reference

Functions

size_t GetContourOrientation (const mitk::Vector3D &ContourNormal)
 Returns the plane the contour belongs to. More...
 
template<unsigned int VImageDimension>
mitk::Point3D ComputeInteriorPointOfContour (const mitk::SurfaceInterpolationController::ContourPositionInformation &contour, mitk::LabelSetImage *labelSetImage, mitk::TimePointType currentTimePoint)
 Function used to compute an interior point of the contour. Used to react to the merge label and erase label actions. More...
 
std::vector< mitk::Point3DGetBoundingBoxGridPoints (size_t planeDimension, double startDim1, size_t numPointsToSampleDim1, double deltaDim1, double startDim2, size_t numPointsToSampleDim2, double deltaDim2, double valuePlaneDim)
 Get a Grid points within the bounding box of the contour at a certain spacing. More...
 

Function Documentation

◆ ComputeInteriorPointOfContour()

template<unsigned int VImageDimension>
mitk::Point3D mitk::ContourExt::ComputeInteriorPointOfContour ( const mitk::SurfaceInterpolationController::ContourPositionInformation contour,
mitk::LabelSetImage labelSetImage,
mitk::TimePointType  currentTimePoint 
)

Function used to compute an interior point of the contour. Used to react to the merge label and erase label actions.

Template Parameters
VImageDimensionDimension of the image
Parameters
contourContour for which to compute the interior point
labelSetImageLabel Set Image For which to find the contour
currentTimePointCurrent Time Point of the Image
Returns
mitk::Point3D The returned point in the interior of the contour.s

◆ GetBoundingBoxGridPoints()

std::vector< mitk::Point3D > mitk::ContourExt::GetBoundingBoxGridPoints ( size_t  planeDimension,
double  startDim1,
size_t  numPointsToSampleDim1,
double  deltaDim1,
double  startDim2,
size_t  numPointsToSampleDim2,
double  deltaDim2,
double  valuePlaneDim 
)

Get a Grid points within the bounding box of the contour at a certain spacing.

Parameters
planeDimensionPlane orientation (Sagittal, Coronal, Axial)
startDim1Starting coordinate along dimension 1 to start the grid point sampling from
numPointsToSampleDim1Number of points to sample along dimension 1
deltaDim1Spacing for dimension 1 at which points should be sampled
startDim2Starting coordinate along dimension 2 to start the grid point sampling from
numPointsToSampleDim2Number of points to sample along dimension 2
deltaDim2Spacing for dimension 1 at which points should be sampled
valuePlaneDimSlice index of the plane in the volume
Returns
std::vector< mitk::Point3D > The computed grid points are returned by the function.

◆ GetContourOrientation()

size_t mitk::ContourExt::GetContourOrientation ( const mitk::Vector3D ContourNormal)

Returns the plane the contour belongs to.

Parameters
ContourNormal
Returns
size_t