1- abstract Params
1+ @compat abstract type Params end
22
33"""
44```
@@ -8,7 +8,7 @@ keypoint = Keypoint(feature)
88
99A `Keypoint` may be created by passing the coordinates of the point or from a feature.
1010"""
11- typealias Keypoint CartesianIndex{2 }
11+ const Keypoint = CartesianIndex{2 }
1212
1313"""
1414```
@@ -18,7 +18,7 @@ keypoints = Keypoints(features)
1818
1919Creates a `Vector{Keypoint}` of the `true` values in a boolean image or from a list of features.
2020"""
21- typealias Keypoints Vector{CartesianIndex{2 }}
21+ const Keypoints = Vector{CartesianIndex{2 }}
2222
2323"""
2424```
@@ -42,7 +42,7 @@ features = Features(keypoints)
4242Returns a `Vector{Feature}` of features generated from the `true` values in a boolean image or from a
4343list of keypoints.
4444"""
45- typealias Features Vector{Feature}
45+ const Features = Vector{Feature}
4646
4747Feature (k:: Keypoint ) = Feature (k, 0.0 , 0.0 )
4848
6161
6262Keypoints (features:: Features ) = map (f -> f. keypoint, features)
6363
64- typealias OrientationPair Tuple{Int16, Int16}
65- typealias OrientationWeights Tuple{Float16, Float16}
66- typealias SamplePair Tuple{Float16, Float16}
64+ const OrientationPair = Tuple{Int16, Int16}
65+ const OrientationWeights = Tuple{Float16, Float16}
66+ const SamplePair = Tuple{Float16, Float16}
6767
6868"""
6969```
@@ -72,7 +72,7 @@ distance = hamming_distance(desc_1, desc_2)
7272
7373Calculates the hamming distance between two descriptors.
7474"""
75- hamming_distance (desc_1, desc_2) = mean (desc_1 $ desc_2)
75+ hamming_distance (desc_1, desc_2) = mean (xor .( desc_1, desc_2) )
7676
7777"""
7878```
0 commit comments