Orfeo Toolbox  4.0
itkSobelOperator.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 __itkSobelOperator_h
19 #define __itkSobelOperator_h
20 
22 
23 namespace itk
24 {
94 template< typename TPixel, unsigned int VDimension = 2,
95  typename TAllocator = NeighborhoodAllocator< TPixel > >
97  public NeighborhoodOperator< TPixel, VDimension, TAllocator >
98 {
99 public:
103 
104  itkTypeMacro(SobelOperator, NeighborhoodOperator);
105 
107  SobelOperator(const Self & other):
108  NeighborhoodOperator< TPixel, VDimension, TAllocator >(other)
109  {}
110 
116  virtual void CreateDirectional()
117  {
118  this->CreateToRadius(1);
119  }
120 
125  // virtual void CreateToRadius(const unsigned long);
129  Self & operator=(const Self & other)
130  {
131  Superclass::operator=(other);
132  return *this;
133  }
134 
138  virtual void PrintSelf(std::ostream & os, Indent i) const
139  {
140  os << i << "SobelOperator { this=" << this << "}" << std::endl;
142  }
143 
144 protected:
151 
156 
160  void Fill(const CoefficientVector & c);
161 };
162 } // namespace itk
163 
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkSobelOperator.hxx"
166 #endif
167 
168 #endif

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