bindings.hpp 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. #ifndef OPENCV_IMGPROC_BINDINGS_HPP
  5. #define OPENCV_IMGPROC_BINDINGS_HPP
  6. // This file contains special overloads for OpenCV bindings
  7. // No need to use these functions in C++ code.
  8. namespace cv {
  9. /** @brief Finds lines in a binary image using the standard Hough transform and get accumulator.
  10. *
  11. * @note This function is for bindings use only. Use original function in C++ code
  12. *
  13. * @sa HoughLines
  14. */
  15. CV_WRAP static inline
  16. void HoughLinesWithAccumulator(
  17. InputArray image, OutputArray lines,
  18. double rho, double theta, int threshold,
  19. double srn = 0, double stn = 0,
  20. double min_theta = 0, double max_theta = CV_PI
  21. )
  22. {
  23. std::vector<Vec3f> lines_acc;
  24. HoughLines(image, lines_acc, rho, theta, threshold, srn, stn, min_theta, max_theta);
  25. Mat(lines_acc).copyTo(lines);
  26. }
  27. } // namespace
  28. #endif // OPENCV_IMGPROC_BINDINGS_HPP