ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHigherOrderAccurateDerivativeOperator.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 itkHigherOrderAccurateDerivativeOperator_h
19#define itkHigherOrderAccurateDerivativeOperator_h
20
22
23namespace itk
24{
25
60template <typename TPixel, unsigned int VDimension = 2, typename TAllocator = NeighborhoodAllocator<TPixel>>
61class HigherOrderAccurateDerivativeOperator : public NeighborhoodOperator<TPixel, VDimension, TAllocator>
62{
63public:
67
70
72 itkOverrideGetNameOfClassMacro(HigherOrderAccurateDerivativeOperator);
73
76
79 : NeighborhoodOperator<TPixel, VDimension, TAllocator>(other)
80 {
81 m_Order = other.m_Order;
82 }
83
85 Self &
86 operator=(const Self & other)
87 {
89 m_Order = other.m_Order;
90 return *this;
91 }
92
96 void
97 SetOrder(const unsigned int & order)
98 {
99 this->m_Order = order;
100 }
101
103 unsigned int
104 GetOrder() const
105 {
106 return m_Order;
107 }
108
112 void
113 SetOrderOfAccuracy(const unsigned int & order)
114 {
115 this->m_OrderOfAccuracy = order;
116 }
117
118 unsigned int
120 {
121 return m_OrderOfAccuracy;
122 }
123
125 void
126 PrintSelf(std::ostream & os, Indent i) const override
127 {
128 os << i << "HigherOrderAccurateDerivativeOperator { this=" << this << ", m_Order = " << m_Order
129 << ", m_OrderOfAccuracy = " << m_OrderOfAccuracy << "}" << std::endl;
131 }
132
133protected:
137
141
143 void
144 Fill(const CoefficientVector & coeff) override
145 {
147 }
148
149private:
152
154 unsigned int m_Order{ 1 };
155
157 unsigned int m_OrderOfAccuracy{ 2 };
158};
159
160} // namespace itk
161
162#ifndef ITK_MANUAL_INSTANTIATION
163# include "itkHigherOrderAccurateDerivativeOperator.hxx"
164#endif
165
166#endif
CoefficientVector GenerateCoefficients() override
void PrintSelf(std::ostream &os, Indent i) const override
NeighborhoodOperator< TPixel, VDimension, TAllocator > Superclass
CoefficientVector GenerateFirstOrderCoefficients()
Control indentation during Print() invocation.
Definition itkIndent.h:53
Indent GetNextIndent() const
Virtual class that defines a common interface to all neighborhood operator subtypes.
virtual void FillCenteredDirectional(const CoefficientVector &)
void PrintSelf(std::ostream &os, Indent indent) const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....