github.com/kaydxh/golang@v0.0.131/pkg/gocv/cgo/third_path/opencv4/include/opencv2/imgproc/bindings.hpp (about) 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 13 /** @brief Finds lines in a binary image using the standard Hough transform and get accumulator. 14 * 15 * @note This function is for bindings use only. Use original function in C++ code 16 * 17 * @sa HoughLines 18 */ 19 CV_WRAP static inline 20 void HoughLinesWithAccumulator( 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