OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
opencv2
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📁
aruco
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
aruco.hpp
26.46 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
bgsegm.hpp
7.34 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
bioinspired
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
bioinspired.hpp
2.65 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
calib3d
-
10/28/2024 06:50:35 AM
rwxr-xr-x
📄
calib3d.hpp
119.32 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
ccalib
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
ccalib.hpp
6.62 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
core
-
10/28/2024 06:50:34 AM
rwxr-xr-x
📄
core.hpp
144.3 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
cvconfig.h
4.03 KB
09/20/2018 09:28:13 AM
rw-r--r--
📁
datasets
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
dpm.hpp
6.61 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
face
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
face.hpp
16.28 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
features2d
-
10/28/2024 06:50:35 AM
rwxr-xr-x
📄
features2d.hpp
59.62 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
flann
-
10/28/2024 06:50:34 AM
rwxr-xr-x
📄
flann.hpp
22.3 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
freetype.hpp
4.8 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
fuzzy
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
fuzzy.hpp
2.86 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
hdf
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
hdf.hpp
2.16 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
highgui
-
10/28/2024 06:50:35 AM
rwxr-xr-x
📄
highgui.hpp
32.88 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
imgcodecs
-
10/28/2024 06:50:34 AM
rwxr-xr-x
📄
imgcodecs.hpp
15.04 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
imgproc
-
10/28/2024 06:50:34 AM
rwxr-xr-x
📄
imgproc.hpp
217.44 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
line_descriptor
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
line_descriptor.hpp
6.67 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
ml
-
10/28/2024 06:50:35 AM
rwxr-xr-x
📄
ml.hpp
77.82 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
objdetect
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
objdetect.hpp
22.2 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
opencv.hpp
4.34 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
opencv_modules.hpp
1.46 KB
09/20/2018 09:28:13 AM
rw-r--r--
📁
optflow
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
optflow.hpp
16.41 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
phase_unwrapping
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
phase_unwrapping.hpp
3.12 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
photo
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
photo.hpp
37.58 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
plot.hpp
4.55 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
reg
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📁
rgbd
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
rgbd.hpp
31.94 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
saliency
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
saliency.hpp
4.2 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
shape
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
shape.hpp
2.4 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
stereo
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
stereo.hpp
13.97 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
stitching
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
stitching.hpp
12.82 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
structured_light
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
structured_light.hpp
3.44 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
superres
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
superres.hpp
8.07 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
surface_matching
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
surface_matching.hpp
22.07 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
text
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
text.hpp
5.05 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
video
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
video.hpp
2.57 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
videoio
-
10/28/2024 06:50:35 AM
rwxr-xr-x
📄
videoio.hpp
51.46 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
videostab
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
videostab.hpp
3.59 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
viz
-
10/28/2024 06:50:41 AM
rwxr-xr-x
📄
viz.hpp
3.24 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
ximgproc
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
ximgproc.hpp
5.24 KB
05/12/2017 03:45:27 AM
rw-r--r--
📄
xobjdetect.hpp
3.39 KB
05/12/2017 03:45:27 AM
rw-r--r--
📁
xphoto
-
10/28/2024 06:50:42 AM
rwxr-xr-x
📄
xphoto.hpp
2.39 KB
05/12/2017 03:45:27 AM
rw-r--r--
Editing: ccalib.hpp
Close
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, install, // copy or use the software. // // // License Agreement // For Open Source Computer Vision Library // // Copyright (C) 2014, OpenCV Foundation, all rights reserved. // Third party copyrights are property of their respective owners. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistribution's of source code must retain the above copyright notice, // this list of conditions and the following disclaimer. // // * Redistribution's in binary form must reproduce the above copyright notice, // this list of conditions and the following disclaimer in the documentation // and/or other materials provided with the distribution. // // * The name of the copyright holders may not be used to endorse or promote products // derived from this software without specific prior written permission. // // This software is provided by the copyright holders and contributors "as is" and // any express or implied warranties, including, but not limited to, the implied // warranties of merchantability and fitness for a particular purpose are disclaimed. // In no event shall the Intel Corporation or contributors be liable for any direct, // indirect, incidental, special, exemplary, or consequential damages // (including, but not limited to, procurement of substitute goods or services; // loss of use, data, or profits; or business interruption) however caused // and on any theory of liability, whether in contract, strict liability, // or tort (including negligence or otherwise) arising in any way out of // the use of this software, even if advised of the possibility of such damage. // //M*/ #ifndef __OPENCV_CCALIB_HPP__ #define __OPENCV_CCALIB_HPP__ #include <opencv2/core.hpp> #include <opencv2/features2d.hpp> #include <opencv2/imgproc.hpp> #include <opencv2/calib3d.hpp> #include <vector> /** @defgroup ccalib Custom Calibration Pattern for 3D reconstruction */ namespace cv{ namespace ccalib{ //! @addtogroup ccalib //! @{ class CV_EXPORTS CustomPattern : public Algorithm { public: CustomPattern(); virtual ~CustomPattern(); bool create(InputArray pattern, const Size2f boardSize, OutputArray output = noArray()); bool findPattern(InputArray image, OutputArray matched_features, OutputArray pattern_points, const double ratio = 0.7, const double proj_error = 8.0, const bool refine_position = false, OutputArray out = noArray(), OutputArray H = noArray(), OutputArray pattern_corners = noArray()); bool isInitialized(); void getPatternPoints(OutputArray original_points); /**< Returns a vector<Point> of the original points. */ double getPixelSize(); /**< Get the pixel size of the pattern */ bool setFeatureDetector(Ptr<FeatureDetector> featureDetector); bool setDescriptorExtractor(Ptr<DescriptorExtractor> extractor); bool setDescriptorMatcher(Ptr<DescriptorMatcher> matcher); Ptr<FeatureDetector> getFeatureDetector(); Ptr<DescriptorExtractor> getDescriptorExtractor(); Ptr<DescriptorMatcher> getDescriptorMatcher(); double calibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints, Size imageSize, InputOutputArray cameraMatrix, InputOutputArray distCoeffs, OutputArrayOfArrays rvecs, OutputArrayOfArrays tvecs, int flags = 0, TermCriteria criteria = TermCriteria(TermCriteria::COUNT + TermCriteria::EPS, 30, DBL_EPSILON)); /**< Calls the calirateCamera function with the same inputs. */ bool findRt(InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int flags = SOLVEPNP_ITERATIVE); bool findRt(InputArray image, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int flags = SOLVEPNP_ITERATIVE); /**< Uses solvePnP to find the rotation and translation of the pattern with respect to the camera frame. */ bool findRtRANSAC(InputArray objectPoints, InputArray imagePoints, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int iterationsCount = 100, float reprojectionError = 8.0, int minInliersCount = 100, OutputArray inliers = noArray(), int flags = SOLVEPNP_ITERATIVE); bool findRtRANSAC(InputArray image, InputArray cameraMatrix, InputArray distCoeffs, OutputArray rvec, OutputArray tvec, bool useExtrinsicGuess = false, int iterationsCount = 100, float reprojectionError = 8.0, int minInliersCount = 100, OutputArray inliers = noArray(), int flags = SOLVEPNP_ITERATIVE); /**< Uses solvePnPRansac() */ void drawOrientation(InputOutputArray image, InputArray tvec, InputArray rvec, InputArray cameraMatrix, InputArray distCoeffs, double axis_length = 3, int axis_width = 2); /**< pattern_corners -> projected over the image position of the edges of the pattern. */ private: Mat img_roi; std::vector<Point2f> obj_corners; double pxSize; bool initialized; Ptr<FeatureDetector> detector; Ptr<DescriptorExtractor> descriptorExtractor; Ptr<DescriptorMatcher> descriptorMatcher; std::vector<KeyPoint> keypoints; std::vector<Point3f> points3d; Mat descriptor; bool init(Mat& image, const float pixel_size, OutputArray output = noArray()); bool findPatternPass(const Mat& image, std::vector<Point2f>& matched_features, std::vector<Point3f>& pattern_points, Mat& H, std::vector<Point2f>& scene_corners, const double pratio, const double proj_error, const bool refine_position = false, const Mat& mask = Mat(), OutputArray output = noArray()); void scaleFoundPoints(const double squareSize, const std::vector<KeyPoint>& corners, std::vector<Point3f>& pts3d); void check_matches(std::vector<Point2f>& matched, const std::vector<Point2f>& pattern, std::vector<DMatch>& good, std::vector<Point3f>& pattern_3d, const Mat& H); void keypoints2points(const std::vector<KeyPoint>& in, std::vector<Point2f>& out); void updateKeypointsPos(std::vector<KeyPoint>& in, const std::vector<Point2f>& new_pos); void refinePointsPos(const Mat& img, std::vector<Point2f>& p); void refineKeypointsPos(const Mat& img, std::vector<KeyPoint>& kp); }; //! @} }} // namespace ccalib, cv #endif