#include <point_cloud.h>
Public Member Functions | |
point_cloud (const options &opts, const calibration &_calib) | |
virtual bool | read_background (const std::string &depth_background) |
bool | refresh (bool goto_next=true) |
vector3 | bg_normal (const size_t i) const |
Protected Attributes | |
const std::string | input_template |
The point_cloud class gives access to point data generated by a stereo camera. Specifically it provides access to 3D points.
point_cloud::point_cloud | ( | const options & | opts, | |
const calibration & | _calib | |||
) | [inline] |
Constructor for the point_cloud class. The constructor initialises some variables, but does not actually read any data. The 'refresh' function is used to actually read data.
[in] | opts | An object of class options that contains configuration information. The point_cloud constructor reads the following options:
|
[in] | _calib | A calibration object describing the used coordinate systems. |
vector3 point_cloud::bg_normal | ( | const size_t | i | ) | const [inline] |
Return the surface normal of one 3D point in the background. This operation is currently not supported in this class.
[in] | i | The index of the point you want to read. |
virtual bool point_cloud::read_background | ( | const std::string & | depth_background | ) | [inline, virtual] |
Attempt to read information about the scene background. You need to implement this function in derived classes.
Reimplemented from cloud3.
bool point_cloud::refresh | ( | bool | goto_next = true |
) | [inline, virtual] |
Reads data for the next frame. You should call this function when you are ready to move on to the next frame.
[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 cloud< point_vector >.
Reimplemented in cloud_and_stick< point_cloud >.
const std::string point_cloud::input_template [protected] |