1 /*===================================================================
3 The Medical Imaging Interaction Toolkit (MITK)
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
13 See LICENSE.txt or http://www.mitk.org for details.
15 ===================================================================*/
16 #ifndef __itkShortestPathCostFunction_txx
17 #define __itkShortestPathCostFunction_txx
19 #include "itkShortestPathCostFunction.h"
23 template <class TInputImageType>
24 void ShortestPathCostFunction<TInputImageType>::PrintSelf(std::ostream &os, Indent indent) const
26 Superclass::PrintSelf(os, indent);
29 template <class TInputImageType>
30 void ShortestPathCostFunction<TInputImageType>::SetStartIndex(const typename TInputImageType::IndexType &index)
32 for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
34 m_StartIndex[i] = index[i];
38 template <class TInputImageType>
39 void ShortestPathCostFunction<TInputImageType>::SetEndIndex(const typename TInputImageType::IndexType &index)
41 for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
43 m_EndIndex[i] = index[i];
47 } // end namespace itk
49 #endif // __itkShortestPathCostFunction_txx