Control interface for frame grabber devices. More...
#include <yarp/dev/IFrameGrabberControls.h>
Public Member Functions | |
virtual | ~IFrameGrabberControls () |
Destructor. | |
std::string | busType2String (BusType type) |
FeatureMode | toFeatureMode (bool _auto) |
virtual bool | getCameraDescription (CameraDescriptor *camera)=0 |
Get a basic description of the camera hw. | |
virtual bool | hasFeature (int feature, bool *hasFeature)=0 |
Check if camera has the requested feature (saturation, brightness ... ) | |
virtual bool | setFeature (int feature, double value)=0 |
Set the requested feature to a value (saturation, brightness ... ) | |
virtual bool | getFeature (int feature, double *value)=0 |
Get the current value for the requested feature. | |
virtual bool | setFeature (int feature, double value1, double value2)=0 |
Set the requested feature to a value using 2 params (like white balance) | |
virtual bool | getFeature (int feature, double *value1, double *value2)=0 |
Get the current value for the requested feature. | |
virtual bool | hasOnOff (int feature, bool *HasOnOff)=0 |
Check if the camera has the ability to turn on/off the requested feature. | |
virtual bool | setActive (int feature, bool onoff)=0 |
Set the requested feature on or off. | |
virtual bool | getActive (int feature, bool *isActive)=0 |
Get the current status of the feature, on or off. | |
virtual bool | hasAuto (int feature, bool *hasAuto)=0 |
Check if the requested feature has the 'auto' mode. | |
virtual bool | hasManual (int feature, bool *hasManual)=0 |
Check if the requested feature has the 'manual' mode. | |
virtual bool | hasOnePush (int feature, bool *hasOnePush)=0 |
Check if the requested feature has the 'onePush' mode. | |
virtual bool | setMode (int feature, FeatureMode mode)=0 |
Set the requested mode for the feature. | |
virtual bool | getMode (int feature, FeatureMode *mode)=0 |
Get the current mode for the feature. | |
virtual bool | setOnePush (int feature)=0 |
Set the requested feature to a value (saturation, brightness ... ) | |
Control interface for frame grabber devices.
Definition at line 67 of file IFrameGrabberControls.h.
|
virtualdefault |
Destructor.
|
inline |
Definition at line 75 of file IFrameGrabberControls.h.
|
pure virtual |
Get the current status of the feature, on or off.
feature | the identifier of the feature to check |
isActive | flag true if the feature is active, false otherwise |
Implemented in V4L_camera, argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, and USBCameraDriver.
|
pure virtual |
Get a basic description of the camera hw.
This is mainly used to determine the HW bus type in order to choose the corresponding interface for advanced controls.
device | returns an identifier for the bus |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Get the current value for the requested feature.
feature | the identifier of the feature to read |
value | pointer to current value of the feature, from 0 to 1 expressed as a percentage |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Get the current value for the requested feature.
feature | the identifier of the feaature to read |
value1 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
value2 | returns the current value of the feature, from 0 to 1 expressed as a percentage |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Get the current mode for the feature.
feature | the identifier of the feature to change |
hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Check if the requested feature has the 'auto' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'auto' mode, false otherwise |
Implemented in V4L_camera, argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, and USBCameraDriver.
|
pure virtual |
Check if camera has the requested feature (saturation, brightness ... )
feature | the identifier of the feature to check |
hasFeature | flag value: true if the feature is present, false otherwise |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Check if the requested feature has the 'manual' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'manual' mode, false otherwise |
Implemented in V4L_camera, argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, and USBCameraDriver.
|
pure virtual |
Check if the requested feature has the 'onePush' mode.
feature | the identifier of the feature to check |
hasAuto | flag true if the feature is has 'onePush' mode, false otherwise |
Implemented in V4L_camera, argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, and USBCameraDriver.
|
pure virtual |
Check if the camera has the ability to turn on/off the requested feature.
feature | the identifier of the feature to change |
hasOnOff | flag true if this feature can be turned on/off, false otherwise. |
Implemented in V4L_camera, argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, and USBCameraDriver.
|
pure virtual |
Set the requested feature on or off.
feature | the identifier of the feature to change |
onoff | true to activate, off to deactivate the feature |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Set the requested feature to a value (saturation, brightness ... )
feature | the identifier of the feature to change |
value | new value of the feature, range from 0 to 1 expressed as a percentage |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Set the requested feature to a value using 2 params (like white balance)
feature | the identifier of the feature to change |
value1 | first param, from 0 to 1 expressed as a percentage |
value2 | second param, from 0 to 1 expressed as a percentage |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Set the requested mode for the feature.
feature | the identifier of the feature to change |
auto_onoff | true to activate 'auto' mode, false to activate 'manual' mode |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
pure virtual |
Set the requested feature to a value (saturation, brightness ... )
feature | the identifier of the feature to change |
value | new value of the feature, from 0 to 1 as a percentage of param range |
Implemented in argusCameraDriver, pylonCameraDriver, realsense2Driver, UltraPythonDriver, IFrameGrabberControlsMock, FakeFrameGrabber, FrameGrabberCropper, yarp::proto::framegrabber::FrameGrabberControls_Forwarder, depthCameraDriver, USBCameraDriver, and V4L_camera.
|
inline |
Definition at line 92 of file IFrameGrabberControls.h.