Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
itkShortestPathCostFunction.txx
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 #ifndef __itkShortestPathCostFunction_txx
17 #define __itkShortestPathCostFunction_txx
18 
19 #include "itkShortestPathCostFunction.h"
20 
21 namespace itk
22 {
23  template <class TInputImageType>
24  void ShortestPathCostFunction<TInputImageType>::PrintSelf(std::ostream &os, Indent indent) const
25  {
26  Superclass::PrintSelf(os, indent);
27  }
28 
29  template <class TInputImageType>
30  void ShortestPathCostFunction<TInputImageType>::SetStartIndex(const typename TInputImageType::IndexType &index)
31  {
32  for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
33  {
34  m_StartIndex[i] = index[i];
35  }
36  }
37 
38  template <class TInputImageType>
39  void ShortestPathCostFunction<TInputImageType>::SetEndIndex(const typename TInputImageType::IndexType &index)
40  {
41  for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
42  {
43  m_EndIndex[i] = index[i];
44  }
45  }
46 
47 } // end namespace itk
48 
49 #endif // __itkShortestPathCostFunction_txx