TexturedFeatureSet.h
Go to the documentation of this file.
1 // ****************************************************************************
2 // Filename: FeatureEntry.h
3 // Author: Pedram Azad
4 // Date: 2005
5 // ****************************************************************************
6 
7 
8 #ifndef _TEXTURED_FEATURE_SET_H_
9 #define _TEXTURED_FEATURE_SET_H_
10 
11 
12 // ****************************************************************************
13 // Necessary includes
14 // ****************************************************************************
15 
16 #include "Features/FeatureEntry.h"
17 #include "Math/Math2d.h"
18 #include "Math/Math3d.h"
19 #include <string>
20 
21 
22 // ****************************************************************************
23 // Forward declarations
24 // ****************************************************************************
25 
26 class CDynamicArray;
27 class CByteImage;
28 
29 
30 
31 // ****************************************************************************
32 // CTexturedFeatureSet
33 // ****************************************************************************
34 
40 {
41 public:
42  // constructor
43  CTexturedFeatureSet(const char *pName);
44 
45  // CTexturedFeatureSet
47 
48 
49  // public methods
50  bool AddFeature(CFeatureEntry *pFeatureEntry, bool bAddUniqueOnly = true);
51  const CFeatureEntry* GetFeature(int nIndex) const;
52  const CFeatureEntry* FindBestMatch(const CFeatureEntry *pFeature, float &error) const;
53  void Clear();
54  bool DeleteElement(int nElement);
55  int DeleteAllMatches(const CFeatureEntry *pElement);
56  void SetCornerPoints(Vec2d &point1, Vec2d &point2, Vec2d &point3, Vec2d &point4);
57  void SetCornerPoints3D(Vec3d &point1, Vec3d &point2, Vec3d &point3, Vec3d &point4);
58 
59  int GetSize() const;
60  const char* GetName() const { return m_sName.c_str(); }
61  const char* GetModelFilePath() const { return m_sOivFilePath.c_str(); }
62 
63  bool SaveToFile(const char *pFileName);
64  bool LoadFromFile(const char *pFileName);
65  void SetModelFilePath(const char *pFilePath);
66 
67 
68 private:
69  // private attribute
71 
74 
75 public:
81 
86 };
87 
88 
89 
90 #endif /* _TEXTURED_FEATURE_SET_H_ */
bool AddFeature(CFeatureEntry *pFeatureEntry, bool bAddUniqueOnly=true)
void SetModelFilePath(const char *pFilePath)
CTexturedFeatureSet(const char *pName)
const CFeatureEntry * FindBestMatch(const CFeatureEntry *pFeature, float &error) const
Base class for the representation of local features.
Definition: FeatureEntry.h:72
Data structure for the representation of a 3D vector.
Definition: Math3d.h:73
Data structure for the representation of 8-bit grayscale images and 24-bit RGB (or HSV) color images ...
Definition: ByteImage.h:80
int GetSize() const
const char * GetModelFilePath() const
const char * GetName() const
bool DeleteElement(int nElement)
CDynamicArray * m_pFeatureArray
int DeleteAllMatches(const CFeatureEntry *pElement)
void SetCornerPoints(Vec2d &point1, Vec2d &point2, Vec2d &point3, Vec2d &point4)
GLsizei const GLchar ** string
Definition: glext.h:3528
bool LoadFromFile(const char *pFileName)
bool SaveToFile(const char *pFileName)
void SetCornerPoints3D(Vec3d &point1, Vec3d &point2, Vec3d &point3, Vec3d &point4)
Data structure for the representation of a 2D vector.
Definition: Math2d.h:82
Data structure for handling of sets of features, represented as instances of CFeatureEntry (resp...
const CFeatureEntry * GetFeature(int nIndex) const


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