17 #ifndef mitkFastMarchingTool_h_Included
18 #define mitkFastMarchingTool_h_Included
32 #include "itkBinaryThresholdImageFilter.h"
33 #include "itkCurvatureAnisotropicDiffusionImageFilter.h"
34 #include "itkFastMarchingImageFilter.h"
35 #include "itkGradientMagnitudeRecursiveGaussianImageFilter.h"
36 #include "itkSigmoidImageFilter.h"
45 class StateMachineAction;
46 class InteractionEvent;
64 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
74 typedef
itk::GradientMagnitudeRecursiveGaussianImageFilter<InternalImageType, InternalImageType>
GradientFilterType;
81 virtual const
char **GetXPM() const override;
82 virtual const
char *
GetName() const override;
84 virtual
us::ModuleResource GetCursorIconResource() const override;
85 us::ModuleResource GetIconResource() const override;
88 void SetUpperThreshold(
double);
91 void SetLowerThreshold(
double);
94 void SetStoppingValue(
double);
97 void SetSigma(
double);
100 void SetAlpha(
double);
103 void SetBeta(
double);
106 virtual
void ConfirmSegmentation();
109 virtual
void SetCurrentTimeStep(
int t);
119 virtual ~FastMarchingTool();
125 virtual
void Activated() override;
126 virtual
void Deactivated() override;
127 virtual
void Initialize();
129 virtual
void BuildITKPipeline();
135 virtual
void OnDelete(StateMachineAction *,
InteractionEvent *interactionEvent);
147 int m_CurrentTimeStep;
151 float m_LowerThreshold;
152 float m_UpperThreshold;
153 float m_StoppingValue;
160 InternalImageType::
Pointer m_ReferenceImageSliceAsITK;
167 ThresholdingFilterType::
Pointer m_ThresholdFilter;
169 GradientFilterType::
Pointer m_GradientMagnitudeFilter;
171 FastMarchingFilterType::
Pointer m_FastMarchingFilter;
Super class for all position events.
static void Update(vtkPolyData *)
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
#define mitkNewMessageMacro(msgHandleObject)
Data structure which stores a set of points. Superclass of mitk::Mesh.
Represents an action, that is executed after a certain event (in statemachine-mechanism) TODO: implem...
virtual void ConnectActionsAndFunctions() override
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
static std::string GetName(std::string fileName, std::string suffix)
Describes a two-dimensional, rectangular plane.
Class for nodes of the DataTree.
Super-class that provides the functionality of a StateMachine to DataInteractors. ...