diff --git a/Modules/DiffusionImaging/Algorithms/itkShortestPathCostFunctionTbss.txx b/Modules/DiffusionImaging/Algorithms/itkShortestPathCostFunctionTbss.txx deleted file mode 100644 index 32896d160d..0000000000 --- a/Modules/DiffusionImaging/Algorithms/itkShortestPathCostFunctionTbss.txx +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef __itkShortestPathCostFunctionTbss_txx -#define __itkShortestPathCostFunctionTbss_txx - -#include "itkShortestPathCostFunctionTbss.h" -#include - - - -namespace itk -{ - - // Constructor - template - ShortestPathCostFunctionTbss - ::ShortestPathCostFunctionTbss() - { - } - - - template - double ShortestPathCostFunctionTbss - ::GetCost(IndexType p1 ,IndexType p2) - { - // Very simple Metric: - // The squared difference of both values is defined as cost - - double a,b,c; - ConstIteratorType it( this->m_Image, this->m_Image->GetRequestedRegion()); - - it.SetIndex(p1); - a = it.Get(); - it.SetIndex(p2); - b = it.Get(); - - - if(a==b) - { - double dxSqt = (p1[0]-p2[0]) * (p1[0]-p2[0]);// * 1000; - double dySqt = (p1[1]-p2[1]) * (p1[1]-p2[1]); - double dzSqt = (p1[2]-p2[2]) * (p1[2]-p2[2]); - c = sqrt(dxSqt + dySqt + dzSqt); - } - else if(p1[0] != p2[0]) - { - c=std::numeric_limits::max( ); - } - else - { - c=std::numeric_limits::max( ); - } - - return c; - } - - - template - void ShortestPathCostFunctionTbss - ::Initialize() - { - } - - template - double ShortestPathCostFunctionMitral - ::GetMinCost() - { - return 1.0; - } - - - - -} // end namespace itk - -#endif // __itkShortestPathCostFunctionSimple_txx