Add next and previous navigation links to all tutorials
[platform/upstream/opencv.git] / doc / tutorials / features2d / trackingmotion / generic_corner_detector / generic_corner_detector.markdown
1 Creating your own corner detector {#tutorial_generic_corner_detector}
2 =================================
3
4 @prev_tutorial{tutorial_good_features_to_track}
5 @next_tutorial{tutorial_corner_subpixels}
6
7
8 Goal
9 ----
10
11 In this tutorial you will learn how to:
12
13 -   Use the OpenCV function @ref cv::cornerEigenValsAndVecs to find the eigenvalues and eigenvectors
14     to determine if a pixel is a corner.
15 -   Use the OpenCV function @ref cv::cornerMinEigenVal to find the minimum eigenvalues for corner
16     detection.
17 -   Implement our own version of the Harris detector as well as the Shi-Tomasi detector, by using
18     the two functions above.
19
20 Theory
21 ------
22
23 Code
24 ----
25
26 @add_toggle_cpp
27 This tutorial code's is shown lines below. You can also download it from
28 [here](https://github.com/opencv/opencv/tree/3.4/samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp)
29
30 @include samples/cpp/tutorial_code/TrackingMotion/cornerDetector_Demo.cpp
31 @end_toggle
32
33 @add_toggle_java
34 This tutorial code's is shown lines below. You can also download it from
35 [here](https://github.com/opencv/opencv/tree/3.4/samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java)
36
37 @include samples/java/tutorial_code/TrackingMotion/generic_corner_detector/CornerDetectorDemo.java
38 @end_toggle
39
40 @add_toggle_python
41 This tutorial code's is shown lines below. You can also download it from
42 [here](https://github.com/opencv/opencv/tree/3.4/samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py)
43
44 @include samples/python/tutorial_code/TrackingMotion/generic_corner_detector/cornerDetector_Demo.py
45 @end_toggle
46
47 Explanation
48 -----------
49
50 Result
51 ------
52
53 ![](images/My_Harris_corner_detector_Result.jpg)
54
55 ![](images/My_Shi_Tomasi_corner_detector_Result.jpg)