Medical Imaging Interaction Toolkit  2018.4.99-389bf124
Medical Imaging Interaction Toolkit
mitk::SurfaceBasedInterpolationController Class Reference

#include <mitkSurfaceBasedInterpolationController.h>

Inheritance diagram for mitk::SurfaceBasedInterpolationController:
Collaboration diagram for mitk::SurfaceBasedInterpolationController:

Public Member Functions

 mitkClassMacroItkParent (SurfaceBasedInterpolationController, itk::Object)
 
Pointer Clone () const
 
void AddNewContour (ContourModel::Pointer newContour, RestorePlanePositionOperation *op)
 
void Interpolate ()
 
mitk::Surface::Pointer GetInterpolationResult ()
 
void SetMinSpacing (double minSpacing)
 
void SetMaxSpacing (double maxSpacing)
 
void SetDistanceImageVolume (unsigned int value)
 
void SetWorkingImage (Image *workingImage)
 
SurfaceGetContoursAsSurface ()
 
void SetActiveLabel (int activeLabel)
 
mitk::ImageGetImage ()
 
double EstimatePortionOfNeededMemory ()
 

Static Public Member Functions

static Pointer New ()
 
static SurfaceBasedInterpolationControllerGetInstance ()
 

Protected Member Functions

 SurfaceBasedInterpolationController ()
 
 ~SurfaceBasedInterpolationController () override
 
void Initialize ()
 

Detailed Description

Definition at line 31 of file mitkSurfaceBasedInterpolationController.h.

Constructor & Destructor Documentation

◆ SurfaceBasedInterpolationController()

mitk::SurfaceBasedInterpolationController::SurfaceBasedInterpolationController ( )
protected

Definition at line 35 of file mitkSurfaceBasedInterpolationController.cpp.

References Initialize().

Referenced by GetInstance().

◆ ~SurfaceBasedInterpolationController()

mitk::SurfaceBasedInterpolationController::~SurfaceBasedInterpolationController ( )
overrideprotected

Definition at line 41 of file mitkSurfaceBasedInterpolationController.cpp.

Member Function Documentation

◆ AddNewContour()

◆ Clone()

Pointer mitk::SurfaceBasedInterpolationController::Clone ( ) const

◆ EstimatePortionOfNeededMemory()

double mitk::SurfaceBasedInterpolationController::EstimatePortionOfNeededMemory ( )

Estimates the memory that is needed to build up the equation system for the interpolation.

Returns
The percentage of the real memory which will be used by the interpolation calculation

Definition at line 233 of file mitkSurfaceBasedInterpolationController.cpp.

References mitk::MemoryUtilities::GetTotalSizeOfPhysicalRam().

◆ GetContoursAsSurface()

mitk::Surface * mitk::SurfaceBasedInterpolationController::GetContoursAsSurface ( )

Retrieves the input contours as a mitk::Surface

Definition at line 203 of file mitkSurfaceBasedInterpolationController.cpp.

◆ GetImage()

mitk::Image * mitk::SurfaceBasedInterpolationController::GetImage ( void  )

Definition at line 228 of file mitkSurfaceBasedInterpolationController.cpp.

◆ GetInstance()

mitk::SurfaceBasedInterpolationController * mitk::SurfaceBasedInterpolationController::GetInstance ( )
static

◆ GetInterpolationResult()

mitk::Surface::Pointer mitk::SurfaceBasedInterpolationController::GetInterpolationResult ( )

Retrieves a surface mesh resulting from the interpolation of the given extracted contours.

Definition at line 198 of file mitkSurfaceBasedInterpolationController.cpp.

◆ Initialize()

void mitk::SurfaceBasedInterpolationController::Initialize ( )
protected

◆ Interpolate()

void mitk::SurfaceBasedInterpolationController::Interpolate ( )

Launches the interpolation method. A surface mesh is generated out of the given extracted contours.

Definition at line 126 of file mitkSurfaceBasedInterpolationController.cpp.

References mitk::ContourModelToSurfaceFilter::New(), mitk::ComputeContourSetNormalsFilter::New(), mitk::ImageToSurfaceFilter::New(), and mitk::ReduceContourSetFilter::New().

◆ mitkClassMacroItkParent()

mitk::SurfaceBasedInterpolationController::mitkClassMacroItkParent ( SurfaceBasedInterpolationController  ,
itk::Object   
)

◆ New()

static Pointer mitk::SurfaceBasedInterpolationController::New ( )
static

◆ SetActiveLabel()

void mitk::SurfaceBasedInterpolationController::SetActiveLabel ( int  activeLabel)

Sets the current list of contour points which is used for the surface interpolation

Parameters
activeLabelThe active label in the current working image

Definition at line 247 of file mitkSurfaceBasedInterpolationController.cpp.

Referenced by QmitkLabelSetWidget::SetOrganColors().

◆ SetDistanceImageVolume()

void mitk::SurfaceBasedInterpolationController::SetDistanceImageVolume ( unsigned int  value)

Sets the volume i.e. the number of pixels that the distance image should have By evaluation we found out that 50.000 pixel delivers a good result

Definition at line 218 of file mitkSurfaceBasedInterpolationController.cpp.

◆ SetMaxSpacing()

void mitk::SurfaceBasedInterpolationController::SetMaxSpacing ( double  maxSpacing)

Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before, are used to interpolate the surface

Definition at line 213 of file mitkSurfaceBasedInterpolationController.cpp.

◆ SetMinSpacing()

void mitk::SurfaceBasedInterpolationController::SetMinSpacing ( double  minSpacing)

Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before, are used to interpolate the surface

Definition at line 208 of file mitkSurfaceBasedInterpolationController.cpp.

◆ SetWorkingImage()

void mitk::SurfaceBasedInterpolationController::SetWorkingImage ( Image workingImage)

Sets the working image used by the interpolation method. This is needed because the calculation of the normals needs to now wheather a normal points toward the inside of a segmentation or not

Definition at line 223 of file mitkSurfaceBasedInterpolationController.cpp.


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