Medical Imaging Interaction Toolkit  2016.11.0
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, bool correctionForIpSegmentation, bool constrainToInside)
 Projects a contour onto an image point by point. Converts from world to index coordinates. More...
 
ContourModel::Pointer BackProjectContourFrom2DSlice (const BaseGeometry *sliceGeometry, Contour *contourIn2D, bool correctionForIpSegmentation=false)
 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 ()
 
virtual ~ContourUtils ()
 

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 33 of file mitkContourUtils.h.

Constructor & Destructor Documentation

mitk::ContourUtils::ContourUtils ( )
protected

Definition at line 20 of file mitkContourUtils.cpp.

mitk::ContourUtils::~ContourUtils ( )
protectedvirtual

Definition at line 24 of file mitkContourUtils.cpp.

Member Function Documentation

mitk::ContourModel::Pointer mitk::ContourUtils::BackProjectContourFrom2DSlice ( const BaseGeometry sliceGeometry,
Contour contourIn2D,
bool  correctionForIpSegmentation = false 
)

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

Parameters
correctionForIpSegmentationsubtracts 0.5 to x and y index coordinates (difference between ipSegmentation and MITK contours)

Definition at line 46 of file mitkContourUtils.cpp.

References mitk::ContourModelUtils::BackProjectContourFrom2DSlice(), mitk::Contour::GetPoints(), and mitk::ContourModel::New().

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

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

Definition at line 62 of file mitkContourUtils.cpp.

References mitk::ContourModelUtils::FillContourInSlice(), mitk::Contour::GetPoints(), and mitk::ContourModel::New().

mitk::ContourUtils::mitkClassMacroItkParent ( ContourUtils  ,
itk::Object   
)
static Pointer mitk::ContourUtils::New ( )
static
mitk::ContourModel::Pointer mitk::ContourUtils::ProjectContourTo2DSlice ( Image slice,
Contour contourIn3D,
bool  correctionForIpSegmentation,
bool  constrainToInside 
)

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

Parameters
correctionForIpSegmentationadds 0.5 to x and y index coordinates (difference between ipSegmentation and MITK contours)

Definition at line 28 of file mitkContourUtils.cpp.

References mitk::Contour::GetPoints(), mitk::ContourModel::New(), and mitk::ContourModelUtils::ProjectContourTo2DSlice().


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