RecFusion SDK
|
#include <Common.h>
float single-channel depth image, where each pixel represents a depth value in mm More...
float single-channel depth image, where each pixel represents a depth value in mm
Public Member Functions | |
DepthImage (int width, int height, float *data=0) | |
Construct image and allocate memory. More... | |
~DepthImage () | |
Destroy image and free allocated memory. | |
int | width () const |
Get image width. | |
int | height () const |
Get image height. | |
float * | data () |
Get pointer to image data. | |
const float * | data () const |
Get const pointer to image data. | |
DepthImage * | alignToColor (ReconstructionParams ¶ms, int sensor) |
DepthImage | ( | int | width, |
int | height, | ||
float * | data = 0 |
||
) |
Construct image and allocate memory.
width | Image width |
height | Image height |
data | Optional pointer to data buffer from which to initialize the image. |
Throws a std::bad_alloc exception when not enough memory for allocating the image is available