Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::ContourModelUtils Class Reference

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

#include <mitkContourModelUtils.h>

Inheritance diagram for mitk::ContourModelUtils:
Collaboration diagram for mitk::ContourModelUtils:

Public Member Functions

 mitkClassMacroItkParent (ContourModelUtils, itk::Object)
 

Static Public Member Functions

static ContourModel::Pointer ProjectContourTo2DSlice (Image *slice, ContourModel *contourIn3D, bool correctionForIpSegmentation, bool constrainToInside)
 Projects a contour onto an image point by point. Converts from world to index coordinates. More...
 
static ContourModel::Pointer BackProjectContourFrom2DSlice (const BaseGeometry *sliceGeometry, ContourModel *contourIn2D, bool correctionForIpSegmentation=false)
 Projects a slice index coordinates of a contour back into world coordinates. More...
 
static void FillContourInSlice (ContourModel *projectedContour, Image *sliceImage, mitk::Image::Pointer workingImage, int paintingPixelValue=1)
 Fill a contour in a 2D slice with a specified pixel value at time step 0. More...
 
static void FillContourInSlice (ContourModel *projectedContour, unsigned int timeStep, Image *sliceImage, mitk::Image::Pointer workingImage, int paintingPixelValue=1)
 Fill a contour in a 2D slice with a specified pixel value at a given time step. More...
 
static void FillSliceInSlice (vtkSmartPointer< vtkImageData > filledImage, vtkSmartPointer< vtkImageData > resultImage, mitk::Image::Pointer image, int paintingPixelValue)
 Fills a image (filledImage) into another image (resultImage) by incorporating the rules of LabelSet-Images. More...
 

Protected Member Functions

 ContourModelUtils ()
 
virtual ~ContourModelUtils ()
 

Detailed Description

Helpful methods for working with contours and images.

Definition at line 34 of file mitkContourModelUtils.h.

Constructor & Destructor Documentation

mitk::ContourModelUtils::ContourModelUtils ( )
protected

Definition at line 37 of file mitkContourModelUtils.cpp.

mitk::ContourModelUtils::~ContourModelUtils ( )
protectedvirtual

Definition at line 41 of file mitkContourModelUtils.cpp.

Member Function Documentation

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

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 85 of file mitkContourModelUtils.cpp.

References mitk::ContourModel::Begin(), mitk::ContourModel::End(), mitk::BaseData::GetTimeGeometry(), mitk::BaseGeometry::IndexToWorld(), and mitk::ContourModel::New().

Referenced by mitk::ContourUtils::BackProjectContourFrom2DSlice(), and mitk::FeedbackContourTool::BackProjectContourFrom2DSlice().

void mitk::ContourModelUtils::FillContourInSlice ( ContourModel projectedContour,
Image sliceImage,
mitk::Image::Pointer  workingImage,
int  paintingPixelValue = 1 
)
static
void mitk::ContourModelUtils::FillContourInSlice ( ContourModel projectedContour,
unsigned int  timeStep,
Image sliceImage,
mitk::Image::Pointer  workingImage,
int  paintingPixelValue = 1 
)
static

Fill a contour in a 2D slice with a specified pixel value at a given time step.

Definition at line 126 of file mitkContourModelUtils.cpp.

References mitk::eps, mitk::Image::GetVtkImageData(), MITK_WARN, mitk::ContourModelToSurfaceFilter::New(), mitk::Surface::New(), mitk::New(), and mitk::Image::SetVolume().

void mitk::ContourModelUtils::FillSliceInSlice ( vtkSmartPointer< vtkImageData >  filledImage,
vtkSmartPointer< vtkImageData >  resultImage,
mitk::Image::Pointer  image,
int  paintingPixelValue 
)
static

Fills a image (filledImage) into another image (resultImage) by incorporating the rules of LabelSet-Images.

Definition at line 188 of file mitkContourModelUtils.cpp.

References mitk::LabelSetImage::GetActiveLabel(), mitk::LabelSetImage::GetActiveLayer(), mitk::LabelSetImage::GetExteriorLabel(), mitk::LabelSetImage::GetLabel(), and mitk::Label::GetValue().

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

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