LibMultiSense
LibMultiSense Documentation
|
Class used to store a specific camera configuration. More...
#include <MultiSenseTypes.hh>
Public Member Functions | |
void | setResolution (uint32_t w, uint32_t h) |
Set a desired output resolution. More... | |
void | setDisparities (uint32_t d) |
For stereo sensors, set the desired number of disparities used to search for matching features between the left and right images when computing the output disparity image. More... | |
void | setWidth (uint32_t w) |
Set the width of the desired output resolution. More... | |
void | setHeight (uint32_t h) |
Set the height of the desired output resolution. More... | |
void | setFps (float f) |
Set the desired output frames per second. More... | |
void | setGain (float g) |
Set the desired output image's gain. More... | |
void | setExposure (uint32_t e) |
Set the exposure time used to capture images. More... | |
void | setAutoExposure (bool e) |
Set auto-exposure enable flag. More... | |
void | setAutoExposureMax (uint32_t m) |
Set the desired maximum auto-exposure value. More... | |
void | setAutoExposureDecay (uint32_t d) |
Set the desired auto-exposure decay rate. More... | |
void | setAutoExposureTargetIntensity (float d) |
Set the desired auto-exposure target Intensity. More... | |
void | setAutoExposureThresh (float t) |
Set the desired auto-exposure threshold. More... | |
void | setWhiteBalance (float r, float b) |
Set the desired image white-balance. More... | |
void | setAutoWhiteBalance (bool e) |
Set the white-balance enable flag. More... | |
void | setAutoWhiteBalanceDecay (uint32_t d) |
Set the white-balance decay rate. More... | |
void | setAutoWhiteBalanceThresh (float t) |
Set the white-balance threshold. More... | |
void | setStereoPostFilterStrength (float s) |
Set the desired stereo post-filter strength. More... | |
void | setHdr (bool e) |
Set the HDR enable flag. More... | |
void | setAutoExposureRoi (uint16_t start_x, uint16_t start_y, uint16_t width, uint16_t height) |
Set the desired ROI to use when computing the auto-exposure. More... | |
void | setCameraProfile (const CameraProfile &profile) |
Set the operation profile for the camera to use. More... | |
void | setGamma (const float g) |
Set the gamma correction factor. More... | |
uint32_t | width () const |
Query the current image configuration's width. More... | |
uint32_t | height () const |
Query the current image configuration's height. More... | |
uint32_t | disparities () const |
Query the current image configuration's number of disparities. More... | |
float | fps () const |
Query the current image configuration's frames-per-second setting. More... | |
float | gain () const |
Query the current image configuration's gain setting. More... | |
uint32_t | exposure () const |
Query the current image configuration's exposure setting. More... | |
bool | autoExposure () const |
Query the current image configuration's auto-exposure enable setting. More... | |
uint32_t | autoExposureMax () const |
Query the current image configuration's maximum auto-exposure value. More... | |
uint32_t | autoExposureDecay () const |
Query the current image configuration's auto-exposure decay rate. More... | |
float | autoExposureTargetIntensity () const |
Query the current image configuration's auto-exposure target intensity. More... | |
float | autoExposureThresh () const |
Query the current image configuration's auto-exposure threshold. More... | |
float | whiteBalanceRed () const |
Query the current image configuration's red white-balance setting. More... | |
float | whiteBalanceBlue () const |
Query the current image configuration's blue white-balance setting. More... | |
bool | autoWhiteBalance () const |
Query the current image configuration's white-balance enable setting. More... | |
uint32_t | autoWhiteBalanceDecay () const |
Query the current image configuration's white-balance decay rate. More... | |
float | autoWhiteBalanceThresh () const |
Query the current image configuration's white-balance threshold. More... | |
float | stereoPostFilterStrength () const |
Query the current image configuration's stereo post-filter strength. More... | |
bool | hdrEnabled () const |
Query the current image configuration's HDR enable flag. More... | |
uint16_t | autoExposureRoiX () const |
Query the current image configuration's auto-exposure ROI X value. More... | |
uint16_t | autoExposureRoiY () const |
Query the current image configuration's auto-exposure ROI Y value. More... | |
uint16_t | autoExposureRoiWidth () const |
Query the current image configuration's auto-exposure ROI width value Will return crl::multisense::Roi_Full_Image for the default setting, when the ROI covers the entire image regardless of current resolution. More... | |
uint16_t | autoExposureRoiHeight () const |
Query the current image configuration's auto-exposure ROI height value Will return crl::multisense::Roi_Full_Image for the default setting, when the ROI covers the entire image regardless of current resolution. More... | |
CameraProfile | cameraProfile () const |
Query the current image configurations camera profile. More... | |
float | gamma () const |
Query the gamma correction factor. More... | |
float | fx () const |
Query the current camera calibrations rectified projection focal length in the x dimension. More... | |
float | fy () const |
Query the current camera calibrations rectified projection focal length in the y dimension. More... | |
float | cx () const |
Query the current camera calibrations left rectified image center in the x dimension. More... | |
float | cy () const |
Query the current camera calibrations left rectified image center in the y dimension. More... | |
float | tx () const |
Query the current camera calibrations stereo baseline. More... | |
float | ty () const |
Query the current camera calibrations stereo baseline. More... | |
float | tz () const |
Query the current camera calibrations stereo baseline. More... | |
float | roll () const |
Query the current camera calibrations roll value. More... | |
float | pitch () const |
Query the current camera calibrations pitch value. More... | |
float | yaw () const |
Query the current camera calibrations yaw value. More... | |
Config () | |
Default constructor for a image configuration. More... | |
Protected Attributes | |
float | m_fx |
float | m_fy |
float | m_cx |
float | m_cy |
float | m_tx |
float | m_ty |
float | m_tz |
float | m_roll |
float | m_pitch |
float | m_yaw |
Private Attributes | |
float | m_fps |
float | m_gain |
ExposureConfig | m_exposure |
float | m_wbBlue |
float | m_wbRed |
bool | m_wbEnabled |
uint32_t | m_wbDecay |
float | m_wbThresh |
uint32_t | m_width |
uint32_t | m_height |
uint32_t | m_disparities |
float | m_spfStrength |
bool | m_hdrEnabled |
CameraProfile | m_profile |
float | m_gamma |
Class used to store a specific camera configuration.
Members in this class are set via get and set methods. The class is used as an input to a channel object to query or set camera parameters.
Example code to query an image configuration:
Example code to set an image configurations:
Definition at line 790 of file MultiSenseTypes.hh.
|
inline |
Default constructor for a image configuration.
Initializes all image configuration members to their default values
Definition at line 1316 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure enable setting.
Definition at line 1063 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure decay rate.
Definition at line 1079 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's maximum auto-exposure value.
Definition at line 1071 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure ROI height value Will return crl::multisense::Roi_Full_Image for the default setting, when the ROI covers the entire image regardless of current resolution.
Definition at line 1182 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure ROI width value Will return crl::multisense::Roi_Full_Image for the default setting, when the ROI covers the entire image regardless of current resolution.
Definition at line 1173 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure ROI X value.
Definition at line 1157 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure ROI Y value.
Definition at line 1164 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure target intensity.
Definition at line 1087 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's auto-exposure threshold.
Definition at line 1095 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's white-balance enable setting.
Definition at line 1119 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's white-balance decay rate.
Definition at line 1127 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's white-balance threshold.
Definition at line 1135 of file MultiSenseTypes.hh.
|
inline |
Query the current image configurations camera profile.
Definition at line 1189 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations left rectified image center in the x dimension.
Note this value is scaled based on the current image resolution
Definition at line 1236 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations left rectified image center in the y dimension.
Note this value is scaled based on the current image resolution
Definition at line 1248 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's number of disparities.
Definition at line 1031 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's exposure setting.
Definition at line 1055 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's frames-per-second setting.
Definition at line 1039 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations rectified projection focal length in the x dimension.
Note this value is scaled based on the current image resolution
Definition at line 1213 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations rectified projection focal length in the y dimension.
Note this value is scaled based on the current image resolution
Definition at line 1224 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's gain setting.
Definition at line 1046 of file MultiSenseTypes.hh.
|
inline |
Query the gamma correction factor.
Gamma correction factor will be applied to all images.
Definition at line 1197 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's HDR enable flag.
Definition at line 1150 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's height.
Definition at line 1022 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations pitch value.
This is the Euler pitch angle to rotate the right camera frame into the left camera frame. For rectified images this value will be 0.
Definition at line 1300 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations roll value.
This is the Euler roll angle to rotate the right camera frame into the left camera frame. For rectified images this value will be 0.
Definition at line 1290 of file MultiSenseTypes.hh.
|
inline |
Set auto-exposure enable flag.
Default value: true
e | A boolean used to enable or disable auto-exposure |
Definition at line 870 of file MultiSenseTypes.hh.
|
inline |
Set the desired auto-exposure decay rate.
Default value: 7
d | The auto-exposure decay rate [0, 20] |
Definition at line 886 of file MultiSenseTypes.hh.
|
inline |
Set the desired maximum auto-exposure value.
Default value: 5000000
m | The maximum auto-exposure value in microseconds |
Definition at line 878 of file MultiSenseTypes.hh.
|
inline |
Set the desired ROI to use when computing the auto-exposure.
x axis is horizontal and y axis is vertical. (0,0) coordinate starts in the upper left corner of the image. If (x + w > image width) or (y + h > image height) the sensor will return an error Setting to default:(0,0,crl::multisense::Roi_Full_Image,crl::multisense::Roi_Full_Image) will use the entire image for the ROI regardless of the current resolution This feature is only available in sensor firmware version 4.3 and greater
start_x | The X coordinate where the ROI starts |
start_y | The Y coordinate where the ROI starts |
width | The width of the ROI |
height | The height of the ROI |
Definition at line 980 of file MultiSenseTypes.hh.
|
inline |
Set the desired auto-exposure target Intensity.
Default value: 0.95
d | The auto-exposure target intensity [0.0, 1.0] |
Definition at line 894 of file MultiSenseTypes.hh.
|
inline |
Set the desired auto-exposure threshold.
This is the percentage of the image that should be white. Default value: 0.75
t | The desired auto-exposure threshold [0.0, 1.0] |
Definition at line 903 of file MultiSenseTypes.hh.
|
inline |
Set the white-balance enable flag.
Default value: true
e | A boolean used to enable or disable white-balance |
Definition at line 923 of file MultiSenseTypes.hh.
|
inline |
Set the white-balance decay rate.
Default value: 3
d | The white-balance decay rate [0, 20] |
Definition at line 931 of file MultiSenseTypes.hh.
|
inline |
Set the white-balance threshold.
Default value: 0.5
t | The desired white-balance threshold [0.0, 1.0] |
Definition at line 939 of file MultiSenseTypes.hh.
|
inline |
Set the operation profile for the camera to use.
Profile settings subsume other user settings.
profile | The operation profile to use on the camera |
Definition at line 990 of file MultiSenseTypes.hh.
|
inline |
For stereo sensors, set the desired number of disparities used to search for matching features between the left and right images when computing the output disparity image.
Default value: 128
d | The number of disparities |
Definition at line 816 of file MultiSenseTypes.hh.
|
inline |
Set the exposure time used to capture images.
Note auto exposure must be disabled for this to take effect. Default value: 10000
e | The output exposure time in microseconds [10, 5000000] |
Definition at line 862 of file MultiSenseTypes.hh.
|
inline |
Set the desired output frames per second.
Default value: 5
f | The desired frames per second |
Definition at line 845 of file MultiSenseTypes.hh.
|
inline |
Set the desired output image's gain.
Default value: 1
g | The output image gain |
Definition at line 853 of file MultiSenseTypes.hh.
|
inline |
Set the gamma correction factor.
Gamma is a nonlinear operation used to encode and decode luminance. Typical values for gamma range between 1 and 2.2.
g | the gamma constant applied to the camera sources |
Definition at line 1003 of file MultiSenseTypes.hh.
|
inline |
Set the HDR enable flag.
This feature is only available in sensor firmware version greater than 3.1. Default value: false. Note enabling HDR will disable image white balance. It may also degrade the stereo performance. It is advised to manually tune exposure and gain settings to achieve desired performance.
e | A boolean used to enable or disable HDR on the camera imagers |
Definition at line 963 of file MultiSenseTypes.hh.
|
inline |
Set the height of the desired output resolution.
Default value: 544
h | The new resolution's height |
Definition at line 834 of file MultiSenseTypes.hh.
|
inline |
Set a desired output resolution.
Default value: 1024x544
w | The new resolutions width |
h | The new resolutions height |
Definition at line 804 of file MultiSenseTypes.hh.
|
inline |
Set the desired stereo post-filter strength.
This is used to filter low confidence stereo data before it is sent to the host. Larger numbers indicate more aggressive filtering. This feature is only available on sensor firmware versions greater than 3.0. Default value: 0.5
s | The desired stereo post-filter strength [0.0, 1.0] |
Definition at line 951 of file MultiSenseTypes.hh.
|
inline |
Set the desired image white-balance.
Default value: 1.0 for both r and b
r | The input read white-balance value [0.25, 4.0] |
b | The input blue white-balance value [0.25, 4.0] |
Definition at line 914 of file MultiSenseTypes.hh.
|
inline |
Set the width of the desired output resolution.
Default value: 1024
w | The new resolution's width |
Definition at line 825 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's stereo post-filter strength.
Definition at line 1143 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations stereo baseline.
This is the component of the vector in the x dimension which points from the right rectified camera frame to the left rectified camera frame
Definition at line 1258 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations stereo baseline.
This is the component of the vector in the y dimension which points from the right rectified camera frame to the left rectified camera frame. For rectified images this value will be 0.
Definition at line 1269 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations stereo baseline.
This is the component of the vector in the z dimension which points from the right rectified frame center to the left rectified camera frame. For rectified images this value will be 0.
Definition at line 1280 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's blue white-balance setting.
Definition at line 1111 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's red white-balance setting.
Definition at line 1103 of file MultiSenseTypes.hh.
|
inline |
Query the current image configuration's width.
Definition at line 1014 of file MultiSenseTypes.hh.
|
inline |
Query the current camera calibrations yaw value.
This is the Euler yaw angle to rotate the right camera frame into the left camera frame. For rectified images this value will be 0.
Definition at line 1310 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1343 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1343 of file MultiSenseTypes.hh.
|
private |
Definition at line 1335 of file MultiSenseTypes.hh.
|
private |
Definition at line 1328 of file MultiSenseTypes.hh.
|
private |
Definition at line 1324 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1343 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1343 of file MultiSenseTypes.hh.
|
private |
Definition at line 1327 of file MultiSenseTypes.hh.
|
private |
Definition at line 1339 of file MultiSenseTypes.hh.
|
private |
Definition at line 1337 of file MultiSenseTypes.hh.
|
private |
Definition at line 1334 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1345 of file MultiSenseTypes.hh.
|
private |
Definition at line 1338 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1345 of file MultiSenseTypes.hh.
|
private |
Definition at line 1336 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1344 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1344 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1344 of file MultiSenseTypes.hh.
|
private |
Definition at line 1329 of file MultiSenseTypes.hh.
|
private |
Definition at line 1332 of file MultiSenseTypes.hh.
|
private |
Definition at line 1331 of file MultiSenseTypes.hh.
|
private |
Definition at line 1330 of file MultiSenseTypes.hh.
|
private |
Definition at line 1333 of file MultiSenseTypes.hh.
|
private |
Definition at line 1334 of file MultiSenseTypes.hh.
|
protected |
Definition at line 1345 of file MultiSenseTypes.hh.