RecFusion SDK
DepthImage Class Reference

#include <Common.h>

float single-channel depth image, where each pixel represents a depth value in mm More...

Detailed Description

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.
 
DepthImagealignToColor (ReconstructionParams &params, int sensor)
 

Constructor & Destructor Documentation

◆ DepthImage()

DepthImage ( int  width,
int  height,
float *  data = 0 
)

Construct image and allocate memory.

Parameters
widthImage width
heightImage height
dataOptional 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


The documentation for this class was generated from the following file:
Search Tab / S to search, Esc to close