RTK  1.4.0
Reconstruction Toolkit
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | List of all members
rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage > Class Template Reference

#include <rtkCyclicDeformationImageFilter.h>

+ Inheritance diagram for rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >:
+ Collaboration diagram for rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >:

Public Types

typedef itk::SmartPointer< const SelfConstPointer
 
typedef TInputImage InputImageType
 
typedef OutputImageType::RegionType OutputImageRegionType
 
typedef TOutputImage OutputImageType
 
typedef itk::SmartPointer< SelfPointer
 
typedef CyclicDeformationImageFilter Self
 
typedef itk::ImageToImageFilter< InputImageType, OutputImageTypeSuperclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual std::string GetSignalFilename ()
 
virtual void SetSignalFilename (const std::string _arg)
 
virtual void SetSignalVector (std::vector< double > _arg)
 
virtual unsigned int GetFrame ()
 
virtual void SetFrame (unsigned int _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void BeforeThreadedGenerateData () override
 
 CyclicDeformationImageFilter ()
 
void GenerateInputRequestedRegion () override
 
void GenerateOutputInformation () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, ThreadIdType threadId) override
 
virtual ~CyclicDeformationImageFilter () override
 

Protected Attributes

unsigned int m_FrameInf
 
unsigned int m_FrameSup
 
double m_WeightInf
 
double m_WeightSup
 

Private Member Functions

 CyclicDeformationImageFilter (const Self &)
 
void operator= (const Self &)
 

Private Attributes

unsigned int m_Frame
 
std::vector< double > m_Signal
 
std::string m_SignalFilename
 

Detailed Description

template<class TInputImage, class TOutputImage>
class rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >

Return 3D deformation vector field according to input 4D vector field, phase signal and frame number.

The 4D deformation vector field (DVF) describes the deformation along one cycle. The phase signal is passed via a file name pointing to a text file with one value per line. It must be in the inteval [0,1), 0 meaning frame 0 of the 4D DVF, 0.5 the middle frame (if the number of frames of the 4D DVF is odd), etc. The frame number is the value of the signal for which we wish to obtain the resulting 3D DVF. Linear interpolation is used to compute that DVF. This cyclic deformation model has been described in [Rit et al, TMI, 2009] and [Rit et al, Med Phys, 2009].

Test:
rtkmotioncompensatedfdktest.cxx
Author
Simon Rit

Definition at line 54 of file rtkCyclicDeformationImageFilter.h.

Member Typedef Documentation

template<class TInputImage , class TOutputImage >
typedef itk::SmartPointer<const Self> rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::ConstPointer

Definition at line 64 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TInputImage rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::InputImageType

Definition at line 60 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef OutputImageType::RegionType rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::OutputImageRegionType

Definition at line 65 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef TOutputImage rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::OutputImageType

Definition at line 61 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef itk::SmartPointer<Self> rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::Pointer

Definition at line 63 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef CyclicDeformationImageFilter rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::Self

Standard class typedefs.

Definition at line 59 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
typedef itk::ImageToImageFilter<InputImageType, OutputImageType> rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::Superclass

Definition at line 62 of file rtkCyclicDeformationImageFilter.h.

Constructor & Destructor Documentation

template<class TInputImage , class TOutputImage >
rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::CyclicDeformationImageFilter ( )
inlineprotected

Definition at line 87 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
virtual rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::~CyclicDeformationImageFilter ( )
inlineoverrideprotectedvirtual

Definition at line 88 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::CyclicDeformationImageFilter ( const Self )
private

Member Function Documentation

template<class TInputImage , class TOutputImage >
void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::BeforeThreadedGenerateData ( )
overrideprotected
template<class TInputImage , class TOutputImage >
virtual::itk::LightObject::Pointer rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::CreateAnother ( ) const
template<class TInputImage , class TOutputImage >
void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::GenerateInputRequestedRegion ( )
overrideprotected
template<class TInputImage , class TOutputImage >
void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::GenerateOutputInformation ( )
overrideprotected
template<class TInputImage , class TOutputImage >
virtual unsigned int rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::GetFrame ( )
virtual

Get / Set the frame number. The number is used to lookup in the signal file which phase value should be used to interpolate.

template<class TInputImage , class TOutputImage >
virtual const char* rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<class TInputImage , class TOutputImage >
virtual std::string rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::GetSignalFilename ( )
virtual

Get / Set the signal file name relating each frame to a phase position. The signal file is a text file containing one line per frame.

template<class TInputImage , class TOutputImage >
static Pointer rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::New ( )
static

Method for creation through the object factory.

template<class TInputImage , class TOutputImage >
void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::operator= ( const Self )
private
template<class TInputImage , class TOutputImage >
virtual void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::SetFrame ( unsigned int  _arg)
virtual

Get / Set the frame number. The number is used to lookup in the signal file which phase value should be used to interpolate.

template<class TInputImage , class TOutputImage >
virtual void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::SetSignalFilename ( const std::string  _arg)
virtual

Get / Set the signal file name relating each frame to a phase position. The signal file is a text file containing one line per frame.

template<class TInputImage , class TOutputImage >
virtual void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::SetSignalVector ( std::vector< double >  _arg)
virtual

Get / Set the signal file name relating each frame to a phase position. The signal file is a text file containing one line per frame.

template<class TInputImage , class TOutputImage >
void rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
ThreadIdType  threadId 
)
overrideprotected

Member Data Documentation

template<class TInputImage , class TOutputImage >
unsigned int rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_Frame
private

Definition at line 110 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_FrameInf
protected

Definition at line 101 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
unsigned int rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_FrameSup
protected

Definition at line 102 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
std::vector<double> rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_Signal
private

Definition at line 113 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
std::string rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_SignalFilename
private

Definition at line 112 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
double rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_WeightInf
protected

Definition at line 103 of file rtkCyclicDeformationImageFilter.h.

template<class TInputImage , class TOutputImage >
double rtk::CyclicDeformationImageFilter< TInputImage, TOutputImage >::m_WeightSup
protected

Definition at line 104 of file rtkCyclicDeformationImageFilter.h.


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