Parameters for Stereo-like devices. More...
#include <stereo_camera_model.h>
Public Member Functions | |
SensorModel::Parameters * | clone () const |
polymorphic clone method More... | |
const Eigen::Vector3f & | getPaddingCoefficients () const |
returns the coefficients that are required for obtaining the padding for meshes More... | |
Parameters (unsigned width, unsigned height, float near_clipping_plane_distance, float far_clipping_plane_distance, float fx, float fy, float cx, float cy, float base_line, float disparity_resolution) | |
Constructor. More... | |
void | setBaseline (float base_line) |
sets the base line = distance of the two projective devices (camera, projector-camera) More... | |
void | setCameraParameters (float fx, float fy, float cx, float cy) |
sets the camera parameters of the pinhole camera where the disparities were obtained. Usually the left camera More... | |
void | setDisparityResolution (float disparity_resolution) |
the quantization of disparity values in pixels. Usually 1/16th or 1/8th for OpenNI compatible devices More... | |
void | setFilterParameters (GLRenderer &renderer) const |
set the shader parameters required for the mesh filtering More... | |
void | setRenderParameters (GLRenderer &renderer) const |
set the shader parameters required for the model rendering More... | |
~Parameters () | |
Descturctor. More... | |
Public Member Functions inherited from mesh_filter::SensorModel::Parameters | |
float | getFarClippingPlaneDistance () const |
returns the distance to the far clipping plane More... | |
unsigned | getHeight () const |
returns the height of depth maps More... | |
float | getNearClippingPlaneDistance () const |
returns distance to the near clipping plane More... | |
unsigned | getWidth () const |
returns the width of depth maps More... | |
Parameters (unsigned width, unsigned height, float near_clipping_plane_distance, float far_clipping_plane_distance) | |
Constructor taking core parameters that are required for all sensors. More... | |
void | setDepthRange (float near, float far) |
sets the clipping range More... | |
void | setImageSize (unsigned width, unsigned height) |
sets the image size More... | |
virtual void | transformFilteredDepthToMetricDepth (float *depth) const |
transforms depth values from filtered depth to metric depth values More... | |
virtual void | transformModelDepthToMetricDepth (float *depth) const |
transforms depth values from rendered model to metric depth values More... | |
Private Attributes | |
float | base_line_ |
distance of the two projective devices that are used to determine the disparities More... | |
float | cx_ |
x component of principal point More... | |
float | cy_ |
y component of principal point More... | |
float | disparity_resolution_ |
resolution/quantization of disparity values More... | |
float | fx_ |
focal length in x-direction More... | |
float | fy_ |
focal length in y-direction More... | |
const Eigen::Vector3f | padding_coefficients_ |
padding coefficients More... | |
Additional Inherited Members | |
Protected Attributes inherited from mesh_filter::SensorModel::Parameters | |
float | far_clipping_plane_distance_ |
distance of far clipping plane More... | |
unsigned | height_ |
height of depth maps generated by the sensor More... | |
float | near_clipping_plane_distance_ |
distance of near clipping plane More... | |
unsigned | width_ |
width of depth maps generated by the sensor More... | |
Parameters for Stereo-like devices.
Definition at line 56 of file stereo_camera_model.h.
mesh_filter::StereoCameraModel::Parameters::Parameters | ( | unsigned | width, |
unsigned | height, | ||
float | near_clipping_plane_distance, | ||
float | far_clipping_plane_distance, | ||
float | fx, | ||
float | fy, | ||
float | cx, | ||
float | cy, | ||
float | base_line, | ||
float | disparity_resolution | ||
) |
Constructor.
[in] | width | width of generated depth maps from this device |
[in] | height | height of generated depth maps from this device |
[in] | near_clipping_plane_distance | distance of near clipping plane |
[in] | far_clipping_plane_distance | distance of far clipping plene |
[in] | fx | focal length in x-direction |
[in] | fy | focal length in y-direction |
[in] | cx | x component of principal point |
[in] | cy | y component of principal point |
[in] | base_line | the distance in meters used to determine disparity values |
[in] | disparity_resolution | resolution/quantization of disparity values in pixels |
Definition at line 42 of file stereo_camera_model.cpp.
|
virtual |
Descturctor.
Reimplemented from mesh_filter::SensorModel::Parameters.
Definition at line 57 of file stereo_camera_model.cpp.
|
virtual |
polymorphic clone method
Implements mesh_filter::SensorModel::Parameters.
Definition at line 61 of file stereo_camera_model.cpp.
|
virtual |
returns the coefficients that are required for obtaining the padding for meshes
Implements mesh_filter::SensorModel::Parameters.
Definition at line 98 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setBaseline | ( | float | base_line | ) |
sets the base line = distance of the two projective devices (camera, projector-camera)
[in] | base_line | the distance in meters |
Definition at line 75 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setCameraParameters | ( | float | fx, |
float | fy, | ||
float | cx, | ||
float | cy | ||
) |
sets the camera parameters of the pinhole camera where the disparities were obtained. Usually the left camera
[in] | fx | focal length in x-direction |
[in] | fy | focal length in y-direction |
[in] | cx | x component of principal point |
[in] | cy | y component of principal point |
Definition at line 67 of file stereo_camera_model.cpp.
void mesh_filter::StereoCameraModel::Parameters::setDisparityResolution | ( | float | disparity_resolution | ) |
the quantization of disparity values in pixels. Usually 1/16th or 1/8th for OpenNI compatible devices
disparity_resolution |
Definition at line 80 of file stereo_camera_model.cpp.
|
virtual |
set the shader parameters required for the mesh filtering
[in] | renderer | the renderer that holds the filtering shader |
Implements mesh_filter::SensorModel::Parameters.
Definition at line 103 of file stereo_camera_model.cpp.
|
virtual |
set the shader parameters required for the model rendering
[in] | renderer | the renderer that holds the rendering shader. |
Implements mesh_filter::SensorModel::Parameters.
Definition at line 85 of file stereo_camera_model.cpp.
|
private |
distance of the two projective devices that are used to determine the disparities
Definition at line 139 of file stereo_camera_model.h.
|
private |
x component of principal point
Definition at line 133 of file stereo_camera_model.h.
|
private |
y component of principal point
Definition at line 136 of file stereo_camera_model.h.
|
private |
resolution/quantization of disparity values
Definition at line 142 of file stereo_camera_model.h.
|
private |
focal length in x-direction
Definition at line 127 of file stereo_camera_model.h.
|
private |
focal length in y-direction
Definition at line 130 of file stereo_camera_model.h.
|
private |
padding coefficients
Definition at line 148 of file stereo_camera_model.h.