Commit 82a0ed2fa189df0371496b96f19566cd6019fea1
1 parent
a46353cc
DefaultDistance implementation fix
Showing
1 changed file
with
1 additions
and
2 deletions
sdk/plugins/distance.cpp
| ... | ... | @@ -126,7 +126,7 @@ class DefaultDistance : public Distance |
| 126 | 126 | |
| 127 | 127 | void init() |
| 128 | 128 | { |
| 129 | - distance = Distance::make("Dist("+file.name+")"); | |
| 129 | + distance = Distance::make("Dist("+file.suffix()+")"); | |
| 130 | 130 | } |
| 131 | 131 | |
| 132 | 132 | float compare(const Template &a, const Template &b) const |
| ... | ... | @@ -154,7 +154,6 @@ class ByteL1Distance : public Distance |
| 154 | 154 | |
| 155 | 155 | BR_REGISTER(Distance, ByteL1Distance) |
| 156 | 156 | |
| 157 | - | |
| 158 | 157 | /*! |
| 159 | 158 | * \ingroup distances |
| 160 | 159 | * \brief Fast 4-bit L1 distance | ... | ... |