Medical Imaging Interaction Toolkit  2018.4.99-9a29ffc6
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 #ifndef __itkShortestPathCostFunction_txx
13 #define __itkShortestPathCostFunction_txx
14 
15 #include "itkShortestPathCostFunction.h"
16 
17 namespace itk
18 {
19  template <class TInputImageType>
20  void ShortestPathCostFunction<TInputImageType>::PrintSelf(std::ostream &os, Indent indent) const
21  {
22  Superclass::PrintSelf(os, indent);
23  }
24 
25  template <class TInputImageType>
26  void ShortestPathCostFunction<TInputImageType>::SetStartIndex(const typename TInputImageType::IndexType &index)
27  {
28  for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
29  {
30  m_StartIndex[i] = index[i];
31  }
32  }
33 
34  template <class TInputImageType>
35  void ShortestPathCostFunction<TInputImageType>::SetEndIndex(const typename TInputImageType::IndexType &index)
36  {
37  for (unsigned int i = 0; i < TInputImageType::ImageDimension; ++i)
38  {
39  m_EndIndex[i] = index[i];
40  }
41  }
42 
43 } // end namespace itk
44 
45 #endif // __itkShortestPathCostFunction_txx