@tableofcontents
-@prev_tutorial{tutorial_traincascade}
+@prev_tutorial{tutorial_hough_circle}
+@next_tutorial{tutorial_remap}
Goal
----
### Code
The complete code for this tutorial is shown below.
-@include samples/cpp/tutorial_code/objectDetection/generalizedHoughTransform.cpp
+@include samples/cpp/tutorial_code/ImgTrans/generalizedHoughTransform.cpp
Explanation
-----------
### Load image, template and setup variables
-@snippet samples/cpp/tutorial_code/objectDetection/generalizedHoughTransform.cpp generalized-hough-transform-load-and-setup
+@snippet samples/cpp/tutorial_code/ImgTrans/generalizedHoughTransform.cpp generalized-hough-transform-load-and-setup
The position vectors will contain the matches the detectors will find.
Every entry contains four floating point values:
### Setup parameters
-@snippet samples/cpp/tutorial_code/objectDetection/generalizedHoughTransform.cpp generalized-hough-transform-setup-parameters
+@snippet samples/cpp/tutorial_code/ImgTrans/generalizedHoughTransform.cpp generalized-hough-transform-setup-parameters
Finding the optimal values can end up in trial and error and depends on many factors, such as the image resolution.
### Run detection
-@snippet samples/cpp/tutorial_code/objectDetection/generalizedHoughTransform.cpp generalized-hough-transform-run
+@snippet samples/cpp/tutorial_code/ImgTrans/generalizedHoughTransform.cpp generalized-hough-transform-run
As mentioned above, this step will take some time, especially with larger images and when using Guil.
### Draw results and show image
-@snippet samples/cpp/tutorial_code/objectDetection/generalizedHoughTransform.cpp generalized-hough-transform-draw-results
+@snippet samples/cpp/tutorial_code/ImgTrans/generalizedHoughTransform.cpp generalized-hough-transform-draw-results
Result
------
Where we learn how to detect circles
+- @subpage tutorial_generalized_hough_ballard_guil
+
+ *Languages:* C++
+
+ *Compatibility:* \>= OpenCV 3.4
+
+ *Author:* Markus Heck
+
+ Detect an object in a picture with the help of GeneralizedHoughBallard and GeneralizedHoughGuil.
+
- @subpage tutorial_remap
*Languages:* C++, Java, Python
- @subpage tutorial_traincascade
This tutorial describes _opencv_traincascade_ application and its parameters.
-
-- @subpage tutorial_generalized_hough_ballard_guil
-
- *Languages:* C++
-
- *Compatibility:* \>= OpenCV 3.4
-
- *Author:* Markus Heck
-
- Detect an object in a picture with the help of GeneralizedHoughBallard and GeneralizedHoughGuil.
\ No newline at end of file