Skip to content

Commit ae23e0c

Browse files
committed
Update tutorial.markdown
1 parent 02c2b56 commit ae23e0c

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

modules/line_descriptor/tutorials/tutorial.markdown

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Line Features Tutorial {#tutorial_line_descriptor_main}
33

44
In this tutorial it will be shown how to:
55

6-
- use the *BinaryDescriptor* interface to extract lines and store them in *KeyLine* objects
7-
- use the same interface to compute descriptors for every extracted line
8-
- use the *BynaryDescriptorMatcher* to determine matches among descriptors obtained from different
6+
- Use the *BinaryDescriptor* interface to extract the lines and store them in *KeyLine* objects
7+
- Use the same interface to compute descriptors for every extracted line
8+
- Use the *BynaryDescriptorMatcher* to determine matches among descriptors obtained from different
99
images
1010

1111
Lines extraction and descriptors computation
@@ -18,7 +18,7 @@ displayed using random colors for octave 0.
1818

1919
@includelineno line_descriptor/samples/lsd_lines_extraction.cpp
2020

21-
This is the result obtained for famous cameraman image:
21+
This is the result obtained from the famous cameraman image:
2222

2323
![alternate text](pics/lines_cameraman_edl.png)
2424

@@ -54,7 +54,7 @@ choosing the one at closest distance:
5454
@includelineno line_descriptor/samples/matching.cpp
5555

5656
Sometimes, we could be interested in searching for the closest *k* descriptors, given an input one.
57-
This requires to modify slightly previous code:
57+
This requires modifying previous code slightly:
5858

5959
@code{.cpp}
6060
// prepare a structure to host matches
@@ -66,7 +66,7 @@ bdm->knnMatch( descr1, descr2, matches, 6 );
6666

6767
In the above example, the closest 6 descriptors are returned for every query. In some cases, we
6868
could have a search radius and look for all descriptors distant at the most *r* from input query.
69-
Previous code must me modified:
69+
Previous code must be modified like:
7070

7171
@code{.cpp}
7272
// prepare a structure to host matches
@@ -76,23 +76,23 @@ std::vector<std::vector<DMatch> > matches;
7676
bdm->radiusMatch( queries, matches, 30 );
7777
@endcode
7878

79-
Here's an example om matching among descriptors extratced from original cameraman image and its
79+
Here's an example of matching among descriptors extracted from original cameraman image and its
8080
downsampled (and blurred) version:
8181

8282
![alternate text](pics/matching2.png)
8383

8484
Querying internal database
8585
--------------------------
8686

87-
The *BynaryDescriptorMatcher* class, owns an internal database that can be populated with
88-
descriptors extracted from different images and queried using one of the modalities described in
87+
The *BynaryDescriptorMatcher* class owns an internal database that can be populated with
88+
descriptors extracted from different images and queried using one of the modalities described in the
8989
previous section. Population of internal dataset can be done using the *add* function; such function
90-
doesn't directly add new data to database, but it just stores it them locally. The real update
91-
happens when function *train* is invoked or when any querying function is executed, since each of
90+
doesn't directly add new data to the database, but it just stores it them locally. The real update
91+
happens when the function *train* is invoked or when any querying function is executed, since each of
9292
them invokes *train* before querying. When queried, internal database not only returns required
93-
descriptors, but, for every returned match, it is able to tell which image matched descriptor was
93+
descriptors, but for every returned match, it is able to tell which image matched descriptor was
9494
extracted from. An example of internal dataset usage is described in the following code; after
9595
adding locally new descriptors, a radius search is invoked. This provokes local data to be
96-
transferred to dataset, which, in turn, is then queried.
96+
transferred to dataset which in turn, is then queried.
9797

9898
@includelineno line_descriptor/samples/radius_matching.cpp

0 commit comments

Comments
 (0)