FlowEngine 8.031
Photogrammetry Software Development Kit
Loading...
Searching...
No Matches
FlowEngine::WorkspaceExportUtils Class Reference

#include <WorkspaceExportUtils.h>

Public Types

enum class  ImageDistortionType { Distorted , Undistorted , UndistortedInternal , UndistortedFull }
 

Static Public Member Functions

static FLE_DLL Result exportJsonNerf (ConstStringBuffer path, ConstBuffer< CameraInterface * > cameras, ConstBuffer< Point2 > camerasOffset, ImageDistortionType distortionType, double imageScale, const BoundingBoxInterface &boundingBox, ProgressBarInterface &progressBar)
 

Member Enumeration Documentation

◆ ImageDistortionType

Enumerator
Distorted 
Undistorted 
UndistortedInternal 
UndistortedFull 

Member Function Documentation

◆ exportJsonNerf()

Result FlowEngine::WorkspaceExportUtils::exportJsonNerf ( ConstStringBuffer  path,
ConstBuffer< CameraInterface * >  cameras,
ConstBuffer< Point2 camerasOffset,
ImageDistortionType  distortionType,
double  imageScale,
const BoundingBoxInterface boundingBox,
ProgressBarInterface progressBar 
)
static

Exports a set of cameras to a nerf file structure (json + images folder).

Parameters
[in]paththe base directory where to save the data. A 'json-nerf' subfolder will be created inside this directory.
[in]camerasa buffer of pointers to the cameras to export.
[in]camerasOffseta buffer of 2D offsets to be applied to each camera center before exporting. Pass an empty buffer for no offsets. When specified, the size of this buffer must match the size of cameras.
[in]distortionTypethe type of distortion to apply to the exported images.
[in]imageScalea scale factor to apply to the exported images. Use 1.0 for no scaling.
[in]boundingBoxthe bounding box to export.
[in]progressBaran optional progress bar to update during the export process.
Returns
One of the following result codes:
  • Result::Success – if the export was successful.
  • Result::InvalidArgument
    • if path is not a valid string buffer or the directory does not exist.
    • if cameras is empty or contains null pointers.
    • if camerasOffset is not empty and its size does not match the size of cameras.
  • Result::DiskWriteError – if the operating system reported a write error.
  • Result::GenericError – if any other error occurred. Check the log for more information.