18 #ifndef __itkGridScheduleComputer_H__ 19 #define __itkGridScheduleComputer_H__ 21 #include "itkObject.h" 22 #include "itkImageBase.h" 23 #include "itkTransform.h" 39 template<
typename TTransformScalarType,
unsigned int VImageDimension >
64 typedef typename ImageBaseType::PointType
PointType;
68 typedef typename ImageBaseType::SizeType
SizeType;
81 itkGetStaticConstMacro( Dimension ),
87 itkSetMacro( ImageOrigin, OriginType );
90 itkGetConstMacro( ImageOrigin, OriginType );
93 itkSetMacro( ImageSpacing, SpacingType );
96 itkGetConstMacro( ImageSpacing, SpacingType );
99 itkSetMacro( ImageDirection, DirectionType );
102 itkGetConstMacro( ImageDirection, DirectionType );
105 itkSetMacro( ImageRegion, RegionType );
108 itkGetConstMacro( ImageRegion, RegionType );
111 itkSetClampMacro( BSplineOrder,
unsigned int, 0, 5 );
114 itkGetConstMacro( BSplineOrder,
unsigned int );
117 itkSetMacro( FinalGridSpacing, SpacingType );
120 itkGetConstMacro( FinalGridSpacing, SpacingType );
125 double upsamplingFactor );
129 const VectorGridSpacingFactorType & schedule );
132 virtual void GetSchedule( VectorGridSpacingFactorType & schedule )
const;
142 RegionType & gridRegion,
143 SpacingType & gridSpacing,
144 OriginType & gridOrigin,
145 DirectionType & gridDirection );
164 void PrintSelf( std::ostream & os, Indent indent )
const;
167 itkGetConstMacro( NumberOfLevels,
unsigned int );
171 OriginType & imageOrigin,
172 SpacingType & imageSpacing,
173 DirectionType & imageDirection,
174 SpacingType & finalGridSpacing )
const;
200 #ifndef ITK_MANUAL_INSTANTIATION 201 #include "itkGridScheduleComputer.hxx" 204 #endif // end #ifndef __itkGridScheduleComputer_H__ itkStaticConstMacro(Dimension, unsigned int, VImageDimension)
std::vector< DirectionType > VectorDirectionType
SmartPointer< Self > Pointer
void operator=(const Self &)
std::vector< GridSpacingFactorType > VectorGridSpacingFactorType
virtual void GetSchedule(VectorGridSpacingFactorType &schedule) const
ImageBaseType::PointType PointType
TransformType::ConstPointer TransformConstPointer
virtual void ApplyInitialTransform(OriginType &imageOrigin, SpacingType &imageSpacing, DirectionType &imageDirection, SpacingType &finalGridSpacing) const
std::vector< RegionType > VectorRegionType
This class computes all information about the B-spline grid, given the image information and the desi...
TransformConstPointer m_InitialTransform
unsigned int m_BSplineOrder
unsigned int m_NumberOfLevels
ImageBaseType::SpacingType SpacingType
TransformType::Pointer TransformPointer
DirectionType m_ImageDirection
Transform< TransformScalarType, itkGetStaticConstMacro(Dimension), itkGetStaticConstMacro(Dimension) > TransformType
TTransformScalarType TransformScalarType
ImageBaseType::SizeValueType SizeValueType
SpacingType m_ImageSpacing
virtual ~GridScheduleComputer()
ImageBase< itkGetStaticConstMacro(Dimension) > ImageBaseType
GridScheduleComputer Self
VectorSpacingType m_GridSpacings
SmartPointer< const Self > ConstPointer
virtual void ComputeBSplineGrid(void)
void PrintSelf(std::ostream &os, Indent indent) const
VectorRegionType m_GridRegions
ImageBaseType::RegionType RegionType
std::vector< SpacingType > VectorSpacingType
SpacingType m_FinalGridSpacing
VectorOriginType m_GridOrigins
ImageBaseType::PointType OriginType
virtual void SetSchedule(const VectorGridSpacingFactorType &schedule)
VectorDirectionType m_GridDirections
ImageBaseType::DirectionType DirectionType
virtual void SetDefaultSchedule(unsigned int levels, double upsamplingFactor)
ImageBaseType::SizeType SizeType
virtual void GetBSplineGrid(unsigned int level, RegionType &gridRegion, SpacingType &gridSpacing, OriginType &gridOrigin, DirectionType &gridDirection)
VectorGridSpacingFactorType m_GridSpacingFactors
SpacingType GridSpacingFactorType
std::vector< OriginType > VectorOriginType