ITK  4.6.0
Insight Segmentation and Registration Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
itk::BSplineResampleImageFunction< TImageType, TCoordRep > Class Template Reference

#include <itkBSplineResampleImageFunction.h>

+ Inheritance diagram for itk::BSplineResampleImageFunction< TImageType, TCoordRep >:
+ Collaboration diagram for itk::BSplineResampleImageFunction< TImageType, TCoordRep >:

Detailed Description

template<typename TImageType, typename TCoordRep = float>
class itk::BSplineResampleImageFunction< TImageType, TCoordRep >

Resample image intensity from a BSpline coefficient image.

This class resample the image intensity at a non-integer position from the input BSpline coefficient image.

Spline order may be from 0 to 5.

In ITK, BSpline coefficient can be generated using a BSplineDecompositionImageFilter. Using this image function in conjunction with ResampleImageFunction allows the reconstruction of the original image at different resolution and size.

See Also
BSplineInterpolateImageFunction
BSplineDecompositionImageFilter
ResampleImageFilter
Examples:
RegistrationITKv3/DeformableRegistration15.cxx, RegistrationITKv3/DeformableRegistration6.cxx, RegistrationITKv4/DeformableRegistration15.cxx, and RegistrationITKv4/DeformableRegistration6.cxx.

Definition at line 56 of file itkBSplineResampleImageFunction.h.

Public Types

typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef
BSplineResampleImageFunction 
Self
 
typedef
BSplineInterpolateImageFunction
< TImageType, TCoordRep,
typename TImageType::PixelType > 
Superclass
 
- Public Types inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
typedef TImageType::PixelType CoefficientDataType
 
typedef
BSplineDecompositionImageFilter
< TImageType,
CoefficientImageType
CoefficientFilter
 
typedef CoefficientFilter::Pointer CoefficientFilterPointer
 
typedef Image
< CoefficientDataType,
itkGetStaticConstMacro(ImageDimension) > 
CoefficientImageType
 
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::ContinuousIndexType 
ContinuousIndexType
 
typedef CovariantVector
< OutputType,
itkGetStaticConstMacro(ImageDimension) > 
CovariantVectorType
 
typedef Superclass::IndexType IndexType
 
typedef Superclass::InputImageType InputImageType
 
typedef
ImageLinearIteratorWithIndex
< TImageType > 
Iterator
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef
BSplineInterpolateImageFunction 
Self
 
typedef
InterpolateImageFunction
< TImageType, TCoordRep > 
Superclass
 
- Public Types inherited from itk::InterpolateImageFunction< TImageType, TCoordRep >
typedef SmartPointer< const SelfConstPointer
 
typedef
Superclass::ContinuousIndexType 
ContinuousIndexType
 
typedef Superclass::IndexType IndexType
 
typedef Superclass::IndexValueType IndexValueType
 
typedef Superclass::InputImageType InputImageType
 
typedef Superclass::OutputType OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Superclass::PointType PointType
 
typedef NumericTraits
< typename
TImageType::PixelType >
::RealType 
RealType
 
typedef InterpolateImageFunction Self
 
typedef ImageFunction
< TImageType, typename
NumericTraits< typename
TImageType::PixelType >
::RealType, TCoordRep > 
Superclass
 
- Public Types inherited from itk::ImageFunction< TImageType, NumericTraits< TImageType::PixelType >::RealType, TCoordRep >
typedef SmartPointer< const SelfConstPointer
 
typedef ContinuousIndex
< TCoordRep,
itkGetStaticConstMacro(ImageDimension) > 
ContinuousIndexType
 
typedef TCoordRep CoordRepType
 
typedef InputImageType::IndexType IndexType
 
typedef
InputImageType::IndexValueType 
IndexValueType
 
typedef
InputImageType::ConstPointer 
InputImageConstPointer
 
typedef TImageType InputImageType
 
typedef InputImageType::PixelType InputPixelType
 
