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 #ifndef __itkUpsampleBSplineParametersFilter_h
15 #define __itkUpsampleBSplineParametersFilter_h
16 
17 #include "itkObject.h"
18 #include "itkArray.h"
19 
20 namespace itk
21 {
22 
34 template< class TArray, class TImage >
36  public Object
37 {
38 public:
39 
42  typedef Object Superclass;
43  typedef SmartPointer< Self > Pointer;
44  typedef SmartPointer< const Self > ConstPointer;
45 
47  itkNewMacro( Self );
48 
50  itkTypeMacro( UpsampleBSplineParametersFilter, Object );
51 
53  typedef TArray ArrayType;
54  typedef typename ArrayType::ValueType ValueType;
55  typedef TImage ImageType;
56  typedef typename ImageType::Pointer ImagePointer;
57  typedef typename ImageType::PixelType PixelType;
58  typedef typename ImageType::SpacingType SpacingType;
59  typedef typename ImageType::PointType OriginType;
60  typedef typename ImageType::DirectionType DirectionType;
61  typedef typename ImageType::RegionType RegionType;
62 
64  itkStaticConstMacro( Dimension, unsigned int, ImageType::ImageDimension );
65 
67  itkSetMacro( CurrentGridOrigin, OriginType );
68 
70  itkSetMacro( CurrentGridSpacing, SpacingType );
71 
73  itkSetMacro( CurrentGridDirection, DirectionType );
74 
76  itkSetMacro( CurrentGridRegion, RegionType );
77 
79  itkSetMacro( RequiredGridOrigin, OriginType );
80 
82  itkSetMacro( RequiredGridSpacing, SpacingType );
83 
85  itkSetMacro( RequiredGridDirection, DirectionType );
86 
88  itkSetMacro( RequiredGridRegion, RegionType );
89 
91  itkSetMacro( BSplineOrder, unsigned int );
92 
94  virtual void UpsampleParameters( const ArrayType & param_in,
95  ArrayType & param_out );
96 
97 protected:
98 
101 
104 
106  virtual void PrintSelf( std::ostream & os, Indent indent ) const;
107 
109  virtual bool DoUpsampling( void );
110 
111 private:
112 
113  UpsampleBSplineParametersFilter( const Self & ); // purposely not implemented
114  void operator=( const Self & ); // purposely not implemented
115 
125  unsigned int m_BSplineOrder;
126 
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
virtual void PrintSelf(std::ostream &os, Indent indent) const
itkStaticConstMacro(Dimension, unsigned int, ImageType::ImageDimension)
virtual void UpsampleParameters(const ArrayType &param_in, ArrayType &param_out)
Convenience class for upsampling a B-spline coefficient image.


Generated on 11-03-2014 for elastix by doxygen 1.8.6 elastix logo