SegmentableRecognition.h
Go to the documentation of this file.
1 // *****************************************************************
2 // -----------------------------------------------------------------
3 // SegmentableRecognition.h
4 // -----------------------------------------------------------------
5 // *****************************************************************
6 
7 // *****************************************************************
8 // Author: Pedram Azad
9 // Date: 2006/02/23
10 // *****************************************************************
11 
12 
13 // *****************************************************************
14 // double-include protection
15 // *****************************************************************
16 
17 #ifndef _SEGMENTABLE_RECOGNITION_H_
18 #define _SEGMENTABLE_RECOGNITION_H_
19 
20 
21 // *****************************************************************
22 // necessary includes
23 // *****************************************************************
24 
26 
27 
28 // *****************************************************************
29 // forwards
30 // *****************************************************************
31 
32 class CObjectFinder;
34 class CStereoCalibration;
36 class CByteImage;
38 class CColorParameterSet;
39 
40 
41 
42 
44 {
45 public:
46  // constructor
48 
49  // destructor
51 
52 
63  bool Init(const char *pColorParameterFile, const char *pCameraParameterFileDeprecated, const char *pCameraParameterFile,
64  const char *pObjectDatabaseConfigurationFile, const char* pDataPathPrefix = 0);
65 
74  bool Init(CColorParameterSet* pColorParameterSet, CStereoCalibration* pStereoCalibration, const char *pObjectDatabaseConfigurationFile);
75 
83  bool InitWithoutDatabase(CColorParameterSet* pColorParameterSet, CStereoCalibration* pStereoCalibration);
84 
91  bool AddClass(const std::string& classPath);
92 
98  void SetStereoCalibration(CStereoCalibration *pStereoCalibration);
99 
105  void SetRecognitionThresholds(float fSizeRatioThreshold, float fCorrelationThreshold);
106 
119  void DoRecognition(const CByteImage * const *ppInputImages, CByteImage **ppResultImages,
120  int nMinPixelsPerRegion, bool bBlobsOnly = false, float fMaxEpipolarDistance = 10,
121  ObjectColor color = eNone, bool bTrack = false, bool bInputImagesAreUndistorted = false);
122 
136  void DoRecognitionSingleObject(const CByteImage * const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName,
137  int nMinPixelsPerRegion, float fMaxEpipolarDistance = 10,
138  ObjectColor color = eNone, bool bTrack = false, bool bInputImagesAreUndistorted = false);
139 
146 
153 
160 
167 
173  void SetVerbose(bool bVerbose);
174 
175 
176 private:
177  // private methods
178  void _DoRecognition(const CByteImage * const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName = 0,
179  int nMinPixelsPerRegion = 500, bool bBlobsOnly = false, float fMaxEpipolarDistance = 10,
180  ObjectColor color = eNone, bool bTrack = false, bool bInputImagesAreUndistorted = false);
181  void FindAndClassifyBlobs(CObjectFinderStereo *pObjectFinderStereo, const CByteImage * const *ppInputImages,
182  CByteImage **pResultImages, CByteImage *pGrayImage, const char *pObjectName, ObjectColor color,
183  int nMinPixelsPerRegion, bool bBlobsOnly, float fMaxEpipolarDistance, bool bInputImagesAreUndistorted);
184  bool RecognizeAndLocalizeObject(CByteImage *pGrayImage, Object3DEntry &entry, const char *pObjectName);
185  void PostProcessResultList();
186 
187  // public attributes
189 
191 
193 
196 
198 
200 
202 };
203 
204 
205 
206 #endif /* _SEGMENTABLE_RECOGNITION_H_ */
const CStereoCalibration * GetStereoCalibration()
void SetRecognitionThresholds(float fSizeRatioThreshold, float fCorrelationThreshold)
const CColorParameterSet * GetColorParameterSet()
void FindAndClassifyBlobs(CObjectFinderStereo *pObjectFinderStereo, const CByteImage *const *ppInputImages, CByteImage **pResultImages, CByteImage *pGrayImage, const char *pObjectName, ObjectColor color, int nMinPixelsPerRegion, bool bBlobsOnly, float fMaxEpipolarDistance, bool bInputImagesAreUndistorted)
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, int nMinPixelsPerRegion, bool bBlobsOnly=false, float fMaxEpipolarDistance=10, ObjectColor color=eNone, bool bTrack=false, bool bInputImagesAreUndistorted=false)
CRegionFilterInterface * m_pCompactRegionFilter
void _DoRecognition(const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName=0, int nMinPixelsPerRegion=500, bool bBlobsOnly=false, float fMaxEpipolarDistance=10, ObjectColor color=eNone, bool bTrack=false, bool bInputImagesAreUndistorted=false)
bool AddClass(const std::string &classPath)
void SetVerbose(bool bVerbose)
bool InitWithoutDatabase(CColorParameterSet *pColorParameterSet, CStereoCalibration *pStereoCalibration)
void DoRecognitionSingleObject(const CByteImage *const *ppInputImages, CByteImage **ppResultImages, const char *pObjectName, int nMinPixelsPerRegion, float fMaxEpipolarDistance=10, ObjectColor color=eNone, bool bTrack=false, bool bInputImagesAreUndistorted=false)
GLsizei const GLchar ** string
Definition: glext.h:3528
Camera model and functions for a stereo camera system.
bool Init(const char *pColorParameterFile, const char *pCameraParameterFileDeprecated, const char *pCameraParameterFile, const char *pObjectDatabaseConfigurationFile, const char *pDataPathPrefix=0)
CColorParameterSet * m_pColorParameterSet
CSegmentableDatabase * m_pSegmentableDatabase
CSegmentableDatabase * GetObjectDatabase()
const Object3DList & GetObject3DList()
void SetStereoCalibration(CStereoCalibration *pStereoCalibration)
bool RecognizeAndLocalizeObject(CByteImage *pGrayImage, Object3DEntry &entry, const char *pObjectName)
std::vector< Object3DEntry > Object3DList
ObjectColor
CObjectFinderStereo * m_pObjectFinderStereo


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