20 #ifndef MIRTK_HistogramImageSimilarity_H 21 #define MIRTK_HistogramImageSimilarity_H 23 #include "mirtk/ImageSimilarity.h" 25 #include "mirtk/Math.h" 26 #include "mirtk/Histogram2D.h" 27 #include "mirtk/Parallel.h" 50 #if MIRKT_USE_FLOAT_BY_DEFAULT 67 double min_intensity = NaN,
68 double max_intensity = NaN);
140 virtual void Update(
bool =
true);
168 virtual void WriteDataSets(
const char *,
const char *,
bool =
true)
const;
175 #endif // MIRTK_HistogramImageSimilarity_H HistogramImageSimilarity & operator=(const HistogramImageSimilarity &)
Assignment operator.
virtual ~HistogramImageSimilarity()
Destructor.
virtual void UpdateHistogram()
Update estimated joint histogram after raw samples histogram has changed.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
Histogram2D< BinType > JointHistogramType
Type of joint histogram.
Array< Pair< string, string > > ParameterList
Ordered list of parameter name/value pairs.
virtual void Initialize()
Initialize similarity measure once input and parameters have been set.
static int DefaultNumberOfBins(const BaseImage *image, double min_intensity=NaN, double max_intensity=NaN)
double BinType
Type of joint histogram bin values.
virtual void WriteDataSets(const char *, const char *, bool=true) const
Write input of data fidelity term.
mirtkPublicAttributeMacro(bool, UseParzenWindow)
Whether to use a Parzen window function.
virtual bool SetWithPrefix(const char *, const char *)
Set parameter value from string.
virtual ParameterList Parameter() const
Get parameter key/value as string map.
virtual void Include(const blocked_range3d< int > &)
mirtkLooseComponentMacro(JointHistogramType, Samples)
virtual void Exclude(const blocked_range3d< int > &)
mirtkAttributeMacro(JointHistogramType, Histogram)
Joint histogram of image intensities (cubic B-spline Parzen windows)
void CopyAttributes(const HistogramImageSimilarity &)
Copy attributes of this class from another instance.
virtual void Print(Indent=0) const
Print debug information.
HistogramImageSimilarity(const char *="", double=1.0)
Constructor.
virtual void Update(bool=true)
Update moving image and internal state of similarity measure.