typedef NumericTraits
< TImageType::PixelType >
::RealType 
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef Point< TCoordRep,
itkGetStaticConstMacro(ImageDimension) > 
PointType
 
typedef ImageFunction Self
 
typedef FunctionBase< Point
< TCoordRep,
itkGetStaticConstMacro(ImageDimension) >
, NumericTraits
< TImageType::PixelType >
::RealType > 
Superclass
 
- Public Types inherited from itk::FunctionBase< Point< TCoordRep, TImageType::ImageDimension >, NumericTraits< TImageType::PixelType >::RealType >
typedef SmartPointer< const SelfConstPointer
 
typedef Point< TCoordRep,
TImageType::ImageDimension > 
InputType
 
typedef NumericTraits
< TImageType::PixelType >
::RealType 
OutputType
 
typedef SmartPointer< SelfPointer
 
typedef FunctionBase Self
 
typedef Object Superclass
 
- Public Types inherited from itk::Object
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef Object Self
 
typedef LightObject Superclass
 
- Public Types inherited from itk::LightObject
typedef SmartPointer< const SelfConstPointer
 
typedef SmartPointer< SelfPointer
 
typedef LightObject Self
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual const char * GetNameOfClass () const
 
virtual void SetInputImage (const TImageType *inputData)
 
- Public Member Functions inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
virtual ::itk::LightObject::Pointer CreateAnother (void) const
 
virtual OutputType Evaluate (const PointType &point) const
 
virtual OutputType Evaluate (const PointType &point, ThreadIdType threadId) const
 
virtual OutputType EvaluateAtContinuousIndex (const ContinuousIndexType &index) const
 
virtual OutputType EvaluateAtContinuousIndex (const ContinuousIndexType &index, ThreadIdType threadId) const
 
CovariantVectorType EvaluateDerivative (const PointType &point) const
 
CovariantVectorType EvaluateDerivative (const PointType &point, ThreadIdType threadId) const
 
CovariantVectorType EvaluateDerivativeAtContinuousIndex (const ContinuousIndexType &x) const
 
CovariantVectorType EvaluateDerivativeAtContinuousIndex (const ContinuousIndexType &x, ThreadIdType threadId) const
 
void EvaluateValueAndDerivative (const PointType &point, OutputType &value, CovariantVectorType &deriv) const
 
void EvaluateValueAndDerivative (const PointType &point, OutputType &value, CovariantVectorType &deriv, ThreadIdType threadId) const
 
void EvaluateValueAndDerivativeAtContinuousIndex (const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv) const
 
void EvaluateValueAndDerivativeAtContinuousIndex (const ContinuousIndexType &x, OutputType &value, CovariantVectorType &deriv, ThreadIdType threadId) const
 
virtual ThreadIdType GetNumberOfThreads () const
 
virtual int GetSplineOrder () const
 
void SetNumberOfThreads (ThreadIdType numThreads)
 
void SetSplineOrder (unsigned int SplineOrder)
 
virtual void SetUseImageDirection (bool _arg)
 
virtual bool GetUseImageDirection () const
 
virtual void UseImageDirectionOn ()
 
virtual void UseImageDirectionOff ()
 
- Public Member Functions inherited from itk::InterpolateImageFunction< TImageType, TCoordRep >
virtual OutputType Evaluate (const PointType &point) const
 
virtual OutputType EvaluateAtContinuousIndex (const ContinuousIndexType &index) const =0
 
virtual OutputType EvaluateAtIndex (const IndexType &index) const
 
- Public Member Functions inherited from itk::ImageFunction< TImageType, NumericTraits< TImageType::PixelType >::RealType, TCoordRep >
void ConvertContinuousIndexToNearestIndex (const ContinuousIndexType &cindex, IndexType &index) const
 
void ConvertPointToContinuousIndex (const PointType &point, ContinuousIndexType &cindex) const
 
void ConvertPointToNearestIndex (const PointType &point, IndexType &index) const
 
virtual const ContinuousIndexTypeGetEndContinuousIndex () const
 
