Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
mitk::ContourUtils Class Reference

Helpful methods for working with contours and images. More...

#include <mitkContourUtils.h>

Inheritance diagram for mitk::ContourUtils:
Collaboration diagram for mitk::ContourUtils:

Public Member Functions

 mitkClassMacroItkParent (ContourUtils, itk::Object)
 
Pointer Clone () const
 
ContourModel::Pointer ProjectContourTo2DSlice (Image *slice, Contour *contourIn3D)
 Projects a contour onto an image point by point. Converts from world to index coordinates. More...
 
ContourModel::Pointer BackProjectContourFrom2DSlice (const BaseGeometry *sliceGeometry, Contour *contourIn2D)
 Projects a slice index coordinates of a contour back into world coordinates. More...
 
void FillContourInSlice (Contour *projectedContour, Image *sliceImage, int paintingPixelValue=1)
 Fill a contour in a 2D slice with a specified pixel value. More...
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

 ContourUtils ()
 
 ~ContourUtils () override
 

Detailed Description

Helpful methods for working with contours and images.

Legacy support for mitk::Contour TODO remove this class when mitk::Contour is removed

Definition at line 29 of file mitkContourUtils.h.

Constructor & Destructor Documentation

◆ ContourUtils()

mitk::ContourUtils::ContourUtils ( )
protected

◆ ~ContourUtils()

mitk::ContourUtils::~ContourUtils ( )
overrideprotected

Member Function Documentation

◆ BackProjectContourFrom2DSlice()

ContourModel::Pointer mitk::ContourUtils::BackProjectContourFrom2DSlice ( const BaseGeometry sliceGeometry,
Contour contourIn2D 
)

Projects a slice index coordinates of a contour back into world coordinates.

Parameters
sliceGeometry
contourIn2D

◆ Clone()

Pointer mitk::ContourUtils::Clone ( ) const

◆ FillContourInSlice()

void mitk::ContourUtils::FillContourInSlice ( Contour projectedContour,
Image sliceImage,
int  paintingPixelValue = 1 
)

Fill a contour in a 2D slice with a specified pixel value.

◆ mitkClassMacroItkParent()

mitk::ContourUtils::mitkClassMacroItkParent ( ContourUtils  ,
itk::Object   
)

◆ New()

static Pointer mitk::ContourUtils::New ( )
static

◆ ProjectContourTo2DSlice()

ContourModel::Pointer mitk::ContourUtils::ProjectContourTo2DSlice ( Image slice,
Contour contourIn3D 
)

Projects a contour onto an image point by point. Converts from world to index coordinates.

Parameters
slice
contourIn3D

The documentation for this class was generated from the following file: