TexturedRecognition.h
Go to the documentation of this file.
1 // *****************************************************************
2 // -----------------------------------------------------------------
3 // TexturedRecognition.h
4 // -----------------------------------------------------------------
5 // *****************************************************************
6 
7 // *****************************************************************
8 // Author: Pedram Azad
9 // Date: 2006/09/23
10 // *****************************************************************
11 
12 
13 // *****************************************************************
14 // double-include protection
15 // *****************************************************************
16 
17 #ifndef _TEXTURED_RECOGNITION_H_
18 #define _TEXTURED_RECOGNITION_H_
19 
20 
21 // *****************************************************************
22 // necessary includes
23 // *****************************************************************
24 
26 
27 
28 // *****************************************************************
29 // forwards
30 // *****************************************************************
31 
32 class CByteImage;
35 class CStereoCalibration;
36 
37 
38 
39 
41 {
42 public:
43  // constructor
51  CTexturedRecognition(int nImageWidth, int nImageHeight, float fSIFTThreshold = 0);
52 
53  // destructor
55 
56 
64  bool Init(const char *pObjectDatabaseFilePath, const char *pCameraParameterFileName = 0, const char* pDataFilePath = 0);
65 
73  bool Init(const char *pObjectDatabaseFilePath, CStereoCalibration *pStereoCalibration, bool bCloneCalibration, const char* pDataFilePath = 0);
74 
84  void DoRecognition(const CByteImage * const *ppInputImages, CByteImage **ppResultImages, bool bLocalizeWithStereo = false, int nUseKdTree = 0, bool bInputImagesAreUndistorted = false);
85 
96  void DoRecognitionSingleObject(const CByteImage * const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName,
97  bool bLocalizeWithStereo = false, int nUseKdTree = 0, bool bInputImagesAreUndistorted = false);
98 
104  void SetVerbose(bool bVerbose);
105 
111  void SetStereo(bool bStereo);
112 
119  void SetQualityThreshold(float fQualityThreshold);
120 
127  void SetRecognitionThresholds(int nMinValidFeatures, float fMaxError);
128 
134  const Object3DList& GetObject3DList();
135 
142 
143 
144 private:
145  // private methods
146  void _DoRecognition(const CByteImage * const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName,
147  bool bLocalizeWithStereo, int nUseKdTree, bool bInputImagesAreUndistorted);
148 
149  // private methods
152 
154 
157 
159 };
160 
161 
162 
163 #endif /* _TEXTURED_RECOGNITION2_H_ */
void DoRecognition(const CByteImage *const *ppInputImages, CByteImage **ppResultImages, bool bLocalizeWithStereo=false, int nUseKdTree=0, bool bInputImagesAreUndistorted=false)
CHarrisSIFTFeatureCalculator * m_pFeatureCalculator
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Definition: ByteImage.h:80
void _DoRecognition(const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName, bool bLocalizeWithStereo, int nUseKdTree, bool bInputImagesAreUndistorted)
CByteImage * m_ppGrayImages[2]
CTexturedRecognition(int nImageWidth, int nImageHeight, float fSIFTThreshold=0)
void SetRecognitionThresholds(int nMinValidFeatures, float fMaxError)
const Object3DList & GetObject3DList()
CTexturedObjectDatabase * GetObjectDatabase()
Camera model and functions for a stereo camera system.
void SetStereo(bool bStereo)
void DoRecognitionSingleObject(const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName, bool bLocalizeWithStereo=false, int nUseKdTree=0, bool bInputImagesAreUndistorted=false)
void SetQualityThreshold(float fQualityThreshold)
void SetVerbose(bool bVerbose)
Class for computing Harris-SIFT features in a CByteImage.
CTexturedObjectDatabase * m_pObjectDatabase
bool Init(const char *pObjectDatabaseFilePath, const char *pCameraParameterFileName=0, const char *pDataFilePath=0)
std::vector< Object3DEntry > Object3DList


asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Mon Dec 2 2019 03:47:28