virtual const IndexTypeGetEndIndex () const
 
const InputImageTypeGetInputImage () const
 
virtual const ContinuousIndexTypeGetStartContinuousIndex () const
 
virtual const IndexTypeGetStartIndex () const
 
virtual bool IsInsideBuffer (const IndexType &index) const
 
virtual bool IsInsideBuffer (const ContinuousIndexType &index) const
 
virtual bool IsInsideBuffer (const PointType &point) const
 
- Public Member Functions inherited from itk::FunctionBase< Point< TCoordRep, TImageType::ImageDimension >, NumericTraits< TImageType::PixelType >::RealType >
virtual OutputType Evaluate (const InputType &input) const =0
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *)
 
unsigned long AddObserver (const EventObject &event, Command *) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
CommandGetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionaryGetMetaDataDictionary (void)
 
const MetaDataDictionaryGetMetaDataDictionary (void) const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStampGetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
virtual void Register () const ITK_OVERRIDE
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag)
 
void SetDebug (bool debugFlag) const
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
virtual void SetReferenceCount (int) ITK_OVERRIDE
 
virtual void UnRegister () const ITK_OVERRIDE
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
 itkCloneMacro (Self)
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

static Pointer New ()
 
- Static Public Member Functions inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
static Pointer New ()
 
- Static Public Member Functions inherited from itk::Object
static bool GetGlobalWarningDisplay ()
 
static void GlobalWarningDisplayOff ()
 
static void GlobalWarningDisplayOn ()
 
static Pointer New ()
 
static void SetGlobalWarningDisplay (bool flag)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

 BSplineResampleImageFunction ()
 
virtual ~BSplineResampleImageFunction ()
 
- Protected Member Functions inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
 BSplineInterpolateImageFunction ()
 
virtual OutputType EvaluateAtContinuousIndexInternal (const ContinuousIndexType &index, vnl_matrix< long > &evaluateIndex, vnl_matrix< double > &weights) const
 
virtual CovariantVectorType EvaluateDerivativeAtContinuousIndexInternal (const ContinuousIndexType &x, vnl_matrix< long > &evaluateIndex, vnl_matrix< double > &weights, vnl_matrix< double > &weightsDerivative) const
 
virtual void EvaluateValueAndDerivativeAtContinuousIndexInternal (const ContinuousIndexType &x, OutputType &value, CovariantVectorType &derivativeValue, vnl_matrix< long > &evaluateIndex, vnl_matrix< double > &weights, vnl_matrix< double > &weightsDerivative) const
 
void PrintSelf (std::ostream &os, Indent indent) const
 
 ~BSplineInterpolateImageFunction ()
 
- Protected Member Functions inherited from itk::InterpolateImageFunction< TImageType, TCoordRep >
 InterpolateImageFunction ()
 
void PrintSelf (std::ostream &os, Indent indent) const
 
 ~InterpolateImageFunction ()
 
- Protected Member Functions inherited from itk::ImageFunction< TImageType, NumericTraits< TImageType::PixelType >::RealType, TCoordRep >
 ImageFunction ()
 
 ~ImageFunction ()
 
- Protected Member Functions inherited from itk::FunctionBase< Point< TCoordRep, TImageType::ImageDimension >, NumericTraits< TImageType::PixelType >::RealType >
 FunctionBase ()
 
 ~FunctionBase ()
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
virtual void SetTimeStamp (const TimeStamp &time)
 
virtual ~Object ()
 
- Protected Member Functions inherited from itk::LightObject
virtual LightObject::Pointer InternalClone () const
 
 LightObject ()
 
virtual void PrintHeader (std::ostream &os, Indent indent) const
 
virtual void PrintTrailer (std::ostream &os, Indent indent) const
 
virtual ~LightObject ()
 

Private Member Functions

 BSplineResampleImageFunction (const Self &)
 

Additional Inherited Members

- Static Public Attributes inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
static const unsigned int ImageDimension
 
