Medical Imaging Interaction Toolkit
2016.11.0
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... | |
Protected Member Functions | |
ContourModelUtils () | |
virtual | ~ContourModelUtils () |
Helpful methods for working with contours and images.
Definition at line 34 of file mitkContourModelUtils.h.
|
protected |
Definition at line 37 of file mitkContourModelUtils.cpp.
|
protectedvirtual |
Definition at line 41 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 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().
|
static |
Fill a contour in a 2D slice with a specified pixel value at time step 0.
Definition at line 118 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 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().
|
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 | |||
) |
|
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 45 of file mitkContourModelUtils.cpp.
References mitk::ContourModel::Begin(), mitk::ContourModel::End(), mitk::BaseData::GetGeometry(), mitk::BaseData::GetTimeGeometry(), mitk::BaseGeometry::IsIndexInside(), MITK_DEBUG, mitk::ContourModel::New(), and mitk::BaseGeometry::WorldToIndex().
Referenced by mitk::LiveWireTool2D::ConfirmSegmentation(), mitk::ContourModelSetToImageFilter::GenerateData(), mitk::CorrectorAlgorithm::ImprovedHeimannCorrectionAlgorithm(), mitk::ContourUtils::ProjectContourTo2DSlice(), and mitk::FeedbackContourTool::ProjectContourTo2DSlice().