ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkSinusoidSpatialFunction.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 itkSinusoidSpatialFunction_h
19#define itkSinusoidSpatialFunction_h
20
21#include "itkSpatialFunction.h"
22#include "itkFixedArray.h"
23#include "itkFloatTypes.h"
24
25
26namespace itk
27{
43
44template <typename TOutput = double,
45 unsigned int VImageDimension = 3,
47class SinusoidSpatialFunction : public SpatialFunction<TOutput, VImageDimension, TInput>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(SinusoidSpatialFunction);
51
57
59 itkNewMacro(Self);
60
62 itkOverrideGetNameOfClassMacro(SinusoidSpatialFunction);
63
66
69
72
75 Evaluate(const TInput & position) const override;
76
78 itkSetMacro(PhaseOffset, double);
79 itkGetConstMacro(PhaseOffset, double);
82 itkGetConstReferenceMacro(Frequency, ArrayType);
83
84protected:
87 void
88 PrintSelf(std::ostream & os, Indent indent) const override;
89
90private:
93
95 double m_PhaseOffset{ 0.0 };
96};
97} // end namespace itk
98
99#ifndef ITK_MANUAL_INSTANTIATION
100# include "itkSinusoidSpatialFunction.hxx"
101#endif
102
103#endif
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:53
A templated class holding a geometric point in n-Dimensional space.
Definition itkPoint.h:54
SpatialFunction< TOutput, VImageDimension, TInput > Superclass
typename Superclass::InputType InputType
SmartPointer< const Self > ConstPointer
OutputType Evaluate(const TInput &position) const override
FixedArray< double, VImageDimension > ArrayType
void PrintSelf(std::ostream &os, Indent indent) const override
typename Superclass::OutputType OutputType
Implements transparent reference counting.
SpatialFunction()=default
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
#define itkSetMacro(name, type)