Orfeo Toolbox  4.0
itkDerivativeOperator.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 __itkDerivativeOperator_h
19 #define __itkDerivativeOperator_h
20 
22 
23 namespace itk
24 {
65 template< typename TPixel, unsigned int VDimension = 2,
66  typename TAllocator = NeighborhoodAllocator< TPixel > >
68  public NeighborhoodOperator< TPixel, VDimension, TAllocator >
69 {
70 public:
73  typedef NeighborhoodOperator<
74  TPixel, VDimension, TAllocator > Superclass;
75 
76  typedef typename Superclass::PixelType PixelType;
78 
81 
83  DerivativeOperator(const Self & other):
84  NeighborhoodOperator< TPixel, VDimension, TAllocator >(other)
85  { m_Order = other.m_Order; }
86 
88  Self & operator=(const Self & other)
89  {
90  if(this != &other)
91  {
92  Superclass::operator=(other);
93  m_Order = other.m_Order;
94  }
95  return *this;
96  }
97 
99  void SetOrder(const unsigned int & order)
100  {
101  this->m_Order = order;
102  }
103 
105  unsigned int GetOrder() const { return m_Order; }
106 
108  virtual void PrintSelf(std::ostream & os, Indent i) const
109  {
110  os << i << "DerivativeOperator { this=" << this
111  << ", m_Order = " << m_Order << "}" << std::endl;
113  }
114 
115 protected:
119 
122 
124  void Fill(const CoefficientVector & coeff)
126 
127 private:
129  unsigned int m_Order;
130 };
131 } // namespace itk
132 
133 #ifndef ITK_MANUAL_INSTANTIATION
134 #include "itkDerivativeOperator.hxx"
135 #endif
136 
137 #endif

Generated at Sat Mar 8 2014 14:32:58 for Orfeo Toolbox with doxygen 1.8.3.1