ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccDepthBuffer Class Reference

Sensor "depth map". More...

#include <ecvDepthBuffer.h>

Public Member Functions

 ccDepthBuffer ()
 Default constructor. More...
 
virtual ~ccDepthBuffer ()
 Destructor. More...
 
void clear ()
 Clears the buffer. More...
 
int fillHoles ()
 

Public Attributes

std::vector< PointCoordinateType > zBuff
 Z-Buffer grid. More...
 
PointCoordinateType deltaPhi
 Pitch step (may differ from the sensor's) More...
 
PointCoordinateType deltaTheta
 Yaw step (may differ from the sensor's) More...
 
unsigned width
 Buffer width. More...
 
unsigned height
 Buffer height. More...
 

Detailed Description

Sensor "depth map".

Contains an array of depth values (along each scanned direction) and its dimensions. This array corresponds roughly to what have been "seen" by the sensor during acquisition (the 3D points are simply projected in the sensor frame).

Constructor & Destructor Documentation

◆ ccDepthBuffer()

ccDepthBuffer::ccDepthBuffer ( )

Default constructor.

◆ ~ccDepthBuffer()

ccDepthBuffer::~ccDepthBuffer ( )
virtual

Destructor.

References clear().

Member Function Documentation

◆ clear()

void ccDepthBuffer::clear ( )

Clears the buffer.

References deltaPhi, deltaTheta, height, width, and zBuff.

Referenced by ccGBLSensor::clearDepthBuffer(), and ~ccDepthBuffer().

◆ fillHoles()

int ccDepthBuffer::fillHoles ( )

Applies a mean filter to fill small holes (= lack of information) of the depth map. The depth buffer must have been created before (see GroundBasedLidarSensor::computeDepthBuffer).

Returns
a negative value if an error occurs, 0 otherwise

References height, width, x, y, z, and zBuff.

Referenced by ccGBLSensor::computeDepthBuffer().

Member Data Documentation

◆ deltaPhi

PointCoordinateType ccDepthBuffer::deltaPhi

Pitch step (may differ from the sensor's)

Referenced by clear(), ccGBLSensor::computeDepthBuffer(), and ccGBLSensor::convertToDepthMapCoords().

◆ deltaTheta

PointCoordinateType ccDepthBuffer::deltaTheta

Yaw step (may differ from the sensor's)

Referenced by clear(), ccGBLSensor::computeDepthBuffer(), and ccGBLSensor::convertToDepthMapCoords().

◆ height

◆ width

◆ zBuff


The documentation for this class was generated from the following files: