ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter > Class Template Reference

#include <itkBlockMatchingStrainWindowBlockAffineTransformCommand.h>

Detailed Description

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
class itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >

Use the strain image calculated in the StrainWindowDisplacementCalculator as the deforming strain image for the BlockAffineTransformMetricImageFilter or calculate new strain with a linear least squares gradient filter.

To use, set the objects, then add as an observer to the StrainWindowDisplacementCalculator.

Definition at line 46 of file itkBlockMatchingStrainWindowBlockAffineTransformCommand.h.

+ Inheritance diagram for itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >:
+ Collaboration diagram for itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >:

Public Types

using BlockAffineTransformMetricImageFilterType = TBlockAffineTransformMetricImageFilter
 
using Pointer = SmartPointer<Self>
 
using Self = StrainWindowBlockAffineTransformCommand
 
using StrainImageFilterType = TStrainImageFilter
 
using StrainWindowDisplacementCalculatorType = TStrainWindowDisplacemenCalculator
 
using Superclass = 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
 
void Execute (const itk::Object *object, const itk::EventObject &event) override
 
void Execute (itk::Object *caller, const itk::EventObject &event) override
 
virtual bool GetUseStrainWindowStrain () const
 
virtual void SetBlockAffineTransformMetricImageFilter (BlockAffineTransformMetricImageFilterType *_arg)
 
virtual void SetUseStrainWindowStrain (bool _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 Types

using BlockAffineTransformMetricImageFilterPointer = typename BlockAffineTransformMetricImageFilterType::Pointer
 
using LeastSquaresFilterType
 

Protected Member Functions

 StrainWindowBlockAffineTransformCommand ()
 
- 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

BlockAffineTransformMetricImageFilterPointer m_BlockAffineTransformMetricImageFilter
 
LeastSquaresFilterType::Pointer m_LeastSquaresFilter
 
StrainImageFilterType::Pointer m_StrainImageFilter
 
bool m_UseStrainWindowStrain
 
- Protected Attributes inherited from itk::LightObject
std::atomic< int > m_ReferenceCount {}
 

Private Member Functions

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

Member Typedef Documentation

◆ BlockAffineTransformMetricImageFilterPointer

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::BlockAffineTransformMetricImageFilterPointer = typename BlockAffineTransformMetricImageFilterType::Pointer
protected

◆ BlockAffineTransformMetricImageFilterType

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::BlockAffineTransformMetricImageFilterType = TBlockAffineTransformMetricImageFilter

◆ LeastSquaresFilterType

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::LeastSquaresFilterType
protected
Initial value:
LinearLeastSquaresGradientImageFilter<typename StrainWindowDisplacementCalculatorType::MetricImageType,
typename StrainWindowDisplacementCalculatorType::MetricPixelType,
typename StrainWindowDisplacementCalculatorType::MetricPixelType>
Calculate the gradient using a linear least squares fit to values in the neighborhood slice.

Definition at line 80 of file itkBlockMatchingStrainWindowBlockAffineTransformCommand.h.

◆ Pointer

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::Pointer = SmartPointer<Self>

◆ Self

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::Self = StrainWindowBlockAffineTransformCommand

◆ StrainImageFilterType

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::StrainImageFilterType = TStrainImageFilter

◆ StrainWindowDisplacementCalculatorType

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::StrainWindowDisplacementCalculatorType = TStrainWindowDisplacemenCalculator

◆ Superclass

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
using itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::Superclass = Command

Constructor & Destructor Documentation

◆ StrainWindowBlockAffineTransformCommand() [1/2]

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::StrainWindowBlockAffineTransformCommand ( )
protected

◆ StrainWindowBlockAffineTransformCommand() [2/2]

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::StrainWindowBlockAffineTransformCommand ( const Self & )
private

Member Function Documentation

◆ CreateAnother()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
virtual::itk::LightObject::Pointer itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::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.

◆ Execute() [1/2]

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
void itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::Execute ( const itk::Object * caller,
const itk::EventObject & event )
overridevirtual

Abstract method that defines the action to be taken by the command. This variant is expected to be used when requests comes from a const Object

Implements itk::Command.

◆ Execute() [2/2]

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
void itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::Execute ( itk::Object * caller,
const itk::EventObject & event )
inlineoverridevirtual

Abstract method that defines the action to be taken by the command.

Implements itk::Command.

Definition at line 61 of file itkBlockMatchingStrainWindowBlockAffineTransformCommand.h.

◆ GetUseStrainWindowStrain()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
virtual bool itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::GetUseStrainWindowStrain ( ) const
virtual

◆ New()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
static Pointer itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::New ( )
static

◆ operator=()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
void itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::operator= ( const Self & )
private

◆ SetBlockAffineTransformMetricImageFilter()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
virtual void itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::SetBlockAffineTransformMetricImageFilter ( BlockAffineTransformMetricImageFilterType * _arg)
virtual

◆ SetUseStrainWindowStrain()

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
virtual void itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::SetUseStrainWindowStrain ( bool _arg)
virtual

Use the strain windower strain? Otherwise the least squares base strain filter is use. Defaults to true. @todo figure out why if set to true it performs worse or segfaults.

Member Data Documentation

◆ m_BlockAffineTransformMetricImageFilter

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
BlockAffineTransformMetricImageFilterPointer itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::m_BlockAffineTransformMetricImageFilter
protected

◆ m_LeastSquaresFilter

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
LeastSquaresFilterType::Pointer itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::m_LeastSquaresFilter
protected

◆ m_StrainImageFilter

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
StrainImageFilterType::Pointer itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::m_StrainImageFilter
protected

◆ m_UseStrainWindowStrain

template<typename TStrainWindowDisplacemenCalculator, typename TBlockAffineTransformMetricImageFilter, typename TStrainImageFilter>
bool itk::BlockMatching::StrainWindowBlockAffineTransformCommand< TStrainWindowDisplacemenCalculator, TBlockAffineTransformMetricImageFilter, TStrainImageFilter >::m_UseStrainWindowStrain
protected

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