17 #ifndef _mitkImageLiveWireContourModelFilter_h__
18 #define _mitkImageLiveWireContourModelFilter_h__
57 itkFactorylessNewMacro(
Self) itkCloneMacro(
Self)
70 itkGetMacro(StartPoint,
mitk::Point3D);
74 itkGetMacro(EndPoint,
mitk::Point3D);
80 itkSetMacro(UseDynamicCostMap,
bool);
81 itkGetMacro(UseDynamicCostMap,
bool);
85 itkSetMacro(TimeStep,
unsigned int);
86 itkGetMacro(TimeStep,
unsigned int);
90 void ClearRepulsivePoints();
94 void SetRepulsivePoints(const ShortestPathType &points);
98 void AddRepulsivePoint(const
itk::Index<2> &idx);
102 void RemoveRepulsivePoint(const
itk::Index<2> &idx);
104 virtual
void SetInput(const InputType *input);
107 virtual
void SetInput(
unsigned int idx, const InputType *input);
109 const InputType *GetInput(
void);
111 const InputType *GetInput(
unsigned int idx);
113 virtual OutputType *GetOutput();
115 virtual
void DumpMaskImage();
123 virtual ~ImageLiveWireContourModelFilter();
125 void GenerateOutputInformation()
override{};
127 void GenerateData()
override;
129 void UpdateLiveWire();
154 template <
typename TPixel,
unsigned int VImageDimension>
155 void ItkPreProcessImage(
const itk::Image<TPixel, VImageDimension> *inputImage);
157 template <
typename TPixel,
unsigned int VImageDimension>
158 void CreateDynamicCostMapByITK(
const itk::Image<TPixel, VImageDimension> *inputImage,
mitk::Point3D m_EndPoint
end point in woorldcoordinates
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
itk::SmartPointer< Self > Pointer
std::vector< itk::Index< 2 > > ShortestPathType
itk::Image< float, 2 > InternalImageType
CostFunctionType::Pointer m_CostFunction
The cost function to compute costs between two pixels.
Superclass of all classes generating some kind of mitk::BaseData.
#define MITKSEGMENTATION_EXPORT
DataCollection - Class to facilitate loading/accessing structured data.
mitk::Point3D m_EndPointInIndex
End point in index.
Superclass of all classes generating ContourModels.
ShortestPathImageFilterType::Pointer m_ShortestPathFilter
Shortest path filter according to cost function m_CostFunction.
mitk::Point3D m_StartPoint
start point in worldcoordinates
#define mitkClassMacro(className, SuperClassName)
Image class for storing images.
Calculates a LiveWire contour between two points in an image.
InternalImageType::Pointer m_InternalImage
bool m_UseDynamicCostMap
Flag to use a dynmic cost map or not.
Cost function for LiveWire purposes. Specific features are considered to calculate cummulative costs ...
mitk::Point3D m_StartPointInIndex
Start point in index.
itk::ProcessObject Superclass