ITK  6.0.0
Insight Toolkit
itkSobelOperator.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright NumFOCUS
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  * https://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 {
96 template <typename TPixel, unsigned int VDimension = 2, typename TAllocator = NeighborhoodAllocator<TPixel>>
97 class ITK_TEMPLATE_EXPORT SobelOperator : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
98 {
99 public:
100 
104 
105  itkOverrideGetNameOfClassMacro(SobelOperator);
106 
111  void
112  CreateDirectional() override
113  {
114  this->CreateToRadius(1);
115  }
116 
121  // virtual void CreateToRadius(const unsigned long);
122 
123 protected:
124 #ifdef ITK_USE_CONCEPT_CHECKING
125  // Begin concept checking
126  itkConceptMacro(SignedOutputPixelType, (Concept::Signed<typename NumericTraits<TPixel>::ValueType>));
127  // End concept checking
128 #endif
129 
131  using typename Superclass::CoefficientVector;
132 
134  CoefficientVector
135  GenerateCoefficients() override;
136 
138  void
139  Fill(const CoefficientVector & coeff) override;
140 };
141 } // namespace itk
142 
143 #ifndef ITK_MANUAL_INSTANTIATION
144 # include "itkSobelOperator.hxx"
145 #endif
146 
147 #endif
itk::SobelOperator
A NeighborhoodOperator for performing a directional Sobel edge-detection operation at a pixel locatio...
Definition: itkSobelOperator.h:97
itk::NumericTraits::ValueType
T ValueType
Definition: itkNumericTraits.h:67
itk::SobelOperator::CreateDirectional
void CreateDirectional() override
Definition: itkSobelOperator.h:112
itk::NeighborhoodOperator
Virtual class that defines a common interface to all neighborhood operator subtypes.
Definition: itkNeighborhoodOperator.h:72
itkNeighborhoodOperator.h
itk::Neighborhood
A light-weight container object for storing an N-dimensional neighborhood of values.
Definition: itkNeighborhood.h:54
itk::Concept::Signed
Definition: itkConceptChecking.h:657
itkConceptMacro
#define itkConceptMacro(name, concept)
Definition: itkConceptChecking.h:65
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnatomicalOrientation.h:29