ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkHigherOrderAccurateDerivativeImageFilter.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 itkHigherOrderAccurateDerivativeImageFilter_h
19#define itkHigherOrderAccurateDerivativeImageFilter_h
20
22
23namespace itk
24{
25
48template <typename TInputImage, typename TOutputImage>
49class HigherOrderAccurateDerivativeImageFilter : public ImageToImageFilter<TInputImage, TOutputImage>
50{
51public:
52 ITK_DISALLOW_COPY_AND_MOVE(HigherOrderAccurateDerivativeImageFilter);
53
59
62 using OutputPixelType = typename TOutputImage::PixelType;
63 using OutputInternalPixelType = typename TOutputImage::InternalPixelType;
64 using InputPixelType = typename TInputImage::PixelType;
65 using InputInternalPixelType = typename TInputImage::InternalPixelType;
66
69 static constexpr unsigned int ImageDimension = TOutputImage::ImageDimension;
70
72 using InputImageType = TInputImage;
73 using OutputImageType = TOutputImage;
74
76 itkNewMacro(Self);
77
79 itkOverrideGetNameOfClassMacro(HigherOrderAccurateDerivativeImageFilter);
80
83
85 itkSetMacro(Order, unsigned int);
86 itkGetConstMacro(Order, unsigned int);
87 itkSetMacro(OrderOfAccuracy, unsigned int);
88 itkGetConstMacro(OrderOfAccuracy, unsigned int);
89 itkSetMacro(Direction, unsigned int);
90 itkGetConstMacro(Direction, unsigned int);
91
94 void
96 {
97 this->SetUseImageSpacing(true);
98 }
99
102 void
104 {
105 this->SetUseImageSpacing(false);
106 }
107
110 itkSetMacro(UseImageSpacing, bool);
111 itkGetConstMacro(UseImageSpacing, bool);
112
113protected:
115
117 void
118 PrintSelf(std::ostream & os, Indent indent) const override;
119
127 void
129
135 void
136 GenerateData() override;
137
138private:
140 unsigned int m_Order{ 1 };
141
143 unsigned int m_OrderOfAccuracy{ 2 };
144
146 unsigned int m_Direction{ 0 };
147
148 bool m_UseImageSpacing{ true };
149};
150
151} // end namespace itk
152
153#ifndef ITK_MANUAL_INSTANTIATION
154# include "itkHigherOrderAccurateDerivativeImageFilter.hxx"
155#endif
156
157#endif
void PrintSelf(std::ostream &os, Indent indent) const override
~HigherOrderAccurateDerivativeImageFilter() override=default
Control indentation during Print() invocation.
Definition itkIndent.h:53
Define additional traits for native types such as int or float.
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)