Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <mitkSurfaceInterpolationController.h>
Classes | |
struct | ContourPositionInformation |
Public Types | |
typedef std::vector< ContourPositionInformation > | CPIVector |
Public Member Functions | |
mitkClassMacroItkParent (SurfaceInterpolationController, itk::Object) | |
Pointer | Clone () const |
void | AddNewContours (const std::vector< ContourPositionInformation > &newCPIs, bool reinitializeAction=false, bool silent=false) |
Adds new extracted contours to the list. If one or more contours at a given position already exist they will be updated respectively. More... | |
bool | RemoveContour (ContourPositionInformation contourInfo, bool keepPlaceholderForUndo=false) |
Removes the contour for a given plane for the current selected segmentation. More... | |
void | RemoveObservers () |
void | Interpolate (const LabelSetImage *segmentationImage, LabelSetImage::LabelValueType labelValue, TimeStepType timeStep) |
Performs the interpolation. More... | |
mitk::Surface::Pointer | GetInterpolationResult (const LabelSetImage *segmentationImage, LabelSetImage::LabelValueType labelValue, TimeStepType timeStep) |
Get the Result of the interpolation operation. More... | |
void | SetMinSpacing (double minSpacing) |
Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before they are used to interpolate the surface. More... | |
void | SetMaxSpacing (double maxSpacing) |
Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before they are used to interpolate the surface. More... | |
void | SetDistanceImageVolume (unsigned int distImageVolume) |
mitk::LabelSetImage * | GetCurrentSegmentation () |
Get the current selected segmentation for which the interpolation is performed. More... | |
void | SetDataStorage (DataStorage::Pointer ds) |
void | SetCurrentInterpolationSession (LabelSetImage *currentSegmentationImage) |
void | RemoveInterpolationSession (const LabelSetImage *segmentationImage) |
Remove interpolation session. More... | |
void | RemoveAllInterpolationSessions () |
Removes all sessions. More... | |
CPIVector * | GetContours (LabelSetImage::LabelValueType labelValue, TimeStepType timeStep) |
Get the Contours at a certain timeStep and layerID. More... | |
std::vector< LabelSetImage::LabelValueType > | GetAffectedLabels (const LabelSetImage *seg, TimeStepType timeStep, const PlaneGeometry *plane) const |
void | CompleteReinitialization (const std::vector< ContourPositionInformation > &newCPIs) |
Triggered with the "Reinit Interpolation" action. The contours are used to repopulate the. More... | |
void | RemoveContours (const LabelSetImage *segmentationImage, mitk::Label::PixelType label, TimeStepType timeStep) |
Removes contours of a particular label and at a given time step for the current session/segmentation. More... | |
void | RemoveContours (const LabelSetImage *segmentationImage, mitk::Label::PixelType label) |
Removes contours of a particular label and at a given time step for the current session/segmentation. More... | |
unsigned int | GetNumberOfInterpolationSessions () |
mitk::DataNode * | GetSegmentationImageNode () const |
Get the Segmentation Image Node object. More... | |
Static Public Member Functions | |
static Pointer | New () |
static SurfaceInterpolationController * | GetInstance () |
Protected Member Functions | |
SurfaceInterpolationController () | |
~SurfaceInterpolationController () override | |
template<typename TPixel , unsigned int VImageDimension> | |
void | GetImageBase (itk::Image< TPixel, VImageDimension > *input, itk::ImageBase< 3 >::Pointer &result) |
Definition at line 30 of file mitkSurfaceInterpolationController.h.
typedef std::vector<ContourPositionInformation> mitk::SurfaceInterpolationController::CPIVector |
Definition at line 69 of file mitkSurfaceInterpolationController.h.
|
protected |
|
overrideprotected |
void mitk::SurfaceInterpolationController::AddNewContours | ( | const std::vector< ContourPositionInformation > & | newCPIs, |
bool | reinitializeAction = false , |
||
bool | silent = false |
||
) |
Adds new extracted contours to the list. If one or more contours at a given position already exist they will be updated respectively.
Pointer mitk::SurfaceInterpolationController::Clone | ( | ) | const |
void mitk::SurfaceInterpolationController::CompleteReinitialization | ( | const std::vector< ContourPositionInformation > & | newCPIs | ) |
Triggered with the "Reinit Interpolation" action. The contours are used to repopulate the.
Triggered with the "Reinit Interpolation" action. The contours are used to repopulate the surfaceInterpolator data structures so that interpolation can be performed after reloading data.
std::vector<LabelSetImage::LabelValueType> mitk::SurfaceInterpolationController::GetAffectedLabels | ( | const LabelSetImage * | seg, |
TimeStepType | timeStep, | ||
const PlaneGeometry * | plane | ||
) | const |
CPIVector* mitk::SurfaceInterpolationController::GetContours | ( | LabelSetImage::LabelValueType | labelValue, |
TimeStepType | timeStep | ||
) |
Get the Contours at a certain timeStep and layerID.
timeStep | Time Step from which to get the contours. |
labelValue | label from which to get the contours. |
mitk::LabelSetImage* mitk::SurfaceInterpolationController::GetCurrentSegmentation | ( | ) |
Get the current selected segmentation for which the interpolation is performed.
|
protected |
|
static |
mitk::Surface::Pointer mitk::SurfaceInterpolationController::GetInterpolationResult | ( | const LabelSetImage * | segmentationImage, |
LabelSetImage::LabelValueType | labelValue, | ||
TimeStepType | timeStep | ||
) |
Get the Result of the interpolation operation.
unsigned int mitk::SurfaceInterpolationController::GetNumberOfInterpolationSessions | ( | ) |
mitk::DataNode* mitk::SurfaceInterpolationController::GetSegmentationImageNode | ( | ) | const |
void mitk::SurfaceInterpolationController::Interpolate | ( | const LabelSetImage * | segmentationImage, |
LabelSetImage::LabelValueType | labelValue, | ||
TimeStepType | timeStep | ||
) |
Performs the interpolation.
mitk::SurfaceInterpolationController::mitkClassMacroItkParent | ( | SurfaceInterpolationController | , |
itk::Object | |||
) |
|
static |
void mitk::SurfaceInterpolationController::RemoveAllInterpolationSessions | ( | ) |
Removes all sessions.
bool mitk::SurfaceInterpolationController::RemoveContour | ( | ContourPositionInformation | contourInfo, |
bool | keepPlaceholderForUndo = false |
||
) |
Removes the contour for a given plane for the current selected segmentation.
contourInfo | the contour which should be removed |
keepPlaceholderForUndo |
void mitk::SurfaceInterpolationController::RemoveContours | ( | const LabelSetImage * | segmentationImage, |
mitk::Label::PixelType | label | ||
) |
Removes contours of a particular label and at a given time step for the current session/segmentation.
segmentationImage | |
label | Label of contour to remove. |
void mitk::SurfaceInterpolationController::RemoveContours | ( | const LabelSetImage * | segmentationImage, |
mitk::Label::PixelType | label, | ||
TimeStepType | timeStep | ||
) |
Removes contours of a particular label and at a given time step for the current session/segmentation.
segmentationImage | |
label | Label of contour to remove. |
timeStep | Time step in which to remove the contours. |
void mitk::SurfaceInterpolationController::RemoveInterpolationSession | ( | const LabelSetImage * | segmentationImage | ) |
Remove interpolation session.
segmentationImage | the session to be removed |
void mitk::SurfaceInterpolationController::RemoveObservers | ( | ) |
void mitk::SurfaceInterpolationController::SetCurrentInterpolationSession | ( | LabelSetImage * | currentSegmentationImage | ) |
Sets the current list of contourpoints which is used for the surface interpolation
currentSegmentationImage | The current selected segmentation |
void mitk::SurfaceInterpolationController::SetDataStorage | ( | DataStorage::Pointer | ds | ) |
void mitk::SurfaceInterpolationController::SetDistanceImageVolume | ( | unsigned int | distImageVolume | ) |
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
void mitk::SurfaceInterpolationController::SetMaxSpacing | ( | double | maxSpacing | ) |
Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before they are used to interpolate the surface.
maxSpacing | Set the max Spacing for interpolation |
void mitk::SurfaceInterpolationController::SetMinSpacing | ( | double | minSpacing | ) |
Sets the minimum spacing of the current selected segmentation This is needed since the contour points we reduced before they are used to interpolate the surface.
minSpacing | Parameter to set |