Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #ifndef _OBJECT_FINDER_STEREO_H_
00043 #define _OBJECT_FINDER_STEREO_H_
00044
00045
00046
00047
00048
00049
00050 #include "Structs/ObjectDefinitions.h"
00051 #include <string>
00052
00053
00054
00055
00056
00057
00058 class CRegionFilterInterface;
00059 class CObjectEntryFilterInterface;
00060 class CObjectClassifierInterface;
00061 class CObjectFinder;
00062 class CByteImage;
00063 class CCalibration;
00064 class CStereoCalibration;
00065 class CColorParameterSet;
00066
00067
00068
00069
00070
00071
00072
00073 class CObjectFinderStereo
00074 {
00075 public:
00076
00077 CObjectFinderStereo();
00078
00079
00080 ~CObjectFinderStereo();
00081
00082
00083
00084 bool Init(const char *pCameraParameterFileName);
00085 void Init(CStereoCalibration* pStereoCalibration);
00086
00087 void SetColorParameterSet(const CColorParameterSet *pColorParameterSet);
00088
00089
00090 void PrepareImages(const CByteImage * const *ppImages, float fROIFactor = -1, bool bCalculateHSVImage = true);
00091
00092
00093 void FindObjects(const CByteImage * const *ppImages, CByteImage **ppResultImages, ObjectColor color, int nMinPointsPerRegion, bool bShowSegmentedImage);
00094 void FindObjects(const CByteImage * const *ppImages, CByteImage **ppResultImages, ObjectColor color, int nMinPointsPerRegion, CByteImage **ppResultSegmentedImages);
00095 void FindObjects(const CByteImage * const *ppImages, CByteImage **ppResultImages, ObjectColor colorName, int hue, int hue_tol, int min_sat, int max_sat, int min_v, int max_v, int nMinPointsPerRegion, bool bShowSegmentedImage);
00096 void FindObjectsInSegmentedImage(const CByteImage * const *ppImages, CByteImage **ppResultImages, ObjectColor color, int nMinPointsPerRegion, bool bShowSegmentedImage);
00097
00098
00099 int Finalize(float dMinZDistance, float fMaxZDistance, bool bInputImagesAreRectified, ObjectColor finalizeColor = eNone, float fMaxEpipolarDistance = 10, bool bUseDistortionParameters = true);
00100
00101
00102 CByteImage* GetLeftSegmentationResult();
00103 CByteImage* GetRightSegmentationResult();
00104 const CStereoCalibration* GetStereoCalibration() { return m_pStereoCalibration; }
00105
00106
00107 void SetRegionFilter(CRegionFilterInterface *pRegionFilter);
00108 void SetObjectEntryFilter(CObjectEntryFilterInterface *pObjectEntryFilter) { m_pObjectEntryFilter = pObjectEntryFilter; }
00109
00110
00111 const Object3DList& GetObject3DList() { return m_objectList; }
00112 void ClearObjectList();
00113 void AddObject(const Object3DEntry &entry);
00114
00115
00116 void AddObjectClassifier(CObjectClassifierInterface *pObjectClassifier);
00117 void RemoveObjectClassifier(CObjectClassifierInterface *pObjectClassifier);
00118 void ClearObjectClassifierList();
00119
00120
00121 Object3DList m_objectList;
00122
00123
00124 protected:
00125
00126 void UpdateObjectFinderLists(Object2DList &resultListLeft, Object2DList &resultListRight);
00127 int DetermineMatches(Object2DList &resultListLeft, Object2DList &resultListRight, float fMinZDistance, float fMaxZDistance, bool bInputImagesAreRectified, bool bUseDistortionParameters, ObjectColor finalizeColor, float fMaxYDiff);
00128
00129
00130 CObjectFinder *m_pObjectFinderLeft;
00131 CObjectFinder *m_pObjectFinderRight;
00132 CStereoCalibration *m_pStereoCalibration;
00133
00134 private:
00135
00136 std::vector<CObjectClassifierInterface*> m_objectClassifierList;
00137 CObjectEntryFilterInterface *m_pObjectEntryFilter;
00138 bool m_bOwnCalibration;
00139 };
00140
00141
00142
00143 #endif
asr_ivt
Author(s): Allgeyer Tobias, Hutmacher Robin, Kleinert Daniel, Meißner Pascal, Scholz Jonas, Stöckle Patrick
autogenerated on Thu Jun 6 2019 21:46:57