An interface for retrieving intrinsic parameter from a depth camera.
More...
#include <yarp/dev/IVisualParams.h>
An interface for retrieving intrinsic parameter from a depth camera.
Definition at line 182 of file IVisualParams.h.
◆ ~IDepthVisualParams()
virtual yarp::dev::IDepthVisualParams::~IDepthVisualParams |
( |
| ) |
|
|
inlinevirtual |
◆ getDepthAccuracy()
virtual double yarp::dev::IDepthVisualParams::getDepthAccuracy |
( |
| ) |
|
|
pure virtual |
◆ getDepthClipPlanes()
virtual bool yarp::dev::IDepthVisualParams::getDepthClipPlanes |
( |
double & |
nearPlane, |
|
|
double & |
farPlane |
|
) |
| |
|
pure virtual |
◆ getDepthFOV()
virtual bool yarp::dev::IDepthVisualParams::getDepthFOV |
( |
double & |
horizontalFov, |
|
|
double & |
verticalFov |
|
) |
| |
|
pure virtual |
◆ getDepthHeight()
virtual int yarp::dev::IDepthVisualParams::getDepthHeight |
( |
| ) |
|
|
pure virtual |
◆ getDepthIntrinsicParam()
virtual bool yarp::dev::IDepthVisualParams::getDepthIntrinsicParam |
( |
yarp::os::Property & |
intrinsic | ) |
|
|
pure virtual |
Get the intrinsic parameters of the depth camera.
- Parameters
-
intrinsic | return a Property containing intrinsic parameters of the optical model of the camera. |
- Returns
- true if success
The yarp::os::Property describing the intrinsic parameters is expected to be in the form:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
physFocalLength | - | double | m | - | Yes | Physical focal length of the lens in meters | |
focalLengthX | - | double | pixel | - | Yes | Horizontal component of the focal length as a multiple of pixel width | |
focalLengthY | - | double | pixel | - | Yes | Vertical component of the focal length as a multiple of pixel height | |
principalPointX | - | double | pixel | - | Yes | X coordinate of the principal point | |
principalPointY | - | double | pixel | - | Yes | Y coordinate of the principal point | |
retificationMatrix | - | 4x4 double matrix | - | - | Yes | Matrix that describes the lens' distortion | |
distortionModel | - | string | - | - | Yes | Reference to group of parameters describing the distortion model of the camera, example 'cameraDistortionModelGroup' | This is another group's name to be searched for in the config file |
cameraDistortionModelGroup | | | | | | | |
| name | string | - | - | Yes | Name of the distortion model, see notes | right now only 'plumb_bob' is supported |
| k1 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| k2 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| k3 | double | - | - | Yes | Radial distortion coefficient of the lens | |
| t1 | double | - | - | Yes | Tangential distortion of the lens | |
| t2 | double | - | - | Yes | Tangential distortion of the lens | |
Implemented in yarp::dev::IRGBDSensor, yarp::dev::Implement_DepthVisualParams_Sender, RGBDSensorClient, RGBDSensorFromRosTopic, fakeDepthCameraDriver, and depthCameraDriver.
◆ getDepthMirroring()
virtual bool yarp::dev::IDepthVisualParams::getDepthMirroring |
( |
bool & |
mirror | ) |
|
|
pure virtual |
◆ getDepthWidth()
virtual int yarp::dev::IDepthVisualParams::getDepthWidth |
( |
| ) |
|
|
pure virtual |
◆ setDepthAccuracy()
virtual bool yarp::dev::IDepthVisualParams::setDepthAccuracy |
( |
double |
accuracy | ) |
|
|
pure virtual |
◆ setDepthClipPlanes()
virtual bool yarp::dev::IDepthVisualParams::setDepthClipPlanes |
( |
double |
nearPlane, |
|
|
double |
farPlane |
|
) |
| |
|
pure virtual |
◆ setDepthFOV()
virtual bool yarp::dev::IDepthVisualParams::setDepthFOV |
( |
double |
horizontalFov, |
|
|
double |
verticalFov |
|
) |
| |
|
pure virtual |
◆ setDepthMirroring()
virtual bool yarp::dev::IDepthVisualParams::setDepthMirroring |
( |
bool |
mirror | ) |
|
|
pure virtual |
◆ setDepthResolution()
virtual bool yarp::dev::IDepthVisualParams::setDepthResolution |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: