Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Types | Public Member Functions
itk::MyMultiscaleIterationCommand Class Reference
+ Inheritance diagram for itk::MyMultiscaleIterationCommand:
+ Collaboration diagram for itk::MyMultiscaleIterationCommand:

Public Types

typedef MyMultiscaleIterationCommand Self
 
typedef Command Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Image< float, 2 > ImageType
 
typedef MyMultiscaleIterationCommand Self
 
typedef Command Superclass
 
typedef SmartPointer< SelfPointer
 
typedef SmartPointer< const SelfConstPointer
 
typedef Image< float, 3 > ImageType
 

Public Member Functions

 itkTypeMacro (MyMultiscaleIterationCommand, Command)
 
 itkNewMacro (Self)
 
virtual void Execute (Object *caller, const EventObject &)
 
virtual void Execute (const Object *, const EventObject &)
 
 itkTypeMacro (MyMultiscaleIterationCommand, Command)
 
 itkNewMacro (Self)
 
virtual void Execute (Object *caller, const EventObject &)
 
virtual void Execute (const Object *, const EventObject &)
 

Detailed Description

Definition at line 27 of file itkPSMEntropyModelFilter2DMultiscaleTest.cxx.

Member Typedef Documentation

Standard class typedefs.

Definition at line 31 of file itkPSMEntropyModelFilterMultiscaleTest.cxx.

Standard class typedefs.

Definition at line 31 of file itkPSMEntropyModelFilter2DMultiscaleTest.cxx.

Member Function Documentation

virtual void itk::MyMultiscaleIterationCommand::Execute ( Object *  caller,
const EventObject &   
)
inlinevirtual

This method will be passed a PSMGradientDescentOptimizer

Definition at line 45 of file itkPSMEntropyModelFilter2DMultiscaleTest.cxx.

46  {
47  PSMEntropyModelFilter<ImageType> *o
48  = static_cast<PSMEntropyModelFilter<ImageType> *>(caller);
49 
50  // Print every 10 iterations
51  if (o->GetNumberOfElapsedIterations() % 10 != 0) return;
52 
53  std::cout << "Scale = " << o->GetCurrentScale() << std::endl;
54  std::cout << "Iteration # " << o->GetNumberOfElapsedIterations() << std::endl;
55  std::cout << " Eigenmode variances: ";
56  for (unsigned int i = 0; i < o->GetShapePCAVariances().size(); i++)
57  {
58  std::cout << o->GetShapePCAVariances()[i] << " ";
59  }
60  std::cout << std::endl;
61  std::cout << " Regularization = " << o->GetRegularizationConstant() << std::endl;
62  }
virtual void itk::MyMultiscaleIterationCommand::Execute ( Object *  caller,
const EventObject &   
)
inlinevirtual

This method will be passed a PSMGradientDescentOptimizer

Definition at line 45 of file itkPSMEntropyModelFilterMultiscaleTest.cxx.

46  {
47  PSMEntropyModelFilter<ImageType> *o
48  = static_cast<PSMEntropyModelFilter<ImageType> *>(caller);
49 
50  // Print every 10 iterations
51  if (o->GetNumberOfElapsedIterations() % 10 != 0) return;
52 
53  std::cout << "Scale = " << o->GetCurrentScale() << std::endl;
54  std::cout << "Iteration # " << o->GetNumberOfElapsedIterations() << std::endl;
55  std::cout << " Eigenmode variances: ";
56  for (unsigned int i = 0; i < o->GetShapePCAVariances().size(); i++)
57  {
58  std::cout << o->GetShapePCAVariances()[i] << " ";
59  }
60  std::cout << std::endl;
61  std::cout << " Regularization = " << o->GetRegularizationConstant() << std::endl;
62  }
itk::MyMultiscaleIterationCommand::itkNewMacro ( Self  )

Method for creation through the object factory.

itk::MyMultiscaleIterationCommand::itkNewMacro ( Self  )

Method for creation through the object factory.

itk::MyMultiscaleIterationCommand::itkTypeMacro ( MyMultiscaleIterationCommand  ,
Command   
)

Run-time type information (and related methods).

itk::MyMultiscaleIterationCommand::itkTypeMacro ( MyMultiscaleIterationCommand  ,
Command   
)

Run-time type information (and related methods).


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