Orfeo Toolbox  3.16
itkNeighborhoodOperatorImageFunction.txx
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkNeighborhoodOperatorImageFunction.txx,v $
5  Language: C++
6  Date: $Date: 2009-02-06 20:53:13 $
7  Version: $Revision: 1.6 $
8 
9  Copyright (c) Insight Software Consortium. All rights reserved.
10  See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 #ifndef __itkNeighborhoodOperatorImageFunction_txx
18 #define __itkNeighborhoodOperatorImageFunction_txx
19 
23 
24 namespace itk
25 {
26 
28 template <class TInputImage,class TOutput>
31 {
32 }
33 
35 template <class TInputImage,class TOutput>
36 void
38 ::PrintSelf(std::ostream& os, Indent indent) const
39 {
40  this->Superclass::PrintSelf(os,indent);
41  os << indent << "Applying Operator Function:" << std::endl;
42 }
43 
45 template <class TInputImage,class TOutput>
46 TOutput
48 ::EvaluateAtIndex(const IndexType& index) const
49 {
52  bit = ConstNeighborhoodIterator<InputImageType>(m_Operator.GetRadius(),this->GetInputImage(),this->GetInputImage()->GetRequestedRegion());
53  bit.SetLocation(index);
54 
55  return smartInnerProduct(bit, m_Operator);
56 }
57 
58 } // end namespace itk
59 
60 #endif

Generated at Sat Feb 2 2013 23:56:17 for Orfeo Toolbox with doxygen 1.8.1.1