Orfeo Toolbox  4.0
itkImageKernelOperator.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkImageKernelOperator_h
19 #define __itkImageKernelOperator_h
20 
22 
23 #include "itkImage.h"
24 
25 namespace itk
26 {
46 template< typename TPixel, unsigned int VDimension = 2,
47  typename TAllocator = NeighborhoodAllocator< TPixel > >
49  public NeighborhoodOperator< TPixel, VDimension, TAllocator >
50 {
51 public:
55 
57  typedef typename Superclass::SizeType SizeType;
59 
62 
64  ImageKernelOperator(const Self & orig):
65  Neighborhood< TPixel, VDimension, TAllocator >(orig)
66  {}
67 
69  Self & operator=(const Self & orig)
70  {
72  return *this;
73  }
74 
78  void SetImageKernel(const ImageType *kernel);
79 
81  const ImageType * GetImageKernel() const;
82 
84  virtual void PrintSelf(std::ostream & os, Indent i) const
85  {
86  os << i << "ImageKernelOperator { this=" << this
87  << "} " << std::endl;
89  }
90 
91 protected:
94 
96  void Fill(const CoefficientVector & coeff);
97 
98 private:
100 
102  const char * GetNameOfClass()
103  { return "itkImageKernelOperator"; }
104 
105 };
106 } // namespace itk
107 
108 #ifndef ITK_MANUAL_INSTANTIATION
110 #endif
111 
112 #endif

Generated at Sat Mar 8 2014 14:50:33 for Orfeo Toolbox with doxygen 1.8.3.1