OpenCV 4.5.3(日本語機械翻訳)
dynafu.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 // This code is also subject to the license terms in the LICENSE_KinectFusion.md file found in this module's directory
6
7 #ifndef __OPENCV_RGBD_DYNAFU_HPP__
8 #define __OPENCV_RGBD_DYNAFU_HPP__
9
10 #include "opencv2/core.hpp"
11 #include "opencv2/core/affine.hpp"
12
13 #include "kinfu.hpp"
14
15 namespace cv {
16
17 namespace dynafu {
18
44 using Params = kinfu::Params;
45
46 class CV_EXPORTS_W DynaFu
47{
48 public:
49 CV_WRAP static Ptr<DynaFu> create(const Ptr<kinfu::Params>& _params);
50 virtual ~DynaFu();
51
53 virtual const kinfu::Params& getParams() const = 0;
54
65 CV_WRAP virtual void render(OutputArray image, const Matx44f& cameraPose = Matx44f::eye()) const = 0;
66
75 CV_WRAP virtual void getCloud(OutputArray points, OutputArray normals) const = 0;
76
83 CV_WRAP virtual void getPoints(OutputArray points) const = 0;
84
89 CV_WRAP virtual void getNormals(InputArray points, OutputArray normals) const = 0;
90
95 CV_WRAP virtual void reset() = 0;
96
98 virtual const Affine3f getPose() const = 0;
99
108 CV_WRAP virtual bool update(InputArray depth) = 0;
109
110 virtual std::vector<Point3f> getNodesPos() const = 0;
111
112 virtual void marchCubes(OutputArray vertices, OutputArray edges) const = 0;
113
114 virtual void renderSurface(OutputArray depthImage, OutputArray vertImage, OutputArray normImage, bool warp=true) = 0;
115};
116
118}
119}
120 #endif
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
Template class for small matrices whose type and size are known at compilation time
Definition: matx.hpp:100
Definition: dynafu.hpp:47
virtual const Affine3f getPose() const =0
Get current pose in voxel space
virtual const kinfu::Params & getParams() const =0
Get current parameters
CV_EXPORTS void render(const Texture2D &tex, Rect_< double > wndRect=Rect_< double >(0.0, 0.0, 1.0, 1.0), Rect_< double > texRect=Rect_< double >(0.0, 0.0, 1.0, 1.0))
Render OpenGL texture or primitives.
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
Definition: cvstd_wrapper.hpp:74
Definition: kinfu.hpp:20