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< PointCoordinateTypezBuff
 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).

Definition at line 25 of file ecvDepthBuffer.h.

Constructor & Destructor Documentation

◆ ccDepthBuffer()

ccDepthBuffer::ccDepthBuffer ( )

Default constructor.

Definition at line 15 of file ecvDepthBuffer.cpp.

◆ ~ccDepthBuffer()

ccDepthBuffer::~ccDepthBuffer ( )
virtual

Destructor.

Definition at line 24 of file ecvDepthBuffer.cpp.

References clear().

Member Function Documentation

◆ clear()

void ccDepthBuffer::clear ( )

Clears the buffer.

Definition at line 18 of file ecvDepthBuffer.cpp.

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

Definition at line 26 of file ecvDepthBuffer.cpp.

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)

Definition at line 35 of file ecvDepthBuffer.h.

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

◆ deltaTheta

PointCoordinateType ccDepthBuffer::deltaTheta

Yaw step (may differ from the sensor's)

Definition at line 37 of file ecvDepthBuffer.h.

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

◆ height

◆ width

◆ zBuff


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