AliceVision
Photogrammetric Computer Vision Framework
types.hpp
1 // This file is part of the AliceVision project.
2 // Copyright (c) 2016 AliceVision contributors.
3 // This Source Code Form is subject to the terms of the Mozilla Public License,
4 // v. 2.0. If a copy of the MPL was not distributed with this file,
5 // You can obtain one at https://mozilla.org/MPL/2.0/.
6 
7 #pragma once
8 
9 #include <cstdint>
10 #include <limits>
11 #include <map>
12 #include <set>
13 #include <vector>
14 
15 namespace aliceVision {
16 
17 typedef uint32_t IndexT;
18 static const IndexT UndefinedIndexT = std::numeric_limits<IndexT>::max();
19 
20 typedef std::pair<IndexT, IndexT> Pair;
21 typedef std::set<Pair> PairSet;
22 typedef std::vector<Pair> PairVec;
23 
25 {
26  EstimationStatus(bool valid, bool strongSupport)
27  : isValid(valid),
28  hasStrongSupport(strongSupport)
29  {}
30 
31  bool isValid = false;
32  bool hasStrongSupport = false;
33 };
34 
38 enum class EEstimatorParameterState : std::uint8_t
39 {
40  REFINED = 0, //< will be adjusted by the estimator
41  CONSTANT = 1, //< will be set as constant in the estimator
42  IGNORED = 2 //< will not be set into the estimator
43 };
44 
45 } // namespace aliceVision
aliceVision::EEstimatorParameterState
EEstimatorParameterState
Defines the state of a parameter for an estimator.
Definition: types.hpp:38
aliceVision::EstimationStatus
Definition: types.hpp:24
aliceVision
Definition: checkerDetector.cpp:32