11 #ifndef _SEGMENTABLE_DATABASE_H_ 12 #define _SEGMENTABLE_DATABASE_H_ 57 bool Init(
const char *pConfigurationFilename,
const char *pCameraParameterFilename,
const char* pViewDataBasePathPrefix = 0);
58 bool Init(
const char *pConfigurationFilename,
CStereoCalibration* pStereoCalibration,
const char* pViewDataBasePathPrefix = 0);
64 Transformation3d &resultPose,
float &fResultError,
int &nResultClass,
int &nResultView,
float &fResultRatio,
float &fResultCorrelation,
65 const char *pObjectName);
80 Vec3d &correctedPosition,
float &fRatio,
float &fCorrelation);
91 bool InitDatabase(
const char *pConfigurationFilename,
const char* pViewDataBasePathPrefix = 0);
float m_fCorrelationThreshold
void SetStereoCalibration(CStereoCalibration *pStereoCalibration)
CObjectFinderStereo * m_pObjectFinderStereo
bool CalculateCorrectedPosition(const char *pOIVFilePath, const Vec3d &triangulatedPosition, const Mat3d &orientation, const CByteImage *pMask, int nSize, Vec3d &correctedPosition, float &fRatio, float &fCorrelation)
void SetRecognitionThresholds(float fSizeRatioThreshold, float fCorrelationThreshold)
int SimulateSize(const char *pOIVFilePath, const Transformation3d &pose, CByteImage *pObjectImage)
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 ...
void CalculateCorrectedOrientation(const Vec3d &position, const Mat3d &orientation, Mat3d &resultOrientation)
const CDatabaseEntry * GetDatabaseEntry(int nClass)
Data structure for the representation of a matrix of values of the data type float.
CDynamicArray * m_pViewDatabaseList
bool Init(const char *pConfigurationFilename, const char *pCameraParameterFilename, const char *pViewDataBasePathPrefix=0)
GLsizei const GLchar ** string
bool AddClass(const std::string &classPath, const std::string &dataBasePrefix, std::string overrideClassName="")
Camera model and functions for a stereo camera system.
static bool DrawObjectFromFile(COpenGLVisualizer *pVisualizer, const char *pOIVFilePath, const Transformation3d &pose)
bool InitDatabase(const char *pConfigurationFilename, const char *pViewDataBasePathPrefix=0)
float m_fSizeRatioThreshold
COpenGLVisualizer * m_pOpenGLVisualizer
Data structure for the representation of a 3x3 matrix.
void SetVerbose(bool bVerbose)
bool FindBestMatch(const CFloatMatrix *pInputData, const CByteImage *pMask, const Vec3d &initialPosition, int nSize, Transformation3d &resultPose, float &fResultError, int &nResultClass, int &nResultView, float &fResultRatio, float &fResultCorrelation, const char *pObjectName)