FlowEngine 7.530
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
CamerasLoaderInterface.h
Go to the documentation of this file.
1/*
2 *
3 * C@@o ____ _____ __ _
4 * oC8@@@@@@@o |___ \| __ \ / _| |
5 * o@@@@@@@@@@@@O __) | | | | |_| | _____ __
6 * O@O 8@@@@@@@@@O |__ <| | | | _| |/ _ \ \ /\ / /
7 * o@@@@@@@O OOOOOCo ___) | |__| | | | | (_) \ V V /
8 * C@@@@@@@@@@@@Oo |____/|_____/|_| |_|\___/ \_/\_/
9 * o8@@@@@@@@@@@@@@@@8OOCCCC
10 * oO@@@@@@@@@@@@@@@@@@@o 3Dflow s.r.l. - www.3dflow.net
11 * oO8@@@@@@@@@@@@o Copyright 2022
12 * oO88@@@@@@@@8OCo All Rights Reserved
13 * O@@@@@@@@@@@@@@@@@@@@@@@@@8OCCoooooooCCo
14 * @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@O
15 * @@@Oo oO8@@@@@@@@@@@@@@@@8
16 *
17 */
18
19#ifndef FLOWENGINECAMERASLOADER_H
20#define FLOWENGINECAMERASLOADER_H
21
22#pragma once
23
24#include "CommonDef.h"
25
26#include "CameraInterface.h"
29#include "StereoMeshInterface.h"
32
33namespace FlowEngine
34{
40 {
41 public:
42
44 FLE_DLL virtual ~CamerasLoaderInterface() = default;
45
46 public:
47
51 FLE_DLL virtual Size getImageCount( ConstStringBuffer directoryPath, bool recursive = true ) const = 0;
52
56 FLE_DLL virtual Size getMaskCount( ConstStringBuffer directoryPath, bool recursive = true ) const = 0;
57
61 FLE_DLL virtual Size getXMPCount( ConstStringBuffer directoryPath, bool recursive = true ) const = 0;
62
82 FLE_DLL virtual Result loadImages( ConstStringBuffer directoryPath,
83 bool groupCalibrations,
85 bool recursive = true,
86 ProgressBarInterface *progressBar = nullptr ) const = 0;
87
98 FLE_DLL virtual Result loadImages( Buffer< ConstStringBuffer > imagesPath,
99 bool groupCalibrations,
101 ProgressBarInterface *progressBar = nullptr ) const = 0;
102
119 FLE_DLL virtual Result loadImagesPaths( ConstStringBuffer directoryPath,
121 bool recursive = true ) const = 0;
122
141 Buffer< CameraInterface * > outCameras ) const = 0;
142
155 FLE_DLL virtual Result loadMasks( ConstStringBuffer directoryPath,
156 const SettingsInterface &settings,
158 bool recursive = true ) const = 0;
159
173 FLE_DLL virtual Result loadMasks( Buffer< ConstStringBuffer > masksPaths,
174 const SettingsInterface &settings,
175 Buffer< CameraInterface * > outCameras ) const = 0;
176
188 FLE_DLL virtual Result loadXMP( ConstStringBuffer directoryPath,
190 bool recursive = true ) const = 0;
191
204 FLE_DLL virtual Result loadXMP( Buffer< ConstStringBuffer > filePaths,
205 Buffer< CameraInterface * > outCameras ) const = 0;
206
218 FLE_DLL virtual Result loadGPSfromExif( ConstStringBuffer directoryPath,
219 Buffer< Point3 > outGPS,
220 bool recursive = true,
221 ProgressBarInterface *progressBar = nullptr ) const = 0;
222
236 Buffer< Point3 > outGPS,
237 ProgressBarInterface *progressBar = nullptr ) const = 0;
238
248 FLE_DLL virtual Result fetchCalibrationsFrom3DFServer( Buffer< CameraInterface * > outCameras, LogListenerInterface& logListener ) const = 0;
249 };
250
254
258}
259
260#endif
#define FLOWENGINE_FACTORY
Definition: CommonDef.h:32
Utility class to load and setup cameras from a specific folder.
Definition: CamerasLoaderInterface.h:40
virtual FLE_DLL Result loadGPSfromExif(Buffer< ConstStringBuffer > imagesPath, Buffer< Point3 > outGPS, ProgressBarInterface *progressBar=nullptr) const =0
virtual FLE_DLL Result loadMasks(Buffer< ConstStringBuffer > masksPaths, const SettingsInterface &settings, Buffer< CameraInterface * > outCameras) const =0
virtual FLE_DLL Size getMaskCount(ConstStringBuffer directoryPath, bool recursive=true) const =0
virtual FLE_DLL Result fetchCalibrationsFrom3DFServer(Buffer< CameraInterface * > outCameras, LogListenerInterface &logListener) const =0
virtual FLE_DLL ~CamerasLoaderInterface()=default
Default virtual destructor.
virtual FLE_DLL Result loadGPSfromExif(ConstStringBuffer directoryPath, Buffer< Point3 > outGPS, bool recursive=true, ProgressBarInterface *progressBar=nullptr) const =0
virtual FLE_DLL Result loadXMP(ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras, bool recursive=true) const =0
virtual FLE_DLL Result loadImagesPaths(Buffer< ConstStringBuffer > imagesPath, Buffer< CameraInterface * > outCameras) const =0
virtual FLE_DLL Result loadMasks(ConstStringBuffer directoryPath, const SettingsInterface &settings, Buffer< CameraInterface * > outCameras, bool recursive=true) const =0
virtual FLE_DLL Size getXMPCount(ConstStringBuffer directoryPath, bool recursive=true) const =0
virtual FLE_DLL Size getImageCount(ConstStringBuffer directoryPath, bool recursive=true) const =0
virtual FLE_DLL Result loadImages(ConstStringBuffer directoryPath, bool groupCalibrations, Buffer< CameraInterface * > outCameras, bool recursive=true, ProgressBarInterface *progressBar=nullptr) const =0
virtual FLE_DLL Result loadXMP(Buffer< ConstStringBuffer > filePaths, Buffer< CameraInterface * > outCameras) const =0
virtual FLE_DLL Result loadImagesPaths(ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras, bool recursive=true) const =0
virtual FLE_DLL Result loadImages(Buffer< ConstStringBuffer > imagesPath, bool groupCalibrations, Buffer< CameraInterface * > outCameras, ProgressBarInterface *progressBar=nullptr) const =0
Pure virtual Log Listener interface.
Definition: LogListenerInterface.h:41
Pure virtual Progress Bar interface.
Definition: ProgressBarInterface.h:32
Stores the processing settings.
Definition: SettingsInterface.h:32
Definition: BoundingBoxInterface.cpp:26
CamerasLoaderInterface * CreateCamerasLoader()
Definition: CamerasLoaderInterface.cpp:27
void DestroyCamerasLoader(CamerasLoaderInterface *CamerasLoader)
Definition: CamerasLoaderInterface.cpp:32
std::size_t Size
Size type.
Definition: CommonDef.h:103
Result
Enumerates possible results generated by FlowEngine.
Definition: CommonDef.h:45
Holds a (mutable) non_owning pointer and a size Used to marshal memory buffers as arguments in a safe...
Definition: CommonDef.h:118
Specialization for a const buffer characters.
Definition: CommonDef.h:296