MVE - Multi-View Environment mve-devel
Loading...
Searching...
No Matches
exhaustive_matching.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2015, Simon Fuhrmann
3 * TU Darmstadt - Graphics, Capture and Massively Parallel Computing
4 * All rights reserved.
5 *
6 * This software may be modified and distributed under the terms
7 * of the BSD 3-Clause license. See the LICENSE.txt file for details.
8 */
9
10#ifndef SFM_EXHAUSTIVE_MATCHING_HEADER
11#define SFM_EXHAUSTIVE_MATCHING_HEADER
12
13#include "sfm/bundler_common.h"
14#include "sfm/defines.h"
15#include "sfm/matching_base.h"
17#include "sfm/sift.h"
18#include "sfm/surf.h"
19
20/* Whether to use floating point or 8-bit descriptors for matching. */
21#define DISCRETIZE_DESCRIPTORS 1
22
24
26{
27public:
28 ~ExhaustiveMatching (void) override = default;
29
31 void init (bundler::ViewportList* viewports) override;
32
34 void pairwise_match (int view_1_id, int view_2_id,
35 Matching::Result* result) const override;
36
42 int pairwise_match_lowres (int view_1_id, int view_2_id,
43 std::size_t num_features) const override;
44
45protected:
46#if DISCRETIZE_DESCRIPTORS
49#else
52#endif
53
55 void init_sift (SiftDescriptors* dst, Sift::Descriptors const& src);
56 void init_surf (SurfDescriptors* dst, Surf::Descriptors const& src);
57
63 typedef std::vector<ProcessedFeatureSet> ProcessedFeatureSets;
65};
66
68
69#endif /* SFM_EXHAUSTIVE_MATCHING_HEADER */
70
util::AlignedMemory< math::Vec64s, 16 > SurfDescriptors
~ExhaustiveMatching(void) override=default
std::vector< ProcessedFeatureSet > ProcessedFeatureSets
ProcessedFeatureSets processed_feature_sets
util::AlignedMemory< math::Vec128us, 16 > SiftDescriptors
std::vector< Descriptor > Descriptors
Definition sift.h:153
std::vector< Descriptor > Descriptors
Definition surf.h:99
std::vector< Viewport > ViewportList
The list of all viewports considered for bundling.
std::vector< T, AlignedAllocator< T, ALIGNMENT > > AlignedMemory
#define SFM_NAMESPACE_END
Definition defines.h:14
#define SFM_NAMESPACE_BEGIN
Definition defines.h:13
Feature matching result reported as two lists, each with indices in the other set.
Definition matching.h:57