Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoPatternMatchingDetails2d.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2023 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20#ifndef _SO_PATTERN_MATCHING_DETAILS_2D_H_
21#define _SO_PATTERN_MATCHING_DETAILS_2D_H_
22#ifdef OIV_FEI_INTERNAL
23
27
28#include <ImageViz/SoImageViz.h>
29class SoDEPRECATED SoPatternMatchingDetails2d : public SoFieldContainer
38{
39 SO_FIELDCONTAINER_HEADER( SoPatternMatchingDetails2d );
40public:class SoDEPRECATED MatchingResult
45 {
46 public:
52 SbMatrix3 getMatrix() const;
53
57 float getScore() const
58 { return m_similarity; }
59
64 SbVec2f getMatchingPosition() const
65 { return m_position; }
66
71 float getMatchingRotation() const
72 { return m_rotation; }
73
78 SbVec2f getMatchingScale() const
79 { return m_scale; }
80
81 // Constructor
82 MatchingResult( SbVec2f position, SbVec2f scale, float rotation, float score )
83 : m_position( position )
84 , m_scale ( scale )
85 , m_rotation( rotation )
86 , m_similarity( score )
87 {}
88
89 private:
90 SbVec2f m_position;
91 SbVec2f m_scale;
92 float m_rotation;
93 float m_similarity;
94 };
95
99 SoPatternMatchingDetails2d();
100
104 int getNumOfObjectDetected() const;
105
110 MatchingResult getDetail( int index ) const;
111
115 void insertDetail( MatchingResult detail );
116
117private:
119 virtual ~SoPatternMatchingDetails2d();
120
125 std::vector<MatchingResult> m_outMatches;
126};
127
128#endif // OIV_FEI_INTERNAL
129#endif //_SO_PATTERN_MATCHING_DETAILS_2D_H_
130
#define SO_FIELDCONTAINER_HEADER(className)
3x3 matrix class.
Definition SbMatrix.h:1186
2D vector class.
Definition SbVec.h:76
Abstract base class for objects that contain fields.