blob: 802f09c46071d9fbe58848d2c4bb690c5b698c7d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#pragma once
#include "search/result.hpp"
#include "search/search_quality/sample.hpp"
#include <cstdint>
#include <limits>
#include <vector>
class FeatureType;
namespace search
{
class FeatureLoader;
class Matcher
{
public:
static size_t constexpr kInvalidId = std::numeric_limits<size_t>::max();
explicit Matcher(FeatureLoader & loader);
void Match(std::vector<Sample::Result> const & golden, std::vector<Result> const & actual,
std::vector<size_t> & goldenMatching, std::vector<size_t> & actualMatching);
bool Matches(Sample::Result const & golden, FeatureType & ft);
bool Matches(Sample::Result const & golden, Result const & actual);
private:
FeatureLoader & m_loader;
};
} // namespace search
|