Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
Go to the documentation of this file.
13 #ifndef mitkImageLiveWireContourModelFilter_h
14 #define mitkImageLiveWireContourModelFilter_h
52 itkFactorylessNewMacro(
Self);
76 itkSetMacro(UseDynamicCostMap,
bool);
77 itkGetMacro(UseDynamicCostMap,
bool);
81 void ClearRepulsivePoints();
89 void AddRepulsivePoint(
const itk::Index<2> &idx);
93 void RemoveRepulsivePoint(
const itk::Index<2> &idx);
95 virtual void SetInput(
const InputType *input);
97 using Superclass::SetInput;
98 virtual void SetInput(
unsigned int idx,
const InputType *input);
102 const InputType *GetInput(
unsigned int idx);
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,
void GenerateOutputInformation() override
Calculates a LiveWire contour between two points in an image.
itk::ShortestPathCostFunctionLiveWire< InternalImageType > CostFunctionType
Cost function for LiveWire purposes. Specific features are considered to calculate cummulative costs ...
Image class for storing images.
CostFunctionType::Pointer m_CostFunction
The cost function to compute costs between two pixels.
std::vector< itk::Index< 2 > > ShortestPathType
mitk::Point3D m_StartPointInIndex
Start point in index.
Find image slices visible on a given plane.
itk::Image< float, 2 > InternalImageType
mitk::Point3D m_StartPoint
start point in worldcoordinates
void SetUseCostFunction(bool doUseCostFunction)
Superclass of all classes generating some kind of mitk::BaseData.
itk::ShortestPathImageFilter< InternalImageType, InternalImageType > ShortestPathImageFilterType
ShortestPathImageFilterType::Pointer m_ShortestPathFilter
Shortest path filter according to cost function m_CostFunction.
InternalImageType::Pointer m_InternalImage
ContourModel is a structure of linked vertices defining a contour in 3D space. The vertices are store...
#define MITKSEGMENTATION_EXPORT
mitk::Point3D m_EndPointInIndex
End point in index.
OutputType::Pointer OutputTypePointer
#define mitkClassMacro(className, SuperClassName)
Superclass of all classes generating ContourModels.
mitk::Point3D m_EndPoint
end point in woorldcoordinates
bool m_UseDynamicCostMap
Flag to use a dynamic cost map or not.