13 #ifndef _mitkImageLiveWireContourModelFilter_h__ 14 #define _mitkImageLiveWireContourModelFilter_h__ 52 itkFactorylessNewMacro(
Self);
76 itkSetMacro(UseDynamicCostMap,
bool);
77 itkGetMacro(UseDynamicCostMap,
bool);
81 void ClearRepulsivePoints();
85 void SetRepulsivePoints(
const ShortestPathType &points);
95 virtual void SetInput(
const InputType *input);
97 using Superclass::SetInput;
98 virtual void SetInput(
unsigned int idx,
const InputType *input);
100 const InputType *GetInput(
void);
102 const InputType *GetInput(
unsigned int idx);
104 virtual OutputType *GetOutput();
106 virtual void DumpMaskImage();
111 void SetUseCostFunction(
bool doUseCostFunction) { m_ShortestPathFilter->SetUseCostFunction(doUseCostFunction); };
120 void GenerateData()
override;
122 void UpdateLiveWire();
147 template <
typename TPixel,
unsigned int VImageDimension>
148 void ItkPreProcessImage(
const itk::Image<TPixel, VImageDimension> *inputImage);
150 template <
typename TPixel,
unsigned int VImageDimension>
151 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.
void SetUseCostFunction(bool doUseCostFunction)
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