20 #ifndef MIRTK_SimilarityMeasure_H 21 #define MIRTK_SimilarityMeasure_H 23 #include "mirtk/EnergyMeasure.h" 62 if (em <= SIM_Begin || em >= SIM_End)
return ToString(
"Unknown", w, c, left);
70 if (em <= SIM_Begin || em >= SIM_End)
return ToString(
"Unknown", w, c, left);
79 if (
FromString(str, em) && SIM_Begin < em && em < SIM_End) {
91 #endif // MIRTK_SimilarityMeasure_H
Local normalized cross-correlation.
Unknown/invalid image (dis-)similarity measure.
Cosine of normalzed gradient field.
Local normalized cross-correlation.
string ToPrettyString(const EnergyMeasure &value, int w=0, char c=' ', bool left=true)
Convert energy measure enumeration value to human-friendly descriptive string.
Normalized mutual information.
Peak signal-to-noise ratio.
Normalized cross-correlation.
Sum of squared differences.
string ToString(const EnergyMeasure &value, int w, char c, bool left)
Convert energy measure enumeration value to string.
Normalized mutual information.
bool FromString(const char *str, EnergyMeasure &value)
Convert energy measure string to enumeration value.
EnergyMeasure
Enumeration of all available energy terms.
Unknown/invalid energy term.
Sum of squared differences.
Peak signal-to-noise ratio.
Normalized cross-correlation.
Cosine of normalzed gradient field.