ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
rtk::OutputIterationCommand< TCaller, TOutputImage > Class Template Reference

#include <rtkIterationCommands.h>

Detailed Description

template<typename TCaller, typename TOutputImage>
class rtk::OutputIterationCommand< TCaller, TOutputImage >

Output intermediate iterations in a file. This class is useful to check convergence of an iterative method and to avoid starting over similar computations when testing hyperparameters of an iterative algorithm.

Author
Aurélien Coussat

Definition at line 139 of file rtkIterationCommands.h.

+ Inheritance diagram for rtk::OutputIterationCommand< TCaller, TOutputImage >:
+ Collaboration diagram for rtk::OutputIterationCommand< TCaller, TOutputImage >:

Public Types

using Pointer = itk::SmartPointer<Self>
 
using Self = OutputIterationCommand
 
using Superclass = IterationCommand<TCaller>
 
- Public Types inherited from rtk::IterationCommand< TCaller >
using Pointer = itk::SmartPointer<Self>
 
using Self = IterationCommand
 
using Superclass = itk::Command
 
- Public Types inherited from itk::Command
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Command
 
using Superclass = Object
 
- Public Types inherited from itk::Object
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = Object
 
using Superclass = LightObject
 
- Public Types inherited from itk::LightObject
using ConstPointer = SmartPointer<const Self>
 
using Pointer = SmartPointer<Self>
 
using Self = LightObject
 

Public Member Functions

virtual::itk::LightObject::Pointer CreateAnother () const
 
virtual void SetFileFormat (std::string _arg)
 
- Public Member Functions inherited from rtk::IterationCommand< TCaller >
void Execute (const itk::Object *caller, const itk::EventObject &event) override
 
void Execute (itk::Object *caller, const itk::EventObject &event) override
 
virtual void SetTriggerEvery (unsigned int _arg)
 
- Public Member Functions inherited from itk::Command
virtual const char * GetNameOfClass () const
 
- Public Member Functions inherited from itk::Object
unsigned long AddObserver (const EventObject &event, Command *cmd) const
 
unsigned long AddObserver (const EventObject &event, std::function< void(const EventObject &)> function) const
 
virtual void DebugOff () const
 
virtual void DebugOn () const
 
Command * GetCommand (unsigned long tag)
 
bool GetDebug () const
 
MetaDataDictionary & GetMetaDataDictionary ()
 
const MetaDataDictionary & GetMetaDataDictionary () const
 
virtual ModifiedTimeType GetMTime () const
 
virtual const TimeStamp & GetTimeStamp () const
 
bool HasObserver (const EventObject &event) const
 
void InvokeEvent (const EventObject &)
 
void InvokeEvent (const EventObject &) const
 
virtual void Modified () const
 
void Register () const override
 
void RemoveAllObservers ()
 
void RemoveObserver (unsigned long tag) const
 
void SetDebug (bool debugFlag) const
 
void SetReferenceCount (int) override
 
void UnRegister () const noexcept override
 
void SetMetaDataDictionary (const MetaDataDictionary &rhs)
 
void SetMetaDataDictionary (MetaDataDictionary &&rrhs)
 
virtual void SetObjectName (std::string _arg)
 
virtual const std::string & GetObjectName () const
 
- Public Member Functions inherited from itk::LightObject
Pointer Clone () const
 
virtual void Delete ()
 
virtual int GetReferenceCount () const
 
void Print (std::ostream &os, Indent indent=0) const
 

Static Public Member Functions

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 val)
 
- Static Public Member Functions inherited from itk::LightObject
static void BreakOnError ()
 
static Pointer New ()
 

Protected Member Functions

void Run (const TCaller *caller) override
 
- Protected Member Functions inherited from rtk::IterationCommand< TCaller >
virtual void End (const TCaller *caller)
 
- Protected Member Functions inherited from itk::Command
 Command ()
 
 ~Command () override
 
- Protected Member Functions inherited from itk::Object
 Object ()
 
bool PrintObservers (std::ostream &os, Indent indent) const
 
void PrintSelf (std::ostream &os, Indent indent) const override
 
virtual void SetTimeStamp (const TimeStamp &timeStamp)
 
 ~Object () override
 
- 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 ()
 

Protected Attributes

std::string m_FileFormat
 
- Protected Attributes inherited from rtk::IterationCommand< TCaller >
unsigned int m_IterationCount = 0
 
unsigned int m_TriggerEvery = 1
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Member Typedef Documentation

◆ Pointer

template<typename TCaller, typename TOutputImage>
using rtk::OutputIterationCommand< TCaller, TOutputImage >::Pointer = itk::SmartPointer<Self>

Definition at line 145 of file rtkIterationCommands.h.

◆ Self

template<typename TCaller, typename TOutputImage>
using rtk::OutputIterationCommand< TCaller, TOutputImage >::Self = OutputIterationCommand

Standard class typedefs.

Definition at line 143 of file rtkIterationCommands.h.

◆ Superclass

template<typename TCaller, typename TOutputImage>
using rtk::OutputIterationCommand< TCaller, TOutputImage >::Superclass = IterationCommand<TCaller>

Definition at line 144 of file rtkIterationCommands.h.

Member Function Documentation

◆ CreateAnother()

template<typename TCaller, typename TOutputImage>
virtual::itk::LightObject::Pointer rtk::OutputIterationCommand< TCaller, TOutputImage >::CreateAnother ( ) 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.

◆ New()

template<typename TCaller, typename TOutputImage>
static Pointer rtk::OutputIterationCommand< TCaller, TOutputImage >::New ( )
static

◆ Run()

template<typename TCaller, typename TOutputImage>
void rtk::OutputIterationCommand< TCaller, TOutputImage >::Run ( const TCaller * caller)
inlineoverrideprotectedvirtual

Callback function to be redefined by derived classes.

Implements rtk::IterationCommand< TCaller >.

Definition at line 155 of file rtkIterationCommands.h.

References m_FileFormat.

◆ SetFileFormat()

template<typename TCaller, typename TOutputImage>
virtual void rtk::OutputIterationCommand< TCaller, TOutputImage >::SetFileFormat ( std::string _arg)
virtual

Member Data Documentation

◆ m_FileFormat

template<typename TCaller, typename TOutputImage>
std::string rtk::OutputIterationCommand< TCaller, TOutputImage >::m_FileFormat
protected

Output file name, where d is the current iteration number

Definition at line 152 of file rtkIterationCommands.h.

Referenced by Run().


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