forked from alicevision/AliceVision
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparseDatabase.hpp
More file actions
37 lines (30 loc) · 1.23 KB
/
parseDatabase.hpp
File metadata and controls
37 lines (30 loc) · 1.23 KB
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
33
34
35
36
37
// This file is part of the AliceVision project.
// Copyright (c) 2016 AliceVision contributors.
// Copyright (c) 2012 openMVG contributors.
// This Source Code Form is subject to the terms of the Mozilla Public License,
// v. 2.0. If a copy of the MPL was not distributed with this file,
// You can obtain one at https://mozilla.org/MPL/2.0/.
#pragma once
#include <aliceVision/sensorDB/Datasheet.hpp>
#include <vector>
#include <string>
namespace aliceVision {
namespace sensorDB {
/**
* @brief Parse the given sensor database
* @param[in] databaseFilePath The file path of the given database
* @param[out] databaseStructure The database in memory
* @return True if ok
*/
bool parseDatabase(const std::string& databaseFilePath, std::vector<Datasheet>& databaseStructure);
/**
* @brief Get information for the given camera brand / model
* @param[in] brand The camera brand
* @param[in] model The camera model
* @param[in] databaseStructure The database in memory
* @param[out] datasheetContent The corresponding datasheet
* @return True if ok
*/
bool getInfo(const std::string& brand, const std::string& model, const std::vector<Datasheet>& databaseStructure, Datasheet& datasheetContent);
} // namespace sensorDB
} // namespace aliceVision