12 #ifndef itkShortestPathCostFunctionTbss_h
13 #define itkShortestPathCostFunctionTbss_h
15 #include <itkObject.h>
16 #include <itkObjectFactory.h>
17 #include <itkShapedNeighborhoodIterator.h>
19 #include <itkImageRegionConstIterator.h>
47 template <
class TInputImageType>
57 typedef typename TInputImageType::IndexType
IndexType;
62 itkFactorylessNewMacro(
Self);
116 #include <itkShortestPathCostFunctionTbss.tpp>
Cost function for Tract-Based Spatial Statistics (TBSS) path finding.
~ShortestPathCostFunctionTbss() override
itk::ImageRegionConstIterator< TInputImageType > ConstIteratorType
itk::Image< float, 3 > FloatImageType
ShortestPathCostFunctionTbss()
double m_Threshold
Intensity threshold below which pixels are impassable.
ShortestPathCostFunctionTbss Self
SmartPointer< const Self > ConstPointer
TInputImageType::IndexType IndexType
double GetCost(IndexType p1, IndexType p2) override
Calculate the cost of transitioning from pixel p1 to pixel p2.
ShortestPathCostFunction< TInputImageType > Superclass
void SetThreshold(double t)
Set the intensity threshold below which pixels are impassable.
SmartPointer< Self > Pointer
void Initialize() override
Initialize the cost function.
double GetMinCost() override
Return the minimal possible cost (needed for A*).
Abstract base class for cost functions used by ShortestPathImageFilter.
TInputImageType::IndexType IndexType