Orfeo Toolbox  3.16
itkImageKernelOperator.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Insight Segmentation & Registration Toolkit
4  Module: $RCSfile: itkImageKernelOperator.h,v $
5  Language: C++
6  Date: $Date: 2009-02-17 19:18:23 $
7  Version: $Revision: 1.1 $
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 __itkImageKernelOperator_h
18 #define __itkImageKernelOperator_h
19 
21 
22 #include "itkImage.h"
23 
24 namespace itk {
25 
36 template<class TPixel, unsigned int VDimension=2,
37  class TAllocator = NeighborhoodAllocator<TPixel> >
39  : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
40 {
41 public:
45 
47  typedef typename Superclass::CoefficientVector CoefficientVector;
48 
51 
54  : Neighborhood<TPixel, VDimension, TAllocator>(orig)
55  {}
56 
58  Self &operator=( const Self &orig )
59  {
60  Superclass::operator=(orig);
61  return *this;
62  }
63 
64  void SetImageKernel( ImageType *kernel )
65  {
66  this->m_ImageKernel = kernel;
67  }
68 
70  virtual void PrintSelf(std::ostream &os, Indent i) const
71  {
72  os << i << "ImageKernelOperator { this=" << this
73  << "} " << std::endl;
74  Superclass::PrintSelf( os, i.GetNextIndent() );
75  }
76 
77 protected:
78 
80  CoefficientVector GenerateCoefficients();
81 
83  void Fill( const CoefficientVector& coeff );
84 
85 private:
86 
88 
90  const char *GetNameOfClass()
91  { return "itkImageKernelOperator"; }
92 
93 };
94 
95 } // namespace itk
96 
97 
98 #ifndef ITK_MANUAL_INSTANTIATION
100 #endif
101 
102 #endif

Generated at Sat Feb 2 2013 23:43:05 for Orfeo Toolbox with doxygen 1.8.1.1