FlowEngine 7.530
Photogrammetry Software Development Kit
|
Utility class to load and setup cameras from a specific folder. More...
#include <CamerasLoaderInterface.h>
Public Member Functions | |
virtual FLE_DLL | ~CamerasLoaderInterface ()=default |
Default virtual destructor. | |
virtual FLE_DLL Size | getImageCount (ConstStringBuffer directoryPath, bool recursive=true) const =0 |
virtual FLE_DLL Size | getMaskCount (ConstStringBuffer directoryPath, bool recursive=true) const =0 |
virtual FLE_DLL Size | getXMPCount (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 | loadImages (Buffer< ConstStringBuffer > imagesPath, bool groupCalibrations, Buffer< CameraInterface * > outCameras, ProgressBarInterface *progressBar=nullptr) const =0 |
virtual FLE_DLL Result | loadImagesPaths (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 Result | loadMasks (Buffer< ConstStringBuffer > masksPaths, const SettingsInterface &settings, Buffer< CameraInterface * > outCameras) const =0 |
virtual FLE_DLL Result | loadXMP (ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras, bool recursive=true) const =0 |
virtual FLE_DLL Result | loadXMP (Buffer< ConstStringBuffer > filePaths, Buffer< CameraInterface * > outCameras) const =0 |
virtual FLE_DLL Result | loadGPSfromExif (ConstStringBuffer directoryPath, Buffer< Point3 > outGPS, bool recursive=true, ProgressBarInterface *progressBar=nullptr) const =0 |
virtual FLE_DLL Result | loadGPSfromExif (Buffer< ConstStringBuffer > imagesPath, Buffer< Point3 > outGPS, ProgressBarInterface *progressBar=nullptr) const =0 |
virtual FLE_DLL Result | fetchCalibrationsFrom3DFServer (Buffer< CameraInterface * > outCameras, LogListenerInterface &logListener) const =0 |
Utility class to load and setup cameras from a specific folder.
This class will optionally setup also cameras parameters from XMP and BIM masks files when available.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Load the camera calibrations from the 3Dflow server. This feature is not available in the Free version of FlowEngine.
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with the calibrations parameters. |
[in] | logListener | the log listener interface to write the log information. |
outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.
|
pure virtual |
[in] | directoryPath | pointer to a string that receives UTF-8 directory path |
[in] | recursive | set to true to make a recursive sub folder search |
|
pure virtual |
[in] | directoryPath | pointer to a string that receives UTF-8 directory path |
[in] | recursive | set to true to make a recursive sub folder search |
|
pure virtual |
[in] | directoryPath | pointer to a string that receives UTF-8 directory path |
[in] | recursive | set to true to make a recursive sub folder search |
|
pure virtual |
Load xmp parameters from a list of absolute or relative paths.
[in] | imagesPath | buffer of string buffers each with a UTF-8 encoded path to an xmp file. |
[in,out] | outGPS | a buffer of initialized Point3. If the image doesn't contain any gps information, the value is set to NaN. |
[in] | progressBar | (optional) a pointer to a ProgressBar that receives progress updates |
filePaths
is not a valid buffer of string buffers.filePaths
is not a valid string buffer.outGPS
size is smaller than the number of xmp files.
|
pure virtual |
Load gps (latitude, longitude, altitude) parameters from a folder and fill the passed in outGPS.
[in] | directoryPath | buffer containing the path of the folder containing the images |
[in,out] | outGPS | a buffer of initialized Point3. If the image doesn't contain any gps information, the value is set to NaN. |
[in] | recursive | set to true to make a recursive sub folder search |
[in] | progressBar | (optional) a pointer to a ProgressBar that receives progress updates |
directoryPath
were loaded successfully.directoryPath
is not a valid string buffer.outGPS
size is smaller than the number of xmp files in the specified directory.
|
pure virtual |
Load images from a list of absolute or relative paths. This method will also create and initialize camera calibrations. This method won't keep the previous frame when setting a new path.
[in] | imagesPath | buffer of string buffers each containing an UTF-8 encoded path to an image. |
[in] | groupCalibrations | when true, cameras with the same calibration will be grouped together (i.e. will point to the same calibration objhect), otherwise each camera will have its own (possibly duplicated) calibration. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with image information. Buffer length must be equal to imagesPath length. |
[in] | progressBar | (optional) a pointer to a ProgressBar that receives progress updates |
|
pure virtual |
Load images from a folder and fill the passed-in cameras. This method will also create and initialize camera calibrations. This method won't keep the previous frame when setting a new path.
[in] | directoryPath | string buffer containing the UTF-8 encoded path to the folder containing the images. |
[in] | groupCalibrations | when true, cameras with the same calibration will be grouped together (i.e. will point to the same calibration object), otherwise each camera will have its own (possibly duplicated) calibration. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with image information. |
[in] | recursive | set to true to make a recursive sub folder search |
[in] | progressBar | (optional) a pointer to a ProgressBar that receives progress updates |
directoryPath
were loaded successfully.directoryPath
is an invalid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
is not big enough to hold all the images in directoryPath
.directoryPath
does not point to an existing directory.
|
pure virtual |
Load images from a list of absolute or relative paths. This method won't create any camera calibration. It should be called when reusing an already set calibration. This method will keep the previous frame when setting a new path, please look at CameraInterface::loadImage for further details.
[in] | imagesPath | buffer of string buffers containing the image paths. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with image information. Buffer length must be equal to imagesPath length. |
directoryPath
were loaded successfully.imagesPath
is not a valid buffer of string buffers.imagesPath
is not a valid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
is not big enough to hold all the images in directoryPath
.directoryPath
does not point to an existing directory.
|
pure virtual |
Load images from a list of absolute or relative paths. This method won't create any camera calibration. It should be called when reusing an already set calibration. This method will keep the previous frame when setting a new path. Please look at CameraInterface::loadImage for further details.
[in] | directoryPath | string buffer containing the UTF-8 encoded path to the folder containing the images. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with image information. Buffer length must be equal to imagesPath length. |
[in] | recursive | set to true to make a recursive sub folder search |
directoryPath
were loaded successfully.directoryPath
is an invalid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
is not big enough to hold all the images in directoryPath
.directoryPath
does not point to an existing directory.
|
pure virtual |
Load masks from a list of absolute or relative paths and fill the passed in cameras with that information.
[in] | masksPaths | buffer of string buffers each containing a UTF-8 encoded path to a mask file. |
[in] | settings | the settings that will be queried for configuration parameters. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with the mask information |
filePaths
is not a valid buffer of string buffers.filePaths
is not a valid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
size is smaller than the number of mask files.
|
pure virtual |
Load masks from a folder and fill the passed in cameras with that information.
[in] | directoryPath | string buffer containing the UTF-8 path to the folder containing the masks. |
[in] | settings | the settings that will be queried for configuration parameters. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with the mask information. |
[in] | recursive | set to true to make a recursive sub folder search |
directoryPath
were loaded successfully.directoryPath
is not a valid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
size is smaller than the number of mask files in the specified directory.
|
pure virtual |
Load xmp parameters from a list of absolute or relative paths.
[in] | filePaths | buffer of string buffers each with a UTF-8 encoded path to an xmp file. |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with the parameters from the xmp file. |
filePaths
is not a valid buffer of string buffers.filePaths
is not a valid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
size is smaller than the number of xmp files.
|
pure virtual |
Load xmp parameters from a folder and fill the passed in cameras.
[in] | directoryPath | buffer containing the path of the folder containing the images |
[in,out] | outCameras | a buffer of initialized CameraInterface objects that will be filled with the parameters from the xmp file. |
[in] | recursive | set to true to make a recursive sub folder search |
directoryPath
were loaded successfully.directoryPath
is not a valid string buffer.outCameras
is an invalid CameraInterface * buffer or any instance in the buffer is invalid.outCameras
size is smaller than the number of xmp files in the specified directory.