ANIMA
4.0
|
#include <animaClassificationStrategy.h>
Public Types | |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::Statistics::GaussianMembershipFunction< MeasurementVectorType > | GaussianFunctionType |
typedef GaussianREMEstimatorType::Pointer | GaussianREMEstimatorPointerType |
typedef GaussianREMEstimator< InputImageType, MaskImageType > | GaussianREMEstimatorType |
typedef TInputImage | InputImageType |
typedef TMaskImage | MaskImageType |
typedef itk::VariableLengthVector< double > | MeasurementVectorType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ClassificationStrategy | Self |
typedef itk::ProcessObject | Superclass |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual bool | GetEM_Mode () |
RandomInitializer * | getInitializer () |
return m_RandomInitializer object More... | |
virtual const char * | GetNameOfClass () const |
std::vector< unsigned int > | GetNumberOfEstimators () const |
std::vector< unsigned int > | GetNumberOfIterations () const |
bool | GetSolutionMap (std::map< double, std::vector< GaussianFunctionType::Pointer > > &solution, std::map< double, std::vector< double > > &solutionAlpha, int step=-1) |
return the solutions map for each step More... | |
virtual void | SetEM_Mode (bool _arg) |
void | SetEstimator (GaussianREMEstimatorPointerType theValue) |
set the estimation algorithm to use The algorithm must be already configured with the joint histogram More... | |
void | SetInitializer (RandomInitializer::Pointer theValue) |
set the m_RandomInitializer method More... | |
void | SetNumberOfEstimators (std::vector< unsigned int > NumberOfEstimators) |
void | SetNumberOfIterations (std::vector< unsigned int > NumberOfIterations) |
void | SetStrategy (std::vector< unsigned int > &ems, std::vector< unsigned int > &iters) |
void | Update () ITK_OVERRIDE |
executes the strategy More... | |
Static Public Member Functions | |
static Pointer | New () |
Protected Member Functions | |
ClassificationStrategy (const Self &) | |
ClassificationStrategy () | |
void | operator= (const Self &) |
bool | sameModel (std::vector< GaussianFunctionType::Pointer > &mod1, std::vector< GaussianFunctionType::Pointer > &mod2) |
compare two models More... | |
virtual | ~ClassificationStrategy () |
Protected Attributes | |
bool | m_EM_Mode |
modification of processing if an em is being used More... | |
GaussianREMEstimatorPointerType | m_Estimator |
estimation algorithm object More... | |
std::vector< std::map< double, std::vector< double > > > | m_ListAlphas |
std::vector< std::map< double, std::vector< GaussianFunctionType::Pointer > > > | m_ListGaussianModels |
vector with all the solutions found in each step For EM's the double value stores the -likelihood, otherwise the cost function More... | |
std::vector< unsigned int > | m_NumberOfEstimators |
vector with the number of random estimations for each step More... | |
std::vector< unsigned int > | m_NumberOfIterations |
vector with the iterations for each step More... | |
RandomInitializer::Pointer | m_RandomInitializer |
Initialization object. More... | |
Class classifying using a strategy for selecting best random intializations
Definition at line 15 of file animaClassificationStrategy.h.
typedef itk::SmartPointer<const Self> anima::ClassificationStrategy< TInputImage, TMaskImage >::ConstPointer |
Definition at line 23 of file animaClassificationStrategy.h.
typedef itk::Statistics::GaussianMembershipFunction< MeasurementVectorType > anima::ClassificationStrategy< TInputImage, TMaskImage >::GaussianFunctionType |
Definition at line 41 of file animaClassificationStrategy.h.
typedef GaussianREMEstimatorType::Pointer anima::ClassificationStrategy< TInputImage, TMaskImage >::GaussianREMEstimatorPointerType |
Definition at line 38 of file animaClassificationStrategy.h.
typedef GaussianREMEstimator<InputImageType,MaskImageType> anima::ClassificationStrategy< TInputImage, TMaskImage >::GaussianREMEstimatorType |
Definition at line 37 of file animaClassificationStrategy.h.
typedef TInputImage anima::ClassificationStrategy< TInputImage, TMaskImage >::InputImageType |
Type of the input image.
Definition at line 29 of file animaClassificationStrategy.h.
typedef TMaskImage anima::ClassificationStrategy< TInputImage, TMaskImage >::MaskImageType |
Type of the mask image.
Definition at line 35 of file animaClassificationStrategy.h.
typedef itk::VariableLengthVector<double> anima::ClassificationStrategy< TInputImage, TMaskImage >::MeasurementVectorType |
Definition at line 40 of file animaClassificationStrategy.h.
typedef itk::SmartPointer<Self> anima::ClassificationStrategy< TInputImage, TMaskImage >::Pointer |
Definition at line 22 of file animaClassificationStrategy.h.
typedef ClassificationStrategy anima::ClassificationStrategy< TInputImage, TMaskImage >::Self |
Standard class typedefs.
Definition at line 20 of file animaClassificationStrategy.h.
typedef itk::ProcessObject anima::ClassificationStrategy< TInputImage, TMaskImage >::Superclass |
Definition at line 21 of file animaClassificationStrategy.h.
|
protected |
|
inlineprotected |
Definition at line 88 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_EM_Mode, anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfEstimators, and anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfIterations.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::GetNumberOfEstimators().
|
inlineprotectedvirtual |
Definition at line 95 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::sameModel().
virtual::itk::LightObject::Pointer anima::ClassificationStrategy< TInputImage, TMaskImage >::CreateAnother | ( | void | ) | const |
|
virtual |
|
inline |
return m_RandomInitializer object
Definition at line 63 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::GetSolutionMap(), anima::ClassificationStrategy< TInputImage, TMaskImage >::m_RandomInitializer, and anima::ClassificationStrategy< TInputImage, TMaskImage >::SetStrategy().
|
virtual |
Run-time type information (and related methods).
|
inline |
Definition at line 80 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::ClassificationStrategy(), anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfEstimators, and anima::ClassificationStrategy< TInputImage, TMaskImage >::operator=().
|
inline |
Definition at line 77 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfIterations.
bool anima::ClassificationStrategy< TInputImage, TMaskImage >::GetSolutionMap | ( | std::map< double, std::vector< GaussianFunctionType::Pointer > > & | solution, |
std::map< double, std::vector< double > > & | solutionAlpha, | ||
int | step = -1 |
||
) |
return the solutions map for each step
step | solutions of the step we want to get if step is set to -1, the last step will be returned |
Definition at line 133 of file animaClassificationStrategy.hxx.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::getInitializer().
|
static |
Method for creation through the object factory.
|
protected |
|
protected |
compare two models
Definition at line 174 of file animaClassificationStrategy.hxx.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::~ClassificationStrategy().
|
virtual |
|
inline |
set the estimation algorithm to use The algorithm must be already configured with the joint histogram
Definition at line 52 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_Estimator.
|
inline |
set the m_RandomInitializer method
Definition at line 58 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_RandomInitializer.
|
inline |
Definition at line 79 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfEstimators.
|
inline |
Definition at line 76 of file animaClassificationStrategy.h.
References anima::ClassificationStrategy< TInputImage, TMaskImage >::m_NumberOfIterations.
void anima::ClassificationStrategy< TInputImage, TMaskImage >::SetStrategy | ( | std::vector< unsigned int > & | ems, |
std::vector< unsigned int > & | iters | ||
) |
Definition at line 154 of file animaClassificationStrategy.hxx.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::getInitializer().
void anima::ClassificationStrategy< TInputImage, TMaskImage >::Update | ( | ) |
executes the strategy
Definition at line 7 of file animaClassificationStrategy.hxx.
|
protected |
modification of processing if an em is being used
Definition at line 127 of file animaClassificationStrategy.h.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::ClassificationStrategy().
|
protected |
estimation algorithm object
Definition at line 105 of file animaClassificationStrategy.h.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::SetEstimator().
|
protected |
Definition at line 115 of file animaClassificationStrategy.h.
|
protected |
vector with all the solutions found in each step For EM's the double value stores the -likelihood, otherwise the cost function
Definition at line 114 of file animaClassificationStrategy.h.
|
protected |
vector with the number of random estimations for each step
Definition at line 123 of file animaClassificationStrategy.h.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::ClassificationStrategy(), anima::ClassificationStrategy< TInputImage, TMaskImage >::GetNumberOfEstimators(), and anima::ClassificationStrategy< TInputImage, TMaskImage >::SetNumberOfEstimators().
|
protected |
vector with the iterations for each step
Definition at line 119 of file animaClassificationStrategy.h.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::ClassificationStrategy(), anima::ClassificationStrategy< TInputImage, TMaskImage >::GetNumberOfIterations(), and anima::ClassificationStrategy< TInputImage, TMaskImage >::SetNumberOfIterations().
|
protected |
Initialization object.
Definition at line 109 of file animaClassificationStrategy.h.
Referenced by anima::ClassificationStrategy< TInputImage, TMaskImage >::getInitializer(), and anima::ClassificationStrategy< TInputImage, TMaskImage >::SetInitializer().