Medical Imaging Interaction Toolkit
2018.4.99-389bf124
Medical Imaging Interaction Toolkit
|
#include <mitkSurfaceBasedInterpolationController.h>
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) |
Surface * | GetContoursAsSurface () |
void | SetActiveLabel (int activeLabel) |
mitk::Image * | GetImage () |
double | EstimatePortionOfNeededMemory () |
Static Public Member Functions | |
static Pointer | New () |
static SurfaceBasedInterpolationController * | GetInstance () |
Protected Member Functions | |
SurfaceBasedInterpolationController () | |
~SurfaceBasedInterpolationController () override | |
void | Initialize () |
Definition at line 31 of file mitkSurfaceBasedInterpolationController.h.
|
protected |
Definition at line 35 of file mitkSurfaceBasedInterpolationController.cpp.
References Initialize().
Referenced by GetInstance().
|
overrideprotected |
Definition at line 41 of file mitkSurfaceBasedInterpolationController.cpp.
void mitk::SurfaceBasedInterpolationController::AddNewContour | ( | ContourModel::Pointer | newContour, |
RestorePlanePositionOperation * | op | ||
) |
Adds a new extracted contour to the list
Definition at line 76 of file mitkSurfaceBasedInterpolationController.cpp.
References mitk::RestorePlanePositionOperation::GetDirectionVector(), mitk::RestorePlanePositionOperation::GetHeight(), mitk::RestorePlanePositionOperation::GetPos(), mitk::RestorePlanePositionOperation::GetSpacing(), mitk::RestorePlanePositionOperation::GetTransform(), mitk::RestorePlanePositionOperation::GetWidth(), and mitk::OpRESTOREPLANEPOSITION.
Pointer mitk::SurfaceBasedInterpolationController::Clone | ( | ) | const |
double mitk::SurfaceBasedInterpolationController::EstimatePortionOfNeededMemory | ( | ) |
Estimates the memory that is needed to build up the equation system for the interpolation.
Definition at line 233 of file mitkSurfaceBasedInterpolationController.cpp.
References mitk::MemoryUtilities::GetTotalSizeOfPhysicalRam().
mitk::Surface * mitk::SurfaceBasedInterpolationController::GetContoursAsSurface | ( | ) |
Retrieves the input contours as a mitk::Surface
Definition at line 203 of file mitkSurfaceBasedInterpolationController.cpp.
mitk::Image * mitk::SurfaceBasedInterpolationController::GetImage | ( | void | ) |
Definition at line 228 of file mitkSurfaceBasedInterpolationController.cpp.
|
static |
Definition at line 64 of file mitkSurfaceBasedInterpolationController.cpp.
References SurfaceBasedInterpolationController().
Referenced by QmitkLabelSetWidget::SetOrganColors().
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.
|
protected |
Definition at line 54 of file mitkSurfaceBasedInterpolationController.cpp.
References mitk::Surface::New(), and mitk::CreateDistanceImageFromSurfaceFilter::New().
Referenced by SurfaceBasedInterpolationController().
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().
mitk::SurfaceBasedInterpolationController::mitkClassMacroItkParent | ( | SurfaceBasedInterpolationController | , |
itk::Object | |||
) |
|
static |
void mitk::SurfaceBasedInterpolationController::SetActiveLabel | ( | int | activeLabel | ) |
Sets the current list of contour points which is used for the surface interpolation
activeLabel | The active label in the current working image |
Definition at line 247 of file mitkSurfaceBasedInterpolationController.cpp.
Referenced by QmitkLabelSetWidget::SetOrganColors().
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.
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.
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.
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.