#include <WorkspaceExportUtils.h>
◆ ImageDistortionType
| Enumerator |
|---|
| Distorted | |
| Undistorted | |
| UndistortedInternal | |
| UndistortedFull | |
◆ exportJsonNerf()
Exports a set of cameras to a nerf file structure (json + images folder).
- Parameters
-
| [in] | path | the base directory where to save the data. A 'json-nerf' subfolder will be created inside this directory. |
| [in] | cameras | a buffer of pointers to the cameras to export. |
| [in] | camerasOffset | a 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] | distortionType | the type of distortion to apply to the exported images. |
| [in] | imageScale | a scale factor to apply to the exported images. Use 1.0 for no scaling. |
| [in] | boundingBox | the bounding box to export. |
| [in] | progressBar | an 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.