13 #ifndef _mitkImageLiveWireContourModelFilter_h__ 14 #define _mitkImageLiveWireContourModelFilter_h__ 53 itkFactorylessNewMacro(
Self);
77 itkSetMacro(UseDynamicCostMap,
bool);
78 itkGetMacro(UseDynamicCostMap,
bool);
82 itkSetMacro(TimeStep,
unsigned int);
83 itkGetMacro(TimeStep,
unsigned int);
87 void ClearRepulsivePoints();
91 void SetRepulsivePoints(
const ShortestPathType &points);
101 virtual void SetInput(
const InputType *input);
103 using Superclass::SetInput;
104 virtual void SetInput(
unsigned int idx,
const InputType *input);
106 const InputType *GetInput(
void);
108 const InputType *GetInput(
unsigned int idx);
110 virtual OutputType *GetOutput();
112 virtual void DumpMaskImage();
124 void GenerateData()
override;
126 void UpdateLiveWire();
151 template <
typename TPixel,
unsigned int VImageDimension>
152 void ItkPreProcessImage(
const itk::Image<TPixel, VImageDimension> *inputImage);
154 template <
typename TPixel,
unsigned int VImageDimension>
155 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...
OutputType::Pointer OutputTypePointer
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.
itk::ShortestPathImageFilter< InternalImageType, InternalImageType > ShortestPathImageFilterType
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 ...
itk::ShortestPathCostFunctionLiveWire< InternalImageType > CostFunctionType
mitk::Point3D m_StartPointInIndex
Start point in index.
void GenerateOutputInformation() override