Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
Helpful methods for working with contours and images. More...
#include <mitkContourModelUtils.h>
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... | |
static ContourModel::Pointer | MoveZerothContourTimeStep (const ContourModel *contour, unsigned int timeStep) |
Move the contour in time step 0 to to a new contour model at the given time step. More... | |
Protected Member Functions | |
ContourModelUtils () | |
~ContourModelUtils () override | |
Helpful methods for working with contours and images.
Definition at line 29 of file mitkContourModelUtils.h.
|
protected |
Definition at line 23 of file mitkContourModelUtils.cpp.
|
overrideprotected |
Definition at line 27 of file mitkContourModelUtils.cpp.
|
static |
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 65 of file mitkContourModelUtils.cpp.
References mitk::ContourModel::Begin(), mitk::ContourModel::End(), mitk::BaseData::GetTimeSteps(), mitk::BaseGeometry::IndexToWorld(), and mitk::ContourModel::New().
Referenced by mitk::ContourUtils::BackProjectContourFrom2DSlice(), and mitk::FeedbackContourTool::BackProjectContourFrom2DSlice().
|
static |
Fill a contour in a 2D slice with a specified pixel value at time step 0.
Definition at line 98 of file mitkContourModelUtils.cpp.
Referenced by mitk::LiveWireTool2D::ConfirmSegmentation(), mitk::ContourUtils::FillContourInSlice(), mitk::FeedbackContourTool::FillContourInSlice(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::PaintbrushTool::MouseMoved(), mitk::SetRegionTool::OnMouseReleased(), mitk::ContourTool::OnMouseReleased(), and mitk::RegionGrowingTool::OnMouseReleased().
|
static |
Fill a contour in a 2D slice with a specified pixel value at a given time step.
Definition at line 104 of file mitkContourModelUtils.cpp.
References mitk::eps, FillSliceInSlice(), mitk::Image::GetVtkImageData(), image, MITK_WARN, mitk::ContourModelToSurfaceFilter::New(), mitk::Surface::New(), and mitk::Image::SetVolume().
|
static |
Fills a image (filledImage) into another image (resultImage) by incorporating the rules of LabelSet-Images.
Definition at line 156 of file mitkContourModelUtils.cpp.
References mitk::LabelSetImage::GetExteriorLabel(), and mitk::Label::GetValue().
Referenced by FillContourInSlice().
mitk::ContourModelUtils::mitkClassMacroItkParent | ( | ContourModelUtils | , |
itk::Object | |||
) |
|
static |
Move the contour in time step 0 to to a new contour model at the given time step.
Definition at line 203 of file mitkContourModelUtils.cpp.
References mitk::ContourModel::Begin(), mitk::ContourModel::End(), and mitk::ContourModel::New().
Referenced by mitk::SetRegionTool::OnMousePressed(), and mitk::RegionGrowingTool::OnMousePressedOutside().
|
static |
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 31 of file mitkContourModelUtils.cpp.
References mitk::ContourModel::Begin(), mitk::ContourModel::End(), mitk::BaseData::GetGeometry(), mitk::BaseData::GetTimeSteps(), and mitk::ContourModel::New().
Referenced by mitk::LiveWireTool2D::ConfirmSegmentation(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::CorrectorAlgorithm::ImprovedHeimannCorrectionAlgorithm(), mitk::ContourUtils::ProjectContourTo2DSlice(), and mitk::FeedbackContourTool::ProjectContourTo2DSlice().