123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- #ifndef __OPENCV_SURFACE_MATCHING_HELPERS_HPP__
- #define __OPENCV_SURFACE_MATCHING_HELPERS_HPP__
- #include <opencv2/core.hpp>
- namespace cv
- {
- namespace ppf_match_3d
- {
- CV_EXPORTS Mat loadPLYSimple(const char* fileName, int withNormals = 0);
- CV_EXPORTS void writePLY(Mat PC, const char* fileName);
- CV_EXPORTS void writePLYVisibleNormals(Mat PC, const char* fileName);
- Mat samplePCUniform(Mat PC, int sampleStep);
- Mat samplePCUniformInd(Mat PC, int sampleStep, std::vector<int>& indices);
- CV_EXPORTS Mat samplePCByQuantization(Mat pc, float xrange[2], float yrange[2], float zrange[2], float sample_step_relative, int weightByCenter=0);
- void computeBboxStd(Mat pc, float xRange[2], float yRange[2], float zRange[2]);
- void* indexPCFlann(Mat pc);
- void destroyFlann(void* flannIndex);
- void queryPCFlann(void* flannIndex, Mat& pc, Mat& indices, Mat& distances);
- void queryPCFlann(void* flannIndex, Mat& pc, Mat& indices, Mat& distances, const int numNeighbors);
- CV_EXPORTS Mat normalize_pc(Mat pc, float scale);
- Mat normalizePCCoeff(Mat pc, float scale, float* Cx, float* Cy, float* Cz, float* MinVal, float* MaxVal);
- Mat transPCCoeff(Mat pc, float scale, float Cx, float Cy, float Cz, float MinVal, float MaxVal);
- CV_EXPORTS Mat transformPCPose(Mat pc, const double Pose[16]);
- CV_EXPORTS void getRandomPose(double Pose[16]);
- CV_EXPORTS Mat addNoisePC(Mat pc, double scale);
- CV_EXPORTS_W int computeNormalsPC3d(const Mat& PC, CV_OUT Mat& PCNormals, const int NumNeighbors, const bool FlipViewpoint, const Vec3d& viewpoint);
- }
- }
- #endif
|