![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
#include <pba.h>

Public Types | |
| enum | StatusT { STATUS_SUCCESS = 0 , STATUS_CAMERA_MISSING = 1 , STATUS_POINT_MISSING , STATUS_PROJECTION_MISSING , STATUS_MEASURMENT_MISSING , STATUS_ALLOCATION_FAIL } |
| enum | DeviceT { PBA_INVALID_DEVICE = -4 , PBA_CPU_DOUBLE = -3 , PBA_CPU_FLOAT = -2 , PBA_CUDA_DEVICE_DEFAULT = -1 , PBA_CUDA_DEVICE0 = 0 } |
| enum | DistortionT { PBA_MEASUREMENT_DISTORTION = -1 , PBA_NO_DISTORTION = 0 , PBA_PROJECTION_DISTORTION = 1 } |
| enum | BundleModeT { BUNDLE_FULL = 0 , BUNDLE_ONLY_MOTION = 1 , BUNDLE_ONLY_STRUCTURE = 2 } |
Public Member Functions | |
| virtual void | ParseParam (int narg, char **argv) |
| virtual void | SetFixedIntrinsics (bool fixed) |
| virtual void | EnableRadialDistortion (DistortionT type) |
| virtual void | SetNextTimeBudget (int seconds) |
| virtual void | ReserveStorage (size_t ncam, size_t npt, size_t nproj) |
| void | SetFocalLengthFixed (bool fixed) |
| void | ResetBundleStorage () |
| virtual void | SetCameraData (size_t ncam, CameraT *cams) |
| virtual void | SetPointData (size_t npoint, Point3D *pts) |
| virtual void | SetProjection (size_t nproj, const Point2D *imgpts, const int *point_idx, const int *cam_idx) |
| virtual void | SetNextBundleMode (BundleModeT mode=BUNDLE_FULL) |
| virtual int | RunBundleAdjustment () |
| virtual float | GetMeanSquaredError () |
| virtual void | AbortBundleAdjustment () |
| virtual int | GetCurrentIteration () |
| ParallelBA (DeviceT device=PBA_CUDA_DEVICE_DEFAULT, const int num_threads=-1) | |
| void * | operator new (size_t size) |
| virtual | ~ParallelBA () |
| virtual void | SetFocalMask (const int *fmask, float weight=1.0f) |
| pba::ParallelBA::ParallelBA | ( | DeviceT | device = PBA_CUDA_DEVICE_DEFAULT, |
| const int | num_threads = -1 |
||
| ) |
Definition at line 29 of file pba.cpp.
References pba::SparseBundleCU::GetMemCapacity(), pba::NewSparseBundleCPU(), NULL, PBA_CPU_DOUBLE, PBA_CPU_FLOAT, PBA_CUDA_DEVICE0, and PBA_CUDA_DEVICE_DEFAULT.
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 107 of file pba.cpp.
References AbortBundleAdjustment().
Referenced by AbortBundleAdjustment().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 73 of file pba.cpp.
References EnableRadialDistortion().
Referenced by EnableRadialDistortion().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 104 of file pba.cpp.
References GetCurrentIteration().
Referenced by GetCurrentIteration().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 100 of file pba.cpp.
References GetMeanSquaredError().
Referenced by GetMeanSquaredError().
| void * pba::ParallelBA::operator new | ( | size_t | size | ) |
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 59 of file pba.cpp.
References ParseParam().
Referenced by ParseParam().
|
virtual |
Reimplemented in pba::SparseBundleCU.
Definition at line 111 of file pba.cpp.
References ReserveStorage().
Referenced by ReserveStorage(), and ResetBundleStorage().
|
inline |
Definition at line 101 of file pba.h.
References ReserveStorage().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 96 of file pba.cpp.
References RunBundleAdjustment().
Referenced by RunBundleAdjustment().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 84 of file pba.cpp.
References SetCameraData().
Referenced by SetCameraData().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 70 of file pba.cpp.
References SetFixedIntrinsics().
Referenced by SetFixedIntrinsics(), and SetFocalLengthFixed().
|
inline |
Definition at line 100 of file pba.h.
References SetFixedIntrinsics().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 115 of file pba.cpp.
References SetFocalMask().
Referenced by SetFocalMask().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 80 of file pba.cpp.
References SetNextBundleMode().
Referenced by SetNextBundleMode().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 76 of file pba.cpp.
References seconds, and SetNextTimeBudget().
Referenced by SetNextTimeBudget().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 88 of file pba.cpp.
References SetPointData().
Referenced by SetPointData().
|
virtual |
Reimplemented in pba::SparseBundleCU, and pba::SparseBundleCPU< Float >.
Definition at line 92 of file pba.cpp.
References SetProjection().
Referenced by SetProjection().