5 #include "BaseRandomModel.h" 26 DllExport
void reset(
void);
35 DllExport Mat
getPrior(
float weight = 1.0f)
const;
39 DllExport
virtual void saveFile(FILE *pFile)
const;
40 DllExport
virtual void loadFile(FILE *pFile);
virtual void loadFile(FILE *pFile)
Loads the random model from the file.
Base abstract class for prior probability estimation.
RandomModelType
Random model types.
Mat m_histogramPrior
The class cooccurance histogram.
Base abstract class for random model training.
void reset(void)
Resets class variables.
virtual void saveFile(FILE *pFile) const
Saves the random model into the file.
Mat getPrior(float weight=1.0f) const
Returns the prior probabilies.
CPrior(byte nStates, RandomModelType type)
Constructor.
virtual Mat calculatePrior(void) const =0
Calculates the prior probabilies.
RandomModelType m_type
Type of the random model (RandomModelType)