YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
IDepthVisualParams.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6#ifndef YARP_DEV_IDEPTHVISUALPARAMS_H
7#define YARP_DEV_IDEPTHVISUALPARAMS_H
8
9#include <yarp/dev/api.h>
10#include <yarp/os/Property.h>
11
12namespace yarp::dev {
13
20{
21public:
23
28 virtual int getDepthHeight() = 0;
29
34 virtual int getDepthWidth() = 0;
35
42 virtual bool setDepthResolution(int width, int height) = 0;
43
51 virtual bool getDepthFOV(double& horizontalFov, double& verticalFov) = 0;
52
60 virtual bool setDepthFOV(double horizontalFov, double verticalFov) = 0;
61
88 virtual bool getDepthIntrinsicParam(yarp::os::Property& intrinsic) = 0;
89
94 virtual double getDepthAccuracy() = 0;
95
101 virtual bool setDepthAccuracy(double accuracy) = 0;
102
112 virtual bool getDepthClipPlanes(double& nearPlane, double& farPlane) = 0;
113
123 virtual bool setDepthClipPlanes(double nearPlane, double farPlane) = 0;
124
131 virtual bool getDepthMirroring(bool& mirror) = 0;
132
139 virtual bool setDepthMirroring(bool mirror) = 0;
140};
141
142} // namespace yarp::dev
143
144#endif // YARP_DEV_IDEPTHVISUALPARAMS_H
An interface for retrieving intrinsic parameter from a depth camera.
virtual bool setDepthMirroring(bool mirror)=0
Set the mirroring setting of the sensor.
virtual double getDepthAccuracy()=0
Get the minimum detectable variation in distance [meter].
virtual bool setDepthAccuracy(double accuracy)=0
Set the minimum detectable variation in distance [meter] when possible.
virtual int getDepthWidth()=0
Return the height of each frame.
virtual bool getDepthIntrinsicParam(yarp::os::Property &intrinsic)=0
Get the intrinsic parameters of the depth camera.
virtual bool getDepthFOV(double &horizontalFov, double &verticalFov)=0
Get the field of view (FOV) of the depth camera.
virtual bool setDepthFOV(double horizontalFov, double verticalFov)=0
Set the field of view (FOV) of the depth camera.
virtual bool setDepthClipPlanes(double nearPlane, double farPlane)=0
Set the clipping planes of the sensor.
virtual bool getDepthClipPlanes(double &nearPlane, double &farPlane)=0
Get the clipping planes of the sensor.
virtual bool getDepthMirroring(bool &mirror)=0
Get the mirroring setting of the sensor.
virtual int getDepthHeight()=0
Return the height of each frame.
virtual bool setDepthResolution(int width, int height)=0
Set the resolution of the depth image from the camera.
A class for storing options and configuration information.
Definition Property.h:33
For streams capable of holding different kinds of content, check what they actually have.
constexpr char accuracy[]
#define YARP_dev_API
Definition api.h:18