|
libfreenect2 0.4
Open source driver for the Kinect for Windows v2 (K4W2) sensor
|
Conventional extrinsic/projective depth registration. More...
#include <libfreenect2/projective_registration.h>
Public Member Functions | |
| ~ProjectiveRegistration () | |
| const ProjectiveCameraModel & | targetCamera () const |
| const ProjectiveRegistrationOptions & | options () const |
| bool | apply (const Frame &depth, Frame ®istered_depth, std::string *error=nullptr) const |
| Register decoded float depth into a preallocated float target frame. | |
Static Public Member Functions | |
| static std::unique_ptr< ProjectiveRegistration > | create (const CalibrationProfile &profile, const ProjectiveCameraModel &target, const ProjectiveRegistrationOptions &options=ProjectiveRegistrationOptions(), std::string *error=nullptr) |
Conventional extrinsic/projective depth registration.
Unlike Registration, this class consumes ordinary camera matrices and a rigid depth-to-color transform. The factory-calibrated polynomial mapping remains available through Registration.
| ~ProjectiveRegistration | ( | ) |
|
static |
References options().
| const ProjectiveCameraModel & targetCamera | ( | ) | const |
| const ProjectiveRegistrationOptions & options | ( | ) | const |
Referenced by create().
Register decoded float depth into a preallocated float target frame.
Output pixels contain target-camera Z in millimeters. Missing pixels are zero. Calls are thread-safe when the caller supplies distinct outputs. Each calling thread reuses scratch buffers sized to the target raster, so steady-state use performs no per-frame allocation; retained capacity is bounded, and targets much larger than the Kinect color raster release their scratch after each call instead.