OpenCV 4.5.3(日本語機械翻訳)
ppf_helpers.hpp
[詳解]
1 //
2 // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
3 //
4 // By downloading, copying, installing or using the software you agree to this license.
5 // If you do not agree to this license, do not download, install,
6 // copy or use the software.
7 //
8 //
9 // License Agreement
10 // For Open Source Computer Vision Library
11 //
12 // Copyright (C) 2014, OpenCV Foundation, all rights reserved.
13 // Third party copyrights are property of their respective owners.
14 //
15 // Redistribution and use in source and binary forms, with or without modification,
16 // are permitted provided that the following conditions are met:
17 //
18 // * Redistribution's of source code must retain the above copyright notice,
19 // this list of conditions and the following disclaimer.
20 //
21 // * Redistribution's in binary form must reproduce the above copyright notice,
22 // this list of conditions and the following disclaimer in the documentation
23 // and/or other materials provided with the distribution.
24 //
25 // * The name of the copyright holders may not be used to endorse or promote products
26 // derived from this software without specific prior written permission.
27 //
28 // This software is provided by the copyright holders and contributors "as is" and
29 // any express or implied warranties, including, but not limited to, the implied
30 // warranties of merchantability and fitness for a particular purpose are disclaimed.
31 // In no event shall the Intel Corporation or contributors be liable for any direct,
32 // indirect, incidental, special, exemplary, or consequential damages
33 // (including, but not limited to, procurement of substitute goods or services;
34 // loss of use, data, or profits; or business interruption) however caused
35 // and on any theory of liability, whether in contract, strict liability,
36 // or tort (including negligence or otherwise) arising in any way out of
37 // the use of this software, even if advised of the possibility of such damage.
38 //
39
44 #ifndef __OPENCV_SURFACE_MATCHING_HELPERS_HPP__
45 #define __OPENCV_SURFACE_MATCHING_HELPERS_HPP__
46
47 #include <opencv2/core.hpp>
48
49 namespace cv
50{
51 namespace ppf_match_3d
52{
53
56
64 CV_EXPORTS_W Mat loadPLYSimple(const char* fileName, int withNormals = 0);
65
71 CV_EXPORTS_W void writePLY(Mat PC, const char* fileName);
72
79 CV_EXPORTS_W void writePLYVisibleNormals(Mat PC, const char* fileName);
80
81 Mat samplePCUniform(Mat PC, int sampleStep);
82 Mat samplePCUniformInd(Mat PC, int sampleStep, std::vector<int>& indices);
83
97 CV_EXPORTS_W Mat samplePCByQuantization(Mat pc, Vec2f& xrange, Vec2f& yrange, Vec2f& zrange, float sample_step_relative, int weightByCenter=0);
98
99 void computeBboxStd(Mat pc, Vec2f& xRange, Vec2f& yRange, Vec2f& zRange);
100
101 void* indexPCFlann(Mat pc);
102 void destroyFlann(void* flannIndex);
103 void queryPCFlann(void* flannIndex, Mat& pc, Mat& indices, Mat& distances);
104 void queryPCFlann(void* flannIndex, Mat& pc, Mat& indices, Mat& distances, const int numNeighbors);
105
106 Mat normalizePCCoeff(Mat pc, float scale, float* Cx, float* Cy, float* Cz, float* MinVal, float* MaxVal);
107 Mat transPCCoeff(Mat pc, float scale, float Cx, float Cy, float Cz, float MinVal, float MaxVal);
108
117 CV_EXPORTS_W Mat transformPCPose(Mat pc, const Matx44d& Pose);
118
123 CV_EXPORTS_W void getRandomPose(Matx44d& Pose);
124
130 CV_EXPORTS_W Mat addNoisePC(Mat pc, double scale);
131
146 CV_EXPORTS_W int computeNormalsPC3d(const Mat& PC, CV_OUT Mat& PCNormals, const int NumNeighbors, const bool FlipViewpoint, const Vec3f& viewpoint);
147
149
150} // namespace ppf_match_3d
151} // namespace cv
152
153 #endif
n-dimensional dense array class
Definition: mat.hpp:802
Template class for small matrices whose type and size are known at compilation time
Definition: matx.hpp:100
CV_EXPORTS_W void getRandomPose(Matx44d &Pose)
CV_EXPORTS_W int computeNormalsPC3d(const Mat &PC, CV_OUT Mat &PCNormals, const int NumNeighbors, const bool FlipViewpoint, const Vec3f &viewpoint)
Compute the normals of an arbitrary point cloud computeNormalsPC3d uses a plane fitting approach to s...
CV_EXPORTS_W Mat loadPLYSimple(const char *fileName, int withNormals=0)
Load a PLY file
CV_EXPORTS_W Mat addNoisePC(Mat pc, double scale)
CV_EXPORTS_W void writePLYVisibleNormals(Mat PC, const char *fileName)
Used for debbuging pruposes, writes a point cloud to a PLY file with the tip of the normal vectors as...
CV_EXPORTS_W Mat samplePCByQuantization(Mat pc, Vec2f &xrange, Vec2f &yrange, Vec2f &zrange, float sample_step_relative, int weightByCenter=0)
CV_EXPORTS_W Mat transformPCPose(Mat pc, const Matx44d &Pose)
CV_EXPORTS_W void writePLY(Mat PC, const char *fileName)
Write a point cloud to PLY file
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75