FlowEngine  4.301
Photogrammetry Software Development Kit
FlowEngine::CamerasLoaderInterface Class Referenceabstract

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. More...

#include <CamerasLoaderInterface.h>

Public Member Functions

virtual FLE_DLL ~CamerasLoaderInterface ()=default
 Default virtual destructor. More...
 
virtual FLE_DLL Size getImageCount (ConstStringBuffer directoryPath) const =0
 
virtual FLE_DLL Size getMaskCount (ConstStringBuffer directoryPath) const =0
 
virtual FLE_DLL Size getXMPCount (ConstStringBuffer directoryPath) const =0
 
virtual FLE_DLL Result loadImages (ConstStringBuffer directoryPath, bool groupCalibrations, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadImages (Buffer< ConstStringBuffer > imagesPath, bool groupCalibrations, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadImagesPaths (ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadImagesPaths (Buffer< ConstStringBuffer > imagesPath, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadMasks (ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadMasks (Buffer< ConstStringBuffer > imagesPath, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadXMP (ConstStringBuffer directoryPath, Buffer< CameraInterface * > outCameras) const =0
 
virtual FLE_DLL Result loadXMP (Buffer< ConstStringBuffer > imagesPath, Buffer< CameraInterface * > outCameras) const =0
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ~CamerasLoaderInterface()

virtual FLE_DLL FlowEngine::CamerasLoaderInterface::~CamerasLoaderInterface ( )
virtualdefault

Default virtual destructor.

Member Function Documentation

◆ getImageCount()

virtual FLE_DLL Size FlowEngine::CamerasLoaderInterface::getImageCount ( ConstStringBuffer  directoryPath) const
pure virtual
Returns
the number of images available in the specific folder
Parameters
[in]directoryPathpointer to a string that receives UTF-8 directory path

◆ getMaskCount()

virtual FLE_DLL Size FlowEngine::CamerasLoaderInterface::getMaskCount ( ConstStringBuffer  directoryPath) const
pure virtual
Returns
the number of masks file available in the specific folder
Parameters
[in]directoryPathpointer to a string that receives UTF-8 directory path

◆ getXMPCount()

virtual FLE_DLL Size FlowEngine::CamerasLoaderInterface::getXMPCount ( ConstStringBuffer  directoryPath) const
pure virtual
Returns
the number of XMP files in the current folder
Parameters
[in]directoryPathpointer to a string that receives UTF-8 directory path

◆ loadImages() [1/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadImages ( ConstStringBuffer  directoryPath,
bool  groupCalibrations,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load images from a folder and fill the passed in cameras. This method will also initialize and create camera calibrations.

Parameters
[in]directoryPathbuffer containing the path of the folder containing the images
[in]groupCalibrationswhen true, cameras with the same calibration will be grouped together (i.e. will point to the same calibration), otherwise each camera will have its own calibration.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information

◆ loadImages() [2/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadImages ( Buffer< ConstStringBuffer imagesPath,
bool  groupCalibrations,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load images from a list of absolute or relative paths. This method will also initialize and create camera calibrations.

Parameters
[in]imagesPathbuffer containing a list of full paths to be loaded.
[in]groupCalibrationswhen true, cameras with the same calibration will be grouped together (i.e. will point to the same calibration), otherwise each camera will have its own calibration.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information. Buffer length must be equal to imagesPath length.

◆ loadImagesPaths() [1/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadImagesPaths ( ConstStringBuffer  directoryPath,
Buffer< CameraInterface * >  outCameras 
) const
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.

Parameters
[in]directoryPathbuffer containing a folder containing images to be loaded.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information. Buffer length must be equal to imagesPath length.

◆ loadImagesPaths() [2/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadImagesPaths ( Buffer< ConstStringBuffer imagesPath,
Buffer< CameraInterface * >  outCameras 
) const
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.

Parameters
[in]imagesPathbuffer containing a list of full paths to be loaded.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information. Buffer length must be equal to imagesPath length.

◆ loadMasks() [1/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadMasks ( ConstStringBuffer  directoryPath,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load masks from a folder and fill the passed in cameras

Parameters
[in]directoryPathbuffer containing the path of the folder containing the images
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information

◆ loadMasks() [2/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadMasks ( Buffer< ConstStringBuffer imagesPath,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load masks from a list of absolute or relative paths

Parameters
[in]imagesPathbuffer containing a list of full paths to be loaded.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information

◆ loadXMP() [1/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadXMP ( ConstStringBuffer  directoryPath,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load xmp parameters from a folder and fill the passed in cameras

Parameters
[in]directoryPathbuffer containing the path of the folder containing the images
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information

◆ loadXMP() [2/2]

virtual FLE_DLL Result FlowEngine::CamerasLoaderInterface::loadXMP ( Buffer< ConstStringBuffer imagesPath,
Buffer< CameraInterface * >  outCameras 
) const
pure virtual

Load xmp parameters from a list of absolute or relative paths

Parameters
[in]imagesPathbuffer containing a list of full paths to be loaded.
[in,out]outCamerasa buffer of initialized Camera objects that will be filled with image information