12 #ifndef __itkShortestPathCostFunction_h
13 #define __itkShortestPathCostFunction_h
15 #include "itkObject.h"
16 #include "itkObjectFactory.h"
17 #include "itkShapedNeighborhoodIterator.h"
22 template <
class TInputImageType>
42 typedef typename TInputImageType::PixelType
PixelType;
43 typedef typename TInputImageType::IndexType
IndexType;
46 itkSetConstObjectMacro(
Image, TInputImageType);
66 void PrintSelf(std::ostream &os, Indent indent)
const override;
72 void operator=(
const Self &);
77 #include "itkShortestPathCostFunction.txx"
virtual void Initialize()=0
ShapedNeighborhoodIterator< TInputImageType > ShapedNeighborhoodIteratorType
TInputImageType::ConstPointer ImageConstPointer
TInputImageType ImageType
TInputImageType::IndexType IndexType
void SetStartIndex(const IndexType &index)
virtual double GetMinCost()=0
void SetEndIndex(const IndexType &index)
TInputImageType::Pointer ImagePointer
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
ShortestPathCostFunction()
TInputImageType::PixelType PixelType
virtual double GetCost(IndexType p1, IndexType p2)=0
ShortestPathCostFunction Self
void PrintSelf(std::ostream &os, Indent indent) const override
~ShortestPathCostFunction() override
ImageConstPointer m_Image