FlowEngine 7.530
Photogrammetry Software Development Kit
|
An oriented bounding box. More...
#include <BoundingBoxInterface.h>
Public Member Functions | |
virtual FLE_DLL | ~BoundingBoxInterface ()=default |
Default virtual destructor. | |
virtual FLE_DLL void | getTranslation (Point3 &outTranslation) const =0 |
virtual FLE_DLL void | getHalfSize (Point3 &outHalfSize) const =0 |
virtual FLE_DLL void | getOrientation (Quaternion &outOrientation) const =0 |
virtual FLE_DLL void | setTranslation (const Point3 &translation)=0 |
virtual FLE_DLL void | setHalfSize (const Point3 &halfSize)=0 |
virtual FLE_DLL void | setOrientation (const Quaternion &orientation)=0 |
virtual FLE_DLL Result | computeFromPoints (const SparsePointCloudInterface &pointCloud, bool useOutlierRejection, float additionalExpansionPerc=0.03f)=0 |
virtual FLE_DLL Result | computeFromCameras (const SparsePointCloudInterface &pointCloud, Buffer< CameraInterface * > inCameras, float additionalExpansionPerc=0.1f)=0 |
virtual FLE_DLL Result | exportToXml (ConstStringBuffer filePath) const =0 |
virtual FLE_DLL Result | importFromXml (ConstStringBuffer filePath)=0 |
An oriented bounding box.
Its parameters can be set manually or from a sparse point cloud.
|
virtualdefault |
Default virtual destructor.
|
pure virtual |
Computes a bounding box from cameras and point cloud, assuming an orbit around an object.
[in] | pointCloud | a point cloud with at least 2 points. |
[in] | inCameras | vector of cameras |
[in] | additionalExpansionPerc | Additional expansion factor for the bounding box. Must be >= 0 procedure to discard far camera positions in the bounding box computation. Otherwise, it will use all the points in the point cloud. |
pointCloud
does not contain at least 2 points or additionalExpansionPerc is negative
|
pure virtual |
Computes appropriate bounding parameters from a sparse point cloud points.
[in] | pointCloud | a point cloud with at least 2 points. |
[in] | useOutlierRejection | If set to true, use an outliers rejection |
[in] | additionalExpansionPerc | Additional expansion factor for the bounding box. Must be >= 0 procedure to discard far points in the bounding box computation. Otherwise, it will use all the points in the point cloud. |
pointCloud
does not contain at least 2 points or additionalExpansionPerc is negative
|
pure virtual |
Exports this bounding box parameters to an xml file
[in] | filePath | string buffer containing the utf-8 encoded path to where to save the data |
filePath
is not a valid string buffer.
|
pure virtual |
Returns the half size of the bounding box
[out] | outHalfSize | the bounding box half size |
|
pure virtual |
Returns the orientation of the bounding box (as axis-angle)
[out] | outOrientation | the bounding box orientation |
|
pure virtual |
Returns the translation of the bounding box
[out] | outTranslation | the bounding box translation |
|
pure virtual |
Imports bounding box parameters from an xml file
[in] | filePath | string buffer containing the utf-8 encoded path to where the file is located. |
filePath
is not a valid string buffer.filePath
does not point to an existing file.
|
pure virtual |
Change the half size of the bounding box
[in] | halfSize | the new bounding box half size |
|
pure virtual |
Change the orientation of the bounding box (as axis-angle)
[in] | orientation | the new bounding box orientation |
|
pure virtual |
Change the translation of the bounding box
[in] | translation | the new bounding box translation |