go home Home | Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
itkUpsampleBSplineParametersFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 * http://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 itkUpsampleBSplineParametersFilter_h
19#define itkUpsampleBSplineParametersFilter_h
20
21#include "itkObject.h"
22#include "itkArray.h"
23
24namespace itk
25{
26
38template <class TArray, class TImage>
39class ITK_TEMPLATE_EXPORT UpsampleBSplineParametersFilter : public Object
40{
41public:
43
46 using Superclass = Object;
47 using Pointer = SmartPointer<Self>;
48 using ConstPointer = SmartPointer<const Self>;
49
51 itkNewMacro(Self);
52
54 itkTypeMacro(UpsampleBSplineParametersFilter, Object);
55
57 using ArrayType = TArray;
58 using ValueType = typename ArrayType::ValueType;
59 using ImageType = TImage;
60 using ImagePointer = typename ImageType::Pointer;
61 using PixelType = typename ImageType::PixelType;
62 using SpacingType = typename ImageType::SpacingType;
63 using OriginType = typename ImageType::PointType;
64 using DirectionType = typename ImageType::DirectionType;
65 using RegionType = typename ImageType::RegionType;
66
68 itkStaticConstMacro(Dimension, unsigned int, ImageType::ImageDimension);
69
71 itkSetMacro(CurrentGridOrigin, OriginType);
72
74 itkSetMacro(CurrentGridSpacing, SpacingType);
75
77 itkSetMacro(CurrentGridDirection, DirectionType);
78
80 itkSetMacro(CurrentGridRegion, RegionType);
81
83 itkSetMacro(RequiredGridOrigin, OriginType);
84
86 itkSetMacro(RequiredGridSpacing, SpacingType);
87
89 itkSetMacro(RequiredGridDirection, DirectionType);
90
92 itkSetMacro(RequiredGridRegion, RegionType);
93
95 itkSetMacro(BSplineOrder, unsigned int);
96
98 virtual void
99 UpsampleParameters(const ArrayType & param_in, ArrayType & param_out);
100
101protected:
104
107
109 void
110 PrintSelf(std::ostream & os, Indent indent) const override;
111
113 virtual bool
115
116private:
118 OriginType m_CurrentGridOrigin{};
119 SpacingType m_CurrentGridSpacing{};
120 DirectionType m_CurrentGridDirection{};
121 RegionType m_CurrentGridRegion{};
122 OriginType m_RequiredGridOrigin{};
123 SpacingType m_RequiredGridSpacing{};
124 DirectionType m_RequiredGridDirection{};
125 RegionType m_RequiredGridRegion{};
126 unsigned int m_BSplineOrder{};
127};
128
129} // end namespace itk
130
131#ifndef ITK_MANUAL_INSTANTIATION
132# include "itkUpsampleBSplineParametersFilter.hxx"
133#endif
134
135#endif // end #ifndef itkUpsampleBSplineParametersFilter_h
Convenience class for upsampling a B-spline coefficient image.
itkStaticConstMacro(Dimension, unsigned int, ImageType::ImageDimension)
virtual void UpsampleParameters(const ArrayType &param_in, ArrayType &param_out)
void PrintSelf(std::ostream &os, Indent indent) const override
~UpsampleBSplineParametersFilter() override=default
ITK_DISALLOW_COPY_AND_MOVE(UpsampleBSplineParametersFilter)


Generated on 2024-07-17 for elastix by doxygen 1.11.0 (9b424b03c9833626cd435af22a444888fbbb192d) elastix logo