11 #ifndef _VIEW_DATABASE_H_ 12 #define _VIEW_DATABASE_H_ 52 bool Init(
const char *pConfigurationFilename);
56 bool GetView(
int nGlobalIndex,
int &nResultClass,
int &nResultView);
61 static bool ReadData(
const char *pFileName,
float *pData,
int nExpectedDimension);
std::string m_sTransformationMatrixFilename
static void Normalize(const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion ®ion)
CFloatMatrix * m_pTrainedData
const CDatabaseEntry * GetDatabaseEntry(int nIndex)
static int GetNumberOfSamples(const char *pFileName, int &nInputDimension)
bool GetPose(int nClass, int nView, Transformation3d &poseData)
Data structure for the representation of a 3D vector.
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
CFloatMatrix * m_pTransformationMatrix
bool ReadConfigurationFile(const char *pConfigurationFilename)
CDatabaseEntry ** m_ppDatabaseEntries
int GetTotalNumberOfSamples()
Data structure for the representation of a matrix of values of the data type float.
std::string m_sFullTransformationMatrixFilename
static bool ReadData(const char *pFileName, float *pData, int nExpectedDimension)
GLsizei const GLchar ** string
std::string m_sConfigurationFilename
std::string m_sEigenvalueMatrixFilename
bool GetView(int nGlobalIndex, int &nResultClass, int &nResultView)
static void NormalizeIntensity(float *pData, int nLength)
int FindBestMatch(const CFloatMatrix *pInputData, float &error)
std::string m_sTrainingDataFilename
bool WriteConfigurationFile(const char *pConfigurationFilename)
bool m_bWriteConfigurationFile
bool Init(const char *pConfigurationFilename)