Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
mirtk::RegistrationEnergyParser Class Reference

#include <RegistrationEnergyParser.h>

Collaboration diagram for mirtk::RegistrationEnergyParser:
Collaboration graph

Public Member Functions

void ParseEnergyFormula (const string &energy_formula, int nimages=-1, int npsets=-1)
 Parse energy function.
 
 RegistrationEnergyParser (GenericRegistrationFilter *filter)
 Constructor.
 

Static Public Member Functions

template<class T >
static string Substitute (const string &s, const char *var, T value)
 Substitute single substring by given value.
 

Protected Member Functions

void ParseEnergyTerm (istream &in, Token &token, int nimages, int npsets)
 Parse and store information about next energy term.
 
string TermName (const string &str, const ImageSimilarityInfo &info, int i=-1) const
 Name of image dissimilarity term.
 
string TermName (const string &str, const PointSetDistanceInfo &info, int i=-1) const
 Name of point set distance term.
 
string TermName (const string &str, const PointSetConstraintInfo &info, int i=-1) const
 Name of point set constraint term.
 

Detailed Description

GRAMMAR (not up to date and complete)

energy: similarities similarities + constraints

similarities: weighted_similarity + similarities weighted_similarity

weighted_similiarity: weight * similarity weight similarity similarity

similarity: NAME(NAME, NAME) NAME[NAME](NAME, NAME)

constraints: weighted_constraint + constraints weighted_constraint

weighted_constraint: weight * constraint weight constraint constraint

constraint: NAME NAME(T) NAME[NAME] NAME[NAME](T)

weight: NUMBER NUMBER/NUMBER

Definition at line 68 of file RegistrationEnergyParser.h.


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