OpenCV 4.5.3(日本語機械翻訳)
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
19CV_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
This type is very similar to InputArray except that it is used for input/output and output function p...
Definition: mat.hpp:295
n-dimensional dense array class
Definition: mat.hpp:802
void copyTo(OutputArray m) const
Copies the matrix to another one.
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.
cv
"black box" representation of the file storage associated with a file on disk.
Definition: aruco.hpp:75
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