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 >
40 public Object
41{
42public:
43
46 typedef Object Superclass;
48 typedef SmartPointer< const Self > ConstPointer;
49
51 itkNewMacro( Self );
52
54 itkTypeMacro( UpsampleBSplineParametersFilter, Object );
55
57 typedef TArray ArrayType;
58 typedef typename ArrayType::ValueType ValueType;
59 typedef TImage ImageType;
60 typedef typename ImageType::Pointer ImagePointer;
61 typedef typename ImageType::PixelType PixelType;
62 typedef typename ImageType::SpacingType SpacingType;
63 typedef typename ImageType::PointType OriginType;
64 typedef typename ImageType::DirectionType DirectionType;
65 typedef typename ImageType::RegionType 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 UpsampleParameters( const ArrayType & param_in,
99 ArrayType & param_out );
100
101protected:
102
105
108
110 void PrintSelf( std::ostream & os, Indent indent ) const override;
111
113 virtual bool DoUpsampling( void );
114
115private:
116
117 UpsampleBSplineParametersFilter( const Self & ); // purposely not implemented
118 void operator=( const Self & ); // purposely not implemented
119
129 unsigned int m_BSplineOrder;
130
131};
132
133} // end namespace itk
134
135#ifndef ITK_MANUAL_INSTANTIATION
136#include "itkUpsampleBSplineParametersFilter.hxx"
137#endif
138
139#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


Generated on 1667476801 for elastix by doxygen 1.9.4 elastix logo