11 #ifndef _TEXTURED_OBJECT_DATABASE_H_ 12 #define _TEXTURED_OBJECT_DATABASE_H_ 29 #define MAXIMUM_NUMBER_OF_CLASSES 50 69 bool LoadDatabase(
const char *pConfigurationFilename,
const char* pDataFilePathPrefix = 0);
84 const CByteImage *
const *ppInputImagesFor3DLocalization = 0,
85 const Vec2d *pInterestPoints = 0,
int nInterestPoints = 0,
86 int nUseKdTree = 0,
bool bInputImagesAreUndistorted =
false,
87 const char *pObjectName = 0);
128 const Vec2d *pFeatures,
int nFeatures,
const CByteImage *
const *ppImages,
CFeatureMapEntry(const CFeatureEntry *pFeature_, const CFeatureEntry *pMatchedFeature_, const CTexturedFeatureSet *pFeatureSet_)
bool Localize3D(const Vec2d &p1, const Vec2d &p2, const Vec2d &p3, const Vec2d &p4, const Vec3d &p1_3d, const Vec3d &p2_3d, const Vec3d &p3_3d, const Vec3d &p4_3d, const Vec2d *pFeatures, int nFeatures, const CByteImage *const *ppImages, CByteImage *pResultImage, Object3DEntry &entry, bool bInputImagesAreUndistorted)
CDynamicArray ** m_ppObjectFeatureMap
void SetStereo(bool bStereo)
Base class for the representation of local features.
Class for computing matches for individual points in stereo image pairs.
~CTexturedObjectDatabase()
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 ...
int m_nCorrelationWindowSize
const CTexturedFeatureSet * pFeatureSet
const CFeatureEntry * pFeature
Object3DList m_objectList
bool m_bStereoInitialized
void SetCorrelationParameters(int nWindowSize, float fMinZ, float fMaxZ, float fThreshold)
CStereoCalibration * m_pStereoCalibration
void InitCameraParameters(CStereoCalibration *pStereoCalibration, bool bCloneCalibration)
bool RemoveFeatureSet(int nIndex)
GLsizei const GLchar ** string
bool BuildKdTree(int nObjectIndex)
Camera model and functions for a stereo camera system.
bool LoadCameraParameters(const char *pFileName)
bool AddClass(const std::string &sClassName, const std::string &sFeatureSetFileName)
bool AddFeatureSet(CTexturedFeatureSet *pFeatureSet)
CTexturedObjectDatabase(int nImageWidth, int nImageHeight)
const CTexturedFeatureSet * GetFeatureSet(int nIndex)
int AnalyzeFeatures(CDynamicArray *pFeatures, CByteImage *pResultImage, const CByteImage *const *ppInputImagesFor3DLocalization=0, const Vec2d *pInterestPoints=0, int nInterestPoints=0, int nUseKdTree=0, bool bInputImagesAreUndistorted=false, const char *pObjectName=0)
CHoughSpace2D * m_pHoughSpace
Data structure for the representation of a 2D vector.
void SetRecognitionThresholds(int nMinValidFeatures, float fMaxError)
float m_fCorrelationThreshold
bool LoadDatabase(const char *pConfigurationFilename, const char *pDataFilePathPrefix=0)
CDynamicArray * m_pObjectArray
bool m_bLocalizeWithStereo
void SetVerbose(bool bVerbose)
CStereoMatcher * m_pStereoMatcher
const CFeatureEntry * pMatchedFeature
std::vector< Object3DEntry > Object3DList
Data structure for handling of sets of features, represented as instances of CFeatureEntry (resp...
bool m_bOwnStereoCalibrationObject