#include <MultiSenseTypes.hh>
Public Member Functions | |
bool | autoExposure () const |
uint32_t | autoExposureDecay () const |
uint32_t | autoExposureMax () const |
float | autoExposureThresh () const |
bool | autoWhiteBalance () const |
uint32_t | autoWhiteBalanceDecay () const |
float | autoWhiteBalanceThresh () const |
Config () | |
float | cx () const |
float | cy () const |
uint32_t | disparities () const |
uint32_t | exposure () const |
float | fps () const |
float | fx () const |
float | fy () const |
float | gain () const |
bool | hdrEnabled () const |
uint32_t | height () const |
float | pitch () const |
float | roll () const |
void | setAutoExposure (bool e) |
void | setAutoExposureDecay (uint32_t d) |
void | setAutoExposureMax (uint32_t m) |
void | setAutoExposureThresh (float t) |
void | setAutoWhiteBalance (bool e) |
void | setAutoWhiteBalanceDecay (uint32_t d) |
void | setAutoWhiteBalanceThresh (float t) |
void | setDisparities (uint32_t d) |
void | setExposure (uint32_t e) |
void | setFps (float f) |
void | setGain (float g) |
void | setHdr (bool e) |
void | setHeight (uint32_t h) |
void | setResolution (uint32_t w, uint32_t h) |
void | setStereoPostFilterStrength (float s) |
void | setWhiteBalance (float r, float b) |
void | setWidth (uint32_t w) |
float | stereoPostFilterStrength () const |
float | tx () const |
float | ty () const |
float | tz () const |
float | whiteBalanceBlue () const |
float | whiteBalanceRed () const |
uint32_t | width () const |
float | yaw () const |
Protected Attributes | |
float | m_cx |
float | m_cy |
float | m_fx |
float | m_fy |
float | m_pitch |
float | m_roll |
float | m_tx |
float | m_ty |
float | m_tz |
float | m_yaw |
Private Attributes | |
uint32_t | m_aeDecay |
bool | m_aeEnabled |
uint32_t | m_aeMax |
float | m_aeThresh |
uint32_t | m_disparities |
uint32_t | m_exposure |
float | m_fps |
float | m_gain |
bool | m_hdrEnabled |
uint32_t | m_height |
float | m_spfStrength |
float | m_wbBlue |
uint32_t | m_wbDecay |
bool | m_wbEnabled |
float | m_wbRed |
float | m_wbThresh |
uint32_t | m_width |
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:
{.cpp} // // Instantiate a channel connecting to a sensor at the factory default // IP address crl::multisense::Channel* channel; channel = crl::multisense::Channel::Create("10.66.171.21"); channel->setMtu(7200); // // Create a imageConfig instance to store the queried configuration crl::multisense::image::Config imageConfig; // // Query the image configuration from the Channel instance crl::multisense::Status status = channel->getImageConfig(imageConfig); // // Check to see if the configuration query succeeded if(crl::multisense::Status_Ok != status) { throw std::runtime_error("Unable to query image configuration"); } // // Use the image configuration... // // Destroy the channel instance crl::multisense::Channel::Destroy(channel);
Example code to set an image configurations:
{.cpp} // // Instantiate a channel connecting to a sensor at the factory default // IP address crl::multisense::Channel* channel; channel = crl::multisense::Channel::Create("10.66.171.21"); channel->setMtu(7200); // // Create a imageConfig instance to store the queried configuration crl::multisense::image::Config imageConfig; crl::multisense::Status status; // // Query the image configuration from the Channel instance status = channel->getImageConfig(imageConfig); // // Check to see if the configuration query succeeded if(crl::multisense::Status_Ok != status) { throw std::runtime_error("Unable to query image configuration"); } // // Modify image configuration parameters // Here we increase the frame rate to 30 FPS imageConfig.setFps(30.0); // // Send the new image configuration to the sensor status = channel->setImageConfig(imageConfig); // // Check to see if the configuration was successfully received by the // sensor if(crl::multisense::Status_Ok != status) { throw std::runtime_error("Unable to set image configuration"); } // // Destroy the channel instance crl::multisense::Channel::Destroy(channel);
Definition at line 514 of file MultiSenseTypes.hh.
crl::multisense::image::Config::Config | ( | ) | [inline] |
Default constructor for a image configuration. Initializes all image configuration members to their default values
Definition at line 936 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::autoExposure | ( | ) | const [inline] |
Query the current image configuration's auto-exposure enable setting
Definition at line 736 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::autoExposureDecay | ( | ) | const [inline] |
Query the current image configuration's auto-exposure decay rate
Definition at line 752 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::autoExposureMax | ( | ) | const [inline] |
Query the current image configuration's maximum auto-exposure value
Definition at line 744 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::autoExposureThresh | ( | ) | const [inline] |
Query the current image configuration's auto-exposure threshold
Definition at line 760 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::autoWhiteBalance | ( | ) | const [inline] |
Query the current image configuration's white-balance enable setting
Definition at line 784 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::autoWhiteBalanceDecay | ( | ) | const [inline] |
Query the current image configuration's white-balance decay rate
Definition at line 792 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::autoWhiteBalanceThresh | ( | ) | const [inline] |
Query the current image configuration's white-balance threshold
Definition at line 800 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::cx | ( | ) | const [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 856 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::cy | ( | ) | const [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 868 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::disparities | ( | ) | const [inline] |
Query the current image configuration's number of disparities
Definition at line 704 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::exposure | ( | ) | const [inline] |
Query the current image configuration's exposure setting
Definition at line 728 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::fps | ( | ) | const [inline] |
Query the current image configuration's frames-per-second setting
Definition at line 712 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::fx | ( | ) | const [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 833 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::fy | ( | ) | const [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 844 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::gain | ( | ) | const [inline] |
Query the current image configuration's gain setting
Definition at line 720 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::hdrEnabled | ( | ) | const [inline] |
Query the current image configuration's HDR enable flag
Definition at line 815 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::height | ( | ) | const [inline] |
Query the current image configuration's height
Definition at line 695 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::pitch | ( | ) | const [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 920 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::roll | ( | ) | const [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 910 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoExposure | ( | bool | e | ) | [inline] |
Set auto-exposure enable flag. Default value: true
e | A boolean used to enable or disable auto-exposure |
Definition at line 591 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoExposureDecay | ( | uint32_t | d | ) | [inline] |
Set the desired auto-exposure decay rate. Default value: 7
d | The auto-exposure decay rate [0, 20] |
Definition at line 607 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoExposureMax | ( | uint32_t | m | ) | [inline] |
Set the desired maximum auto-exposure value. Default value: 5000000
m | The maximum auto-exposure value in microseconds |
Definition at line 599 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoExposureThresh | ( | float | t | ) | [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 616 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoWhiteBalance | ( | bool | e | ) | [inline] |
Set the white-balance enable flag. Default value: true
e | A boolean used to enable or disable white-balance |
Definition at line 636 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoWhiteBalanceDecay | ( | uint32_t | d | ) | [inline] |
Set the white-balance decay rate. Default value: 3
d | The white-balance decay rate [0, 20] |
Definition at line 644 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setAutoWhiteBalanceThresh | ( | float | t | ) | [inline] |
Set the white-balance threshold. Default value: 0.5
t | The desired white-balance threshold [0.0, 1.0] |
Definition at line 652 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setDisparities | ( | uint32_t | d | ) | [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 disparites |
Definition at line 540 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setExposure | ( | uint32_t | e | ) | [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 583 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setFps | ( | float | f | ) | [inline] |
Set the desired output frames per second. Default value: 5
f | The desired frames per second |
Definition at line 566 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setGain | ( | float | g | ) | [inline] |
Set the desired output image's gain. Default value: 1
g | The output image gain |
Definition at line 574 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setHdr | ( | bool | e | ) | [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 676 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setHeight | ( | uint32_t | h | ) | [inline] |
Set the height of the desired output resolution. Default value: 544
h | The new resolution's height |
Definition at line 558 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setResolution | ( | uint32_t | w, |
uint32_t | h | ||
) | [inline] |
Set a desired output resolution. Default value: 1024x544
w | The new resolutions width |
h | The new resolutions height |
Definition at line 528 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setStereoPostFilterStrength | ( | float | s | ) | [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 664 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setWhiteBalance | ( | float | r, |
float | b | ||
) | [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 627 of file MultiSenseTypes.hh.
void crl::multisense::image::Config::setWidth | ( | uint32_t | w | ) | [inline] |
Set the width of the desired output resolution. Default value: 1024
w | The new resolution's width |
Definition at line 549 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::stereoPostFilterStrength | ( | ) | const [inline] |
Query the current image configuration's stereo post-filter strength
Definition at line 808 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::tx | ( | ) | const [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 878 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::ty | ( | ) | const [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 889 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::tz | ( | ) | const [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 900 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::whiteBalanceBlue | ( | ) | const [inline] |
Query the current image configuration's blue white-balance setting
Definition at line 776 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::whiteBalanceRed | ( | ) | const [inline] |
Query the current image configuration's red white-balance setting
Definition at line 768 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::width | ( | ) | const [inline] |
Query the current image configuration's width
Definition at line 687 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::yaw | ( | ) | const [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 930 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_aeDecay [private] |
Definition at line 948 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::m_aeEnabled [private] |
Definition at line 946 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_aeMax [private] |
Definition at line 947 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_aeThresh [private] |
Definition at line 949 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_cx [protected] |
Definition at line 962 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_cy [protected] |
Definition at line 962 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_disparities [private] |
Definition at line 956 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_exposure [private] |
Definition at line 945 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_fps [private] |
Definition at line 941 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_fx [protected] |
Definition at line 962 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_fy [protected] |
Definition at line 962 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_gain [private] |
Definition at line 941 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::m_hdrEnabled [private] |
Definition at line 958 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_height [private] |
Definition at line 955 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_pitch [protected] |
Definition at line 964 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_roll [protected] |
Definition at line 964 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_spfStrength [private] |
Definition at line 957 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_tx [protected] |
Definition at line 963 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_ty [protected] |
Definition at line 963 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_tz [protected] |
Definition at line 963 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_wbBlue [private] |
Definition at line 950 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_wbDecay [private] |
Definition at line 953 of file MultiSenseTypes.hh.
bool crl::multisense::image::Config::m_wbEnabled [private] |
Definition at line 952 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_wbRed [private] |
Definition at line 951 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_wbThresh [private] |
Definition at line 954 of file MultiSenseTypes.hh.
uint32_t crl::multisense::image::Config::m_width [private] |
Definition at line 955 of file MultiSenseTypes.hh.
float crl::multisense::image::Config::m_yaw [protected] |
Definition at line 964 of file MultiSenseTypes.hh.