- Static Public Attributes inherited from itk::InterpolateImageFunction< TImageType, TCoordRep >
static const unsigned int ImageDimension
 
- Static Public Attributes inherited from itk::ImageFunction< TImageType, NumericTraits< TImageType::PixelType >::RealType, TCoordRep >
static const unsigned int ImageDimension
 
- Protected Types inherited from itk::LightObject
typedef int InternalReferenceCountType
 
- Protected Attributes inherited from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >
CoefficientImageType::ConstPointer m_Coefficients
 
TImageType::SizeType m_DataLength
 
std::vector< CoefficientDataTypem_Scratch
 
unsigned int m_SplineOrder
 
- Protected Attributes inherited from itk::ImageFunction< TImageType, NumericTraits< TImageType::PixelType >::RealType, TCoordRep >
ContinuousIndexType m_EndContinuousIndex
 
IndexType m_EndIndex
 
InputImageConstPointer m_Image
 
ContinuousIndexType m_StartContinuousIndex
 
IndexType m_StartIndex
 
- Protected Attributes inherited from itk::LightObject
InternalReferenceCountType m_ReferenceCount
 
SimpleFastMutexLock m_ReferenceCountLock
 

Member Typedef Documentation

template<typename TImageType , typename TCoordRep = float>
typedef SmartPointer< const Self > itk::BSplineResampleImageFunction< TImageType, TCoordRep >::ConstPointer

Definition at line 67 of file itkBSplineResampleImageFunction.h.

template<typename TImageType , typename TCoordRep = float>
typedef SmartPointer< Self > itk::BSplineResampleImageFunction< TImageType, TCoordRep >::Pointer

Definition at line 66 of file itkBSplineResampleImageFunction.h.

template<typename TImageType , typename TCoordRep = float>
typedef BSplineResampleImageFunction itk::BSplineResampleImageFunction< TImageType, TCoordRep >::Self

Standard class typedefs.

Definition at line 62 of file itkBSplineResampleImageFunction.h.

template<typename TImageType , typename TCoordRep = float>
typedef BSplineInterpolateImageFunction< TImageType, TCoordRep, typename TImageType::PixelType > itk::BSplineResampleImageFunction< TImageType, TCoordRep >::Superclass

Definition at line 64 of file itkBSplineResampleImageFunction.h.

Constructor & Destructor Documentation

template<typename TImageType , typename TCoordRep = float>
itk::BSplineResampleImageFunction< TImageType, TCoordRep >::BSplineResampleImageFunction ( )
inlineprotected

Definition at line 90 of file itkBSplineResampleImageFunction.h.

template<typename TImageType , typename TCoordRep = float>
virtual itk::BSplineResampleImageFunction< TImageType, TCoordRep >::~BSplineResampleImageFunction ( )
inlineprotectedvirtual

Definition at line 91 of file itkBSplineResampleImageFunction.h.

template<typename TImageType , typename TCoordRep = float>
itk::BSplineResampleImageFunction< TImageType, TCoordRep >::BSplineResampleImageFunction ( const Self )
private

Member Function Documentation

template<typename TImageType , typename TCoordRep = float>
virtual::itk::LightObject::Pointer itk::BSplineResampleImageFunction< TImageType, TCoordRep >::CreateAnother ( void  ) const
virtual

Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.

Reimplemented from itk::Object.

template<typename TImageType , typename TCoordRep = float>
virtual const char* itk::BSplineResampleImageFunction< TImageType, TCoordRep >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::BSplineInterpolateImageFunction< TImageType, TCoordRep, TImageType::PixelType >.

template<typename TImageType , typename TCoordRep = float>
static Pointer itk::BSplineResampleImageFunction< TImageType, TCoordRep >::New ( )
static

New macro for creation of through a Smart Pointer

template<typename TImageType , typename TCoordRep = float>
virtual void itk::BSplineResampleImageFunction< TImageType, TCoordRep >::SetInputImage ( const TImageType *  inputData)
inlinevirtual

The documentation for this class was generated from the following file: