OpenCV 4.5.3(日本語機械翻訳)
rapid.hpp
1 // This file is part of OpenCV project.
2 // It is subject to the license terms in the LICENSE file found in the top-level directory
3 // of this distribution and at http://opencv.org/license.html.
4
5 #ifndef OPENCV_RAPID_HPP_
6 #define OPENCV_RAPID_HPP_
7
8 #include <opencv2/core.hpp>
9 #include <opencv2/imgproc.hpp>
10
17 namespace cv
18{
19 namespace rapid
20{
23
30 CV_EXPORTS_W void drawCorrespondencies(InputOutputArray bundle, InputArray cols,
31 InputArray colors = noArray());
32
39 CV_EXPORTS_W void drawSearchLines(InputOutputArray img, InputArray locations, const Scalar& color);
40
50 CV_EXPORTS_W void drawWireframe(InputOutputArray img, InputArray pts2d, InputArray tris,
51 const Scalar& color, int type = LINE_8, bool cullBackface = false);
67 CV_EXPORTS_W void extractControlPoints(int num, int len, InputArray pts3d, InputArray rvec, InputArray tvec,
68 InputArray K, const Size& imsize, InputArray tris, OutputArray ctl2d,
69 OutputArray ctl3d);
79 CV_EXPORTS_W void extractLineBundle(int len, InputArray ctl2d, InputArray img, OutputArray bundle,
80 OutputArray srcLocations);
81
89 CV_EXPORTS_W void findCorrespondencies(InputArray bundle, OutputArray cols,
90 OutputArray response = noArray());
91
100 CV_EXPORTS_W void convertCorrespondencies(InputArray cols, InputArray srcLocations, OutputArray pts2d,
101 InputOutputArray pts3d = noArray(), InputArray mask = noArray());
102
123 CV_EXPORTS_W float rapid(InputArray img, int num, int len, InputArray pts3d, InputArray tris, InputArray K,
124 InputOutputArray rvec, InputOutputArray tvec, CV_OUT double* rmsd = 0);
125
127 class CV_EXPORTS_W Tracker : public Algorithm
128{
129 public:
130 virtual ~Tracker();
131 CV_WRAP virtual float
132 compute(InputArray img, int num, int len, InputArray K, InputOutputArray rvec, InputOutputArray tvec,
133 const TermCriteria& termcrit = TermCriteria(TermCriteria::MAX_ITER | TermCriteria::EPS, 5, 1.5)) = 0;
134 CV_WRAP virtual void clearState() = 0;
135};
136
138 class CV_EXPORTS_W Rapid : public Tracker
139{
140 public:
141 CV_WRAP static Ptr<Rapid> create(InputArray pts3d, InputArray tris);
142};
143
147 class CV_EXPORTS_W OLSTracker : public Tracker
148{
149 public:
150 CV_WRAP static Ptr<OLSTracker> create(InputArray pts3d, InputArray tris, int histBins = 8, uchar sobelThesh = 10);
151};
152
155 class CV_EXPORTS_W GOSTracker : public Tracker
156{
157 public:
158 CV_WRAP static Ptr<OLSTracker> create(InputArray pts3d, InputArray tris, int histBins = 4, uchar sobelThesh = 10);
159};
161} /* namespace rapid */
162} /* namespace cv */
163
164 #endif /* OPENCV_RAPID_HPP_ */
Definition: mat.hpp:386
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
This is a base class for all more or less complex algorithms in OpenCV
Definition: core.hpp:3091
Template class for specifying the size of an image or rectangle.
Definition: core/types.hpp:316
The class defining termination criteria for iterative algorithms.
Definition: core/types.hpp:853
@ MAX_ITER
ditto
Definition: core/types.hpp:861
@ EPS
the desired accuracy or change in parameters at which the iterative algorithm stops
Definition: core/types.hpp:862
Definition: rapid.hpp:156
Definition: rapid.hpp:148
wrapper around silhouette based 3D object tracking function for uniform access
Definition: rapid.hpp:139
Abstract base class for stateful silhouette trackers
Definition: rapid.hpp:128
@ LINE_8
8-connected line
Definition: imgproc.hpp:815
CV_EXPORTS_W void extractLineBundle(int len, InputArray ctl2d, InputArray img, OutputArray bundle, OutputArray srcLocations)
CV_EXPORTS_W void drawSearchLines(InputOutputArray img, InputArray locations, const Scalar &color)
CV_EXPORTS_W void findCorrespondencies(InputArray bundle, OutputArray cols, OutputArray response=noArray())
CV_EXPORTS_W void drawCorrespondencies(InputOutputArray bundle, InputArray cols, InputArray colors=noArray())
CV_EXPORTS_W void drawWireframe(InputOutputArray img, InputArray pts2d, InputArray tris, const Scalar &color, int type=LINE_8, bool cullBackface=false)
CV_EXPORTS_W void extractControlPoints(int num, int len, InputArray pts3d, InputArray rvec, InputArray tvec, InputArray K, const Size &imsize, InputArray tris, OutputArray ctl2d, OutputArray ctl3d)
CV_EXPORTS_W void convertCorrespondencies(InputArray cols, InputArray srcLocations, OutputArray pts2d, InputOutputArray pts3d=noArray(), InputArray mask=noArray())
CV_EXPORTS_W float rapid(InputArray img, int num, int len, InputArray pts3d, InputArray tris, InputArray K, InputOutputArray rvec, InputOutputArray tvec, CV_OUT double *rmsd=0)
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74