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

#include <rtkNesterovUpdateImageFilter.h>

+ Inheritance diagram for rtk::NesterovUpdateImageFilter< TImage >:
+ Collaboration diagram for rtk::NesterovUpdateImageFilter< TImage >:

Public Types

typedef Superclass::OutputImageType::RegionType OutputImageRegionType
 
typedef itk::SmartPointer< SelfPointer
 
typedef NesterovUpdateImageFilter Self
 
typedef itk::InPlaceImageFilter< TImage, TImage > Superclass
 

Public Member Functions

virtual ::itk::LightObject::Pointer CreateAnother () const
 
virtual const char * GetNameOfClass () const
 
virtual int GetNumberOfIterations ()
 
void ResetIterations ()
 
virtual void SetNumberOfIterations (int _arg)
 

Static Public Member Functions

static Pointer New ()
 

Protected Member Functions

void GenerateInputRequestedRegion () override
 
 NesterovUpdateImageFilter ()
 
virtual ~NesterovUpdateImageFilter () override
 
void BeforeThreadedGenerateData () override
 
void ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType) override
 
void AfterThreadedGenerateData () override
 

Protected Attributes

int m_CurrentIteration
 
bool m_MustInitializeIntermediateImages
 
int m_NumberOfIterations
 
std::vector< typename TImage::PixelType::ValueType > m_Ratios
 
std::vector< typename TImage::PixelType::ValueType > m_Sums
 
std::vector< typename TImage::PixelType::ValueType > m_tCoeffs
 
TImage::Pointer m_Vk
 
TImage::Pointer m_Zk
 

Private Member Functions

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

Detailed Description

template<typename TImage>
class rtk::NesterovUpdateImageFilter< TImage >

Applies Nesterov's momentum technique.

NesterovUpdateImageFilter implements Nesterov's momentum technique in order to accelerate the convergence rate of Newton's method, or other optimization algorithms. The first input is the current iterate, the second input is the product of the inverse hessian matrix by the gradient vector (the Newton's update, before applying a minus sign)

Author
Cyril Mory

Definition at line 42 of file rtkNesterovUpdateImageFilter.h.

Member Typedef Documentation

template<typename TImage >
typedef Superclass::OutputImageType::RegionType rtk::NesterovUpdateImageFilter< TImage >::OutputImageRegionType

Convenient typedef

Definition at line 52 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
typedef itk::SmartPointer< Self > rtk::NesterovUpdateImageFilter< TImage >::Pointer

Definition at line 49 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
typedef NesterovUpdateImageFilter rtk::NesterovUpdateImageFilter< TImage >::Self

Standard class typedefs.

Definition at line 47 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
typedef itk::InPlaceImageFilter< TImage, TImage> rtk::NesterovUpdateImageFilter< TImage >::Superclass

Definition at line 48 of file rtkNesterovUpdateImageFilter.h.

Constructor & Destructor Documentation

template<typename TImage >
rtk::NesterovUpdateImageFilter< TImage >::NesterovUpdateImageFilter ( )
protected
template<typename TImage >
virtual rtk::NesterovUpdateImageFilter< TImage >::~NesterovUpdateImageFilter ( )
overrideprotectedvirtual
template<typename TImage >
rtk::NesterovUpdateImageFilter< TImage >::NesterovUpdateImageFilter ( const Self )
private

Member Function Documentation

template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::AfterThreadedGenerateData ( )
overrideprotected

Does the real work.

template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::BeforeThreadedGenerateData ( )
overrideprotected

Does the real work.

template<typename TImage >
virtual::itk::LightObject::Pointer rtk::NesterovUpdateImageFilter< TImage >::CreateAnother ( ) const
template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::GenerateInputRequestedRegion ( )
overrideprotected
template<typename TImage >
virtual const char* rtk::NesterovUpdateImageFilter< TImage >::GetNameOfClass ( ) const
virtual

Run-time type information (and related methods).

Reimplemented from itk::ImageSource< TOutputImage >.

template<typename TImage >
virtual int rtk::NesterovUpdateImageFilter< TImage >::GetNumberOfIterations ( )
virtual

Get and Set macro

template<typename TImage >
static Pointer rtk::NesterovUpdateImageFilter< TImage >::New ( )
static

Method for creation through the object factory.

template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::operator= ( const Self )
private
template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::ResetIterations ( )

Method to reset the internal counter of iterations (Nesterov's method uses coefficients that change at each iteration)

template<typename TImage >
virtual void rtk::NesterovUpdateImageFilter< TImage >::SetNumberOfIterations ( int  _arg)
virtual
template<typename TImage >
void rtk::NesterovUpdateImageFilter< TImage >::ThreadedGenerateData ( const OutputImageRegionType outputRegionForThread,
itk::ThreadIdType   
)
overrideprotected

Does the real work.

Member Data Documentation

template<typename TImage >
int rtk::NesterovUpdateImageFilter< TImage >::m_CurrentIteration
protected

Definition at line 85 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
bool rtk::NesterovUpdateImageFilter< TImage >::m_MustInitializeIntermediateImages
protected

Definition at line 86 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
int rtk::NesterovUpdateImageFilter< TImage >::m_NumberOfIterations
protected

Definition at line 84 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
std::vector<typename TImage::PixelType::ValueType> rtk::NesterovUpdateImageFilter< TImage >::m_Ratios
protected

Definition at line 89 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
std::vector<typename TImage::PixelType::ValueType> rtk::NesterovUpdateImageFilter< TImage >::m_Sums
protected

Definition at line 88 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
std::vector<typename TImage::PixelType::ValueType> rtk::NesterovUpdateImageFilter< TImage >::m_tCoeffs
protected

Definition at line 87 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
TImage::Pointer rtk::NesterovUpdateImageFilter< TImage >::m_Vk
protected

Definition at line 92 of file rtkNesterovUpdateImageFilter.h.

template<typename TImage >
TImage::Pointer rtk::NesterovUpdateImageFilter< TImage >::m_Zk
protected

Definition at line 93 of file rtkNesterovUpdateImageFilter.h.


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