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  This file is part of the elastix software.
4 
5  Copyright (c) University Medical Center Utrecht. All rights reserved.
6  See src/CopyrightElastix.txt or http://elastix.isi.uu.nl/legal.php for
7  details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notices for more information.
12 
13 ======================================================================*/
14 
15 #ifndef __itkUpsampleBSplineParametersFilter_h
16 #define __itkUpsampleBSplineParametersFilter_h
17 
18 #include "itkObject.h"
19 #include "itkArray.h"
20 
21 
22 namespace itk
23 {
24 
36 template < class TArray, class TImage >
38  : public Object
39 {
40 public:
41 
44  typedef Object Superclass;
45  typedef SmartPointer<Self> Pointer;
46  typedef SmartPointer<const Self> ConstPointer;
47 
49  itkNewMacro( Self );
50 
52  itkTypeMacro( UpsampleBSplineParametersFilter, Object );
53 
55  typedef TArray ArrayType;
56  typedef typename ArrayType::ValueType ValueType;
57  typedef TImage ImageType;
58  typedef typename ImageType::Pointer ImagePointer;
59  typedef typename ImageType::PixelType PixelType;
60  typedef typename ImageType::SpacingType SpacingType;
61  typedef typename ImageType::PointType OriginType;
62  typedef typename ImageType::DirectionType DirectionType;
63  typedef typename ImageType::RegionType RegionType;
64 
66  itkStaticConstMacro( Dimension, unsigned int, ImageType::ImageDimension );
67 
69  itkSetMacro( CurrentGridOrigin, OriginType );
70 
72  itkSetMacro( CurrentGridSpacing, SpacingType );
73 
75  itkSetMacro( CurrentGridDirection, DirectionType );
76 
78  itkSetMacro( CurrentGridRegion, RegionType );
79 
81  itkSetMacro( RequiredGridOrigin, OriginType );
82 
84  itkSetMacro( RequiredGridSpacing, SpacingType );
85 
87  itkSetMacro( RequiredGridDirection, DirectionType );
88 
90  itkSetMacro( RequiredGridRegion, RegionType );
91 
93  itkSetMacro( BSplineOrder, unsigned int );
94 
96  virtual void UpsampleParameters( const ArrayType & param_in,
97  ArrayType & param_out );
98 
99 protected:
100 
103 
106 
108  virtual void PrintSelf( std::ostream& os, Indent indent ) const;
109 
111  virtual bool DoUpsampling( void );
112 
113 private:
114 
115  UpsampleBSplineParametersFilter( const Self& ); //purposely not implemented
116  void operator=( const Self & ); //purposely not implemented
117 
127  unsigned int m_BSplineOrder;
128 
129 }; // end class UpsampleBSplineParametersFilter
130 
131 } // end namespace itk
132 
133 #if ITK_TEMPLATE_TXX
134 # include "itkUpsampleBSplineParametersFilter.txx"
135 #endif
136 
137 #endif // end #ifndef __itkUpsampleBSplineParametersFilter_h
Convenience class for upsampling a B-spline coefficient image.


Generated on 06-12-2013 for elastix by doxygen 1.8.5 elastix logo