ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkFrequencyFunction.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 itkFrequencyFunction_h
19#define itkFrequencyFunction_h
20
21#include <itkSpatialFunction.h>
22#include <itkFloatTypes.h>
23
24namespace itk
25{
32template <typename TFunctionValue = double,
33 unsigned int VImageDimension = 3,
35class FrequencyFunction : public SpatialFunction<TFunctionValue, VImageDimension, TInput>
36{
37public:
38 ITK_DISALLOW_COPY_AND_MOVE(FrequencyFunction);
39
45
47 itkOverrideGetNameOfClassMacro(FrequencyFunction);
48
51
55
61 RadPerSecToHertz(const TFunctionValue & w_rad_per_sec) const
62 {
63 return w_rad_per_sec / (2 * itk::Math::pi);
64 };
65
67 Evaluate(const TInput & frequency_point) const override = 0;
68
69protected:
70 FrequencyFunction() = default;
71 ~FrequencyFunction() override = default;
72 void
73 PrintSelf(std::ostream & os, Indent indent) const override
74 {
75 Superclass::PrintSelf(os, indent);
76 }
77};
78} // end namespace itk
79
80#endif
typename Superclass::OutputType FunctionValueType
void PrintSelf(std::ostream &os, Indent indent) const override
SmartPointer< const Self > ConstPointer
typename Superclass::InputType InputType
FunctionValueType Evaluate(const TInput &frequency_point) const override=0
typename Superclass::OutputType OutputType
SmartPointer< Self > Pointer
FunctionValueType RadPerSecToHertz(const TFunctionValue &w_rad_per_sec) const
~FrequencyFunction() override=default
SpatialFunction< TFunctionValue, VImageDimension, TInput > Superclass
Control indentation during Print() invocation.
Definition itkIndent.h:53
Implements transparent reference counting.
void PrintSelf(std::ostream &os, Indent indent) const override
SpatialFunction()=default
A templated class holding a n-Dimensional vector.
Definition itkVector.h:63
constexpr double pi
Definition itkMath.h:65
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....