#include <ViewDatabase2.h>
Public Member Functions | |
CViewDatabase2 () | |
int | FindBestMatch (const CFloatMatrix *pInputData, float &error) const |
const CDatabaseEntry * | GetDatabaseEntry () const |
int | GetInputDimension () |
int | GetNumberOfSamples () |
bool | GetPose (int nView, Transformation3d &pose) |
int | GetTargetDimension () |
bool | GetView (int nGlobalIndex, int &nResultClass, int &nResultView) |
bool | Init (const char *pBasePath, const char *pPathPrefix=0, std::string overrideClassName="") |
bool | InitRecognition () |
bool | LearnTrainingData () |
~CViewDatabase2 () | |
Static Public Member Functions | |
static int | GetNumberOfSamples (const char *pFileName, int &nInputDimension) |
static void | Normalize (const CByteImage *pInputImage, CByteImage *pOutputImage, const MyRegion ®ion) |
static void | NormalizeIntensity (float *pData, int nLength) |
static bool | ReadData (const char *pFileName, float *pData, int nExpectedDimension) |
Private Member Functions | |
void | DeleteMatrices () |
bool | ReadConfigurationFile (const char *pBasePath) |
bool | WriteConfigurationFile (const char *pConfigurationFilename) |
Private Attributes | |
int | m_nInputDimension |
int | m_nSamples |
int | m_nTargetDimension |
CDatabaseEntry * | m_pDatabaseEntry |
CFloatMatrix * | m_pTrainedData |
CFloatMatrix * | m_pTransformationMatrix |
std::string | m_sConfigurationFilename |
std::string | m_sEigenvalueMatrixFilename |
std::string | m_sFullTransformationMatrixFilename |
std::string | m_sTrainingDataFilename |
std::string | m_sTransformationMatrixFilename |
Definition at line 39 of file ViewDatabase2.h.
void CViewDatabase2::DeleteMatrices | ( | ) | [private] |
int CViewDatabase2::FindBestMatch | ( | const CFloatMatrix * | pInputData, |
float & | error | ||
) | const |
const CDatabaseEntry* CViewDatabase2::GetDatabaseEntry | ( | ) | const [inline] |
Definition at line 69 of file ViewDatabase2.h.
int CViewDatabase2::GetInputDimension | ( | ) | [inline] |
Definition at line 66 of file ViewDatabase2.h.
static int CViewDatabase2::GetNumberOfSamples | ( | const char * | pFileName, |
int & | nInputDimension | ||
) | [static] |
int CViewDatabase2::GetNumberOfSamples | ( | ) | [inline] |
Definition at line 68 of file ViewDatabase2.h.
bool CViewDatabase2::GetPose | ( | int | nView, |
Transformation3d & | pose | ||
) |
int CViewDatabase2::GetTargetDimension | ( | ) | [inline] |
Definition at line 67 of file ViewDatabase2.h.
bool CViewDatabase2::GetView | ( | int | nGlobalIndex, |
int & | nResultClass, | ||
int & | nResultView | ||
) |
bool CViewDatabase2::Init | ( | const char * | pBasePath, |
const char * | pPathPrefix = 0 , |
||
std::string | overrideClassName = "" |
||
) |
bool CViewDatabase2::InitRecognition | ( | ) |
bool CViewDatabase2::LearnTrainingData | ( | ) |
static void CViewDatabase2::Normalize | ( | const CByteImage * | pInputImage, |
CByteImage * | pOutputImage, | ||
const MyRegion & | region | ||
) | [static] |
static void CViewDatabase2::NormalizeIntensity | ( | float * | pData, |
int | nLength | ||
) | [static] |
bool CViewDatabase2::ReadConfigurationFile | ( | const char * | pBasePath | ) | [private] |
static bool CViewDatabase2::ReadData | ( | const char * | pFileName, |
float * | pData, | ||
int | nExpectedDimension | ||
) | [static] |
bool CViewDatabase2::WriteConfigurationFile | ( | const char * | pConfigurationFilename | ) | [private] |
int CViewDatabase2::m_nInputDimension [private] |
Definition at line 86 of file ViewDatabase2.h.
int CViewDatabase2::m_nSamples [private] |
Definition at line 88 of file ViewDatabase2.h.
int CViewDatabase2::m_nTargetDimension [private] |
Definition at line 87 of file ViewDatabase2.h.
CDatabaseEntry* CViewDatabase2::m_pDatabaseEntry [private] |
Definition at line 95 of file ViewDatabase2.h.
CFloatMatrix* CViewDatabase2::m_pTrainedData [private] |
Definition at line 93 of file ViewDatabase2.h.
Definition at line 92 of file ViewDatabase2.h.
Definition at line 90 of file ViewDatabase2.h.
Definition at line 82 of file ViewDatabase2.h.
Definition at line 81 of file ViewDatabase2.h.
Definition at line 84 of file ViewDatabase2.h.
Definition at line 83 of file ViewDatabase2.h.