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

Public Types

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

Public Member Functions

 itkTypeMacro (My2DRegressionIterationCommand, 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 itkPSMEntropyRegressionModel2DFilterTest.cxx.

Member Typedef Documentation

Standard class typedefs.

Definition at line 31 of file itkPSMEntropyRegressionModel2DFilterTest.cxx.

Member Function Documentation

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

This method will be passed a PSMGradientDescentOptimizer

Definition at line 45 of file itkPSMEntropyRegressionModel2DFilterTest.cxx.

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

Method for creation through the object factory.

itk::My2DRegressionIterationCommand::itkTypeMacro ( My2DRegressionIterationCommand  ,
Command   
)

Run-time type information (and related methods).


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