Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
Helpful methods for working with contours and images. More...
#include <mitkContourUtils.h>
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 () |
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.
|
protected |
Definition at line 20 of file mitkContourUtils.cpp.
|
protectedvirtual |
Definition at line 24 of file mitkContourUtils.cpp.
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.
correctionForIpSegmentation | subtracts 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 |
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.
correctionForIpSegmentation | adds 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().