Add next and previous navigation links to all tutorials
[platform/upstream/opencv.git] / doc / tutorials / features2d / trackingmotion / corner_subpixels / corner_subpixels.markdown
1 Detecting corners location in subpixels {#tutorial_corner_subpixels}
2 =======================================
3
4 @prev_tutorial{tutorial_generic_corner_detector}
5 @next_tutorial{tutorial_feature_detection}
6
7 Goal
8 ----
9
10 In this tutorial you will learn how to:
11
12 -   Use the OpenCV function @ref cv::cornerSubPix to find more exact corner positions (more exact
13     than integer pixels).
14
15 Theory
16 ------
17
18 Code
19 ----
20
21 @add_toggle_cpp
22 This tutorial code's is shown lines below. You can also download it from
23 [here](https://github.com/opencv/opencv/tree/3.4/samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp)
24 @include samples/cpp/tutorial_code/TrackingMotion/cornerSubPix_Demo.cpp
25 @end_toggle
26
27 @add_toggle_java
28 This tutorial code's is shown lines below. You can also download it from
29 [here](https://github.com/opencv/opencv/tree/3.4/samples/java/tutorial_code/TrackingMotion/corner_subpixels/CornerSubPixDemo.java)
30 @include samples/java/tutorial_code/TrackingMotion/corner_subpixels/CornerSubPixDemo.java
31 @end_toggle
32
33 @add_toggle_python
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/python/tutorial_code/TrackingMotion/corner_subpixels/cornerSubPix_Demo.py)
36 @include samples/python/tutorial_code/TrackingMotion/corner_subpixels/cornerSubPix_Demo.py
37 @end_toggle
38
39 Explanation
40 -----------
41
42 Result
43 ------
44
45 ![](images/Corner_Subpixels_Original_Image.jpg)
46
47 Here is the result:
48
49 ![](images/Corner_Subpixels_Result.jpg)