Skip to content

Commit ddd47a7

Browse files
committed
Small tweaks to docs
1 parent 89de103 commit ddd47a7

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

docs/src/framework.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
# High-level overview of the framework
22

3-
The `Feature` and `Keypoint` types are the fundamental types in ImageFeatures.jl. `Feature` stores the `keypoint` and its `orientation` and `scale`. A vector of the `Feature` type is denoted by the `Features` type and similary a vector of `Keypoint` type is denoted by the `Keypoints` type. We provide multiple methods for easily transitioning between the two types.
3+
The `Feature` and `Keypoint` types are the main fundamental types in ImageFeatures.jl.
4+
`Feature` stores the `keypoint` and its `orientation` and `scale`. A vector of the `Feature` type is denoted by the `Features` type and similary a vector of `Keypoint` type is denoted by the `Keypoints` type. We provide multiple methods for easily transitioning between the two types.
45

5-
`Keypoints` or `Features` can be generate from an image of boolean values by `Keypoints(boolean_image)` or `Features(boolean_image)` where the boolean_image may be obtained from a feature detection algorithm for eg. the result of a corner detector. All feature detectors in ImageFeatures.jl directly return `Features`.
6+
`Keypoints` or `Features` can be generated from an image of boolean values by `Keypoints(boolean_image)` or `Features(boolean_image)` where the boolean_image may be obtained from a feature detection algorithm for, e.g., the result of a corner detector. All feature detectors in ImageFeatures.jl directly return `Features`.
67

78
A keypoint may be converted to a feature or vice versa by directly passing it to the respective method eg. `Keypoint(feature_A)` or `Feature(keypoint_A)`.
89

910
```julia
10-
descriptor, ret_keypoints = create_descriptor(img, dparams)
11-
descriptor, ret_keypoints = create_descriptor(img, keypoints, dparams)
11+
descriptor, ret_keypoints = create_descriptor(img, params)
12+
descriptor, ret_keypoints = create_descriptor(img, keypoints, params)
1213
```
1314

14-
Depending on the algorithm , the `create_descriptor` API can be used to directly create a feature descriptor from the image (eg. ORB, BRISK) or from the keypoints (eg. BRIEF, FREAK). In case of the latter, the keypoints can be obtained using algorithms such as FAST. The `dparams` argument is dependent on the algorithm chosen and its type is the name of the algorithm.
15+
Depending on the algorithm , the `create_descriptor` API can be used to directly create a feature descriptor from the image (eg. ORB, BRISK) or from the keypoints (eg. BRIEF, FREAK). In case of the latter, the keypoints can be obtained using algorithms such as FAST. The `params` argument is dependent on the algorithm chosen and its type is the name of the algorithm.

docs/src/function_reference.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ FREAK
1515
BRISK
1616
```
1717

18-
## Corners
18+
## Corners and edges
1919

2020
```@docs
2121
corner_orientations
22+
fastcorners
23+
canny
24+
phase
2225
```
2326

2427
## BRIEF Sampling Patterns
@@ -87,6 +90,7 @@ multi_block_lbp
8790
# Misc
8891

8992
```@docs
93+
HOG
9094
hough_transform_standard
9195
hough_circle_gradient
9296
```

docs/src/tutorials/brief.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ img2 = warp(img1, trans, axes(img1));
3131
nothing # hide
3232
```
3333

34-
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref).
34+
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref)).
3535

3636
```@example 1
3737
keypoints_1 = Keypoints(fastcorners(img1, 12, 0.4))

docs/src/tutorials/brisk.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ img2 = warp(img1, tform, axes(img1))
2929
nothing # hide
3030
```
3131

32-
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref).
32+
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref)).
3333

3434
```@example 4
3535
features_1 = Features(fastcorners(img1, 12, 0.35))

docs/src/tutorials/freak.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ img2 = warp(img1, tform, axes(img1))
2525
nothing # hide
2626
```
2727

28-
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref).
28+
To calculate the descriptors, we first need to get the keypoints. For this tutorial, we will use the FAST corners to generate keypoints (see [`fastcorners`](@ref)).
2929

3030
```@example 3
3131
keypoints_1 = Keypoints(fastcorners(img1, 12, 0.35))

docs/src/tutorials/object_detection.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Download the script to get the training data [here](https://drive.google.com/fil
1313
```julia
1414
using Images, ImageFeatures
1515

16-
path_to_tutorial = ""
17-
pos_examples = "path_to_tutorial/tutorial/humans/"
18-
neg_examples = "path_to_tutorial/tutorial/not_humans/"
16+
path_to_tutorial = "" # specify this path
17+
pos_examples = "$path_to_tutorial/tutorial/humans/"
18+
neg_examples = "$path_to_tutorial/tutorial/not_humans/"
1919

2020
n_pos = length(readdir(pos_examples)) # number of positive training examples
2121
n_neg = length(readdir(neg_examples)) # number of negative training examples
2222
n = n_pos + n_neg # number of training examples
23-
data = Array{Float64}(3780, n) # Array to store HOG descriptor of each image. Each image in our training data has size 128x64 and so has a 3780 length
24-
labels = Vector{Int}(n) # Vector to store label (1=human, 0=not human) of each image.
23+
data = Array{Float64}(undef, 3780, n) # Array to store HOG descriptor of each image. Each image in our training data has size 128x64 and so has a 3780 length
24+
labels = Vector{Int}(undef, n) # Vector to store label (1=human, 0=not human) of each image.
2525

2626
for (i, file) in enumerate([readdir(pos_examples); readdir(neg_examples)])
2727
filename = "$(i <= n_pos ? pos_examples : neg_examples )/$file"

0 commit comments

Comments
 (0)