EstervQrCode 1.1.1
Library for qr code manipulation
bindings.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_IMGPROC_BINDINGS_HPP
6 #define OPENCV_IMGPROC_BINDINGS_HPP
7 
8 // This file contains special overloads for OpenCV bindings
9 // No need to use these functions in C++ code.
10 
11 namespace cv {
12 
19 CV_WRAP static inline
21  InputArray image, OutputArray lines,
22  double rho, double theta, int threshold,
23  double srn = 0, double stn = 0,
24  double min_theta = 0, double max_theta = CV_PI
25 )
26 {
27  std::vector<Vec3f> lines_acc;
28  HoughLines(image, lines_acc, rho, theta, threshold, srn, stn, min_theta, max_theta);
29  Mat(lines_acc).copyTo(lines);
30 }
31 
32 } // namespace
33 
34 #endif // OPENCV_IMGPROC_BINDINGS_HPP
n-dimensional dense array class
Definition: mat.hpp:812
void copyTo(OutputArray m) const
Copies the matrix to another one.
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:296
CV__DEBUG_NS_END typedef const _InputArray & InputArray
Definition: mat.hpp:442
#define CV_PI
Definition: cvdef.h:380
#define CV_WRAP
Definition: cvdef.h:481
void int double rho
Definition: imgproc_c.h:926
void int double double theta
Definition: imgproc_c.h:926
CV_EXPORTS_W void HoughLines(InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0, double min_theta=0, double max_theta=CV_PI)
Finds lines in a binary image using the standard Hough transform.
CV_EXPORTS_W double threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type)
Applies a fixed-level threshold to each array element.
"black box" representation of the file storage associated with a file on disk.
Definition: calib3d.hpp:441
static CV_WRAP void HoughLinesWithAccumulator(InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn=0, double stn=0, double min_theta=0, double max_theta=CV_PI)
Finds lines in a binary image using the standard Hough transform and get accumulator.
Definition: bindings.hpp:20