#include <cloud.h>
Public Member Functions | |
cloud (const options &opts, const calibration &_calib) | |
~cloud () | |
virtual bool | refresh (bool goto_next=true)=0 |
virtual size_t | size () const =0 |
virtual void | show () const =0 |
Protected Attributes | |
int | frame |
const double | scale |
bool | use_depth_threshold |
double | depth_threshold |
const calibration & | calib |
An abstract class for representing data from a stereo camera. The template parameter controls the type of observation the camera generates. Examples of such observations include 3D points and triangles in 3D.
The data should internally be represented in the world coordinate system rather than the camera coordinate system.
cloud< observation_type >::cloud | ( | const options & | opts, | |
const calibration & | _calib | |||
) | [inline] |
Constructor for the cloud class. The constructor initialises some variables, but does not actually read any data.
[in] | opts | An object of class options that contains configuration information. The cloud constructor reads the following options:
|
[in] | _calib | A reference to the calibration object defining the coordinate systems of the world. |
virtual bool cloud< observation_type >::refresh | ( | bool | goto_next = true |
) | [pure virtual] |
Reads data from the next frame. This function should be implemented by a class inheriting from the cloud class.
[in] | goto_next | This optional parameter determines if the next frame should be read (default) or the current frame should be re-read. The latter is useful if you have changed parameters of the point_cloud object, such as the translation or rotation of the data. |
Implements observation< observation_type >.
Implemented in kinect_cloud, mocap_data< observation_type >, point_cloud, triclops_cloud, cloud_and_stick< point_cloud >, and mocap_data< cloud_type >.
virtual void cloud< observation_type >::show | ( | ) | const [pure virtual] |
Draw the data currently held in the object. This function must be implemented by a class inheriting from cloud.
Implements observation< observation_type >.
Implemented in cloud3, kinect_cloud, mocap_data< observation_type >, cloud_and_stick< point_cloud >, and mocap_data< cloud_type >.
virtual size_t cloud< observation_type >::size | ( | ) | const [pure virtual] |
Implemented in cloud3, mocap_data< observation_type >, and mocap_data< cloud_type >.
const calibration& cloud< observation_type >::calib [protected] |
double cloud< observation_type >::depth_threshold [protected] |
bool cloud< observation_type >::use_depth_threshold [protected] |