Simulated Reality SDK 7500c78d v1.30.2.51085 2024-04-26T11:23:03Z
Stable
|
Interface defining camera functions to control sensor parameters. More...
#include <cameracontroller.h>
Public Member Functions | |
virtual void | setShuttertime (float shutterTime)=0 |
Set camera shutter / exposure time in seconds. More... | |
virtual void | setGain (float gain)=0 |
Set camera gain. More... | |
virtual float | getShuttertime ()=0 |
Get current shutter / exposure time in seconds. More... | |
virtual float | getGain ()=0 |
Get current camera gain factor. More... | |
Static Public Member Functions | |
static void | addImplementation (CameraControlFunction *controlFunction, std::string cameraType) |
Static function to make a CameraController implementation available through the CameraController::control function. More... | |
static UniqueCameraController | control (Camera *camera) |
Attempt to gain control of camera sensor. More... | |
Interface defining camera functions to control sensor parameters.
|
static |
Static function to make a CameraController implementation available through the CameraController::control function.
controlFunction | is one of the functions that can be called when CameraController::control is called for a camera of the right type |
cameraType | indicates when this controlFunction should be used |
|
static |
Attempt to gain control of camera sensor.
camera | refers to a Camera instance that has already been created |
CameraControllerUnavailableException | if the camera is already being controlled or if the camera can not be controlled |
|
pure virtual |
Get current camera gain factor.
A higher gain will produce brighter images but may affect image quality. Values produced by the sensor are multiplied by a factor derived from this gain value Implementations may vary.
Implemented in SR::UniqueCameraController.
|
pure virtual |
Get current shutter / exposure time in seconds.
A higher shutter time will produce brighter images but may increase latency. The effectiveness of changing the shutter time is also dependent on the aperture of the camera.
Implemented in SR::UniqueCameraController.
|
pure virtual |
Set camera gain.
A higher gain will produce brighter images but may affect image quality. Values produced by the sensor are multiplied by a factor derived from this gain value. Implementations may vary.
Implemented in SR::UniqueCameraController.
|
pure virtual |
Set camera shutter / exposure time in seconds.
A higher shutter time will produce brighter images but may increase latency. The effectiveness of changing the shutter time is also dependent on the aperture of the camera.
shutterTime | in seconds |
Implemented in SR::UniqueCameraController.