Public Attributes | List of all members
crl::multisense::image::SensorCalibration Class Reference

#include <MultiSenseTypes.hh>

Public Attributes

uint8_t adc_gain [2]
 
int16_t bl_offset [2]
 
uint8_t vramp [2]
 

Detailed Description

Class to store sensor gains used to perform a DC level adjustment to calibrate the left imager to the right imager. For more information on the specific applications please email suppo.nosp@m.rt@c.nosp@m.arneg.nosp@m.iero.nosp@m.botic.nosp@m.s.co.nosp@m.m

Example code to query a devices's imager calibration:

//
// Instantiate a channel connecting to a sensor at the factory default
// IP address
channel = crl::multisense::Channel::Create("10.66.171.21");
channel->setMtu(7200);
//
// Create a instance of SensorCalibration to store the device's imager
// calibration
//
// Query the imager calibration from the Channel instance
crl::multisense::Status status = channel->getSensorCalibration(sensorCalibration));
//
// Check to see if the network configuration query succeeded
throw std::runtime_error("Unable to query device's imager calibration");
}
//
// Use the image calibration...
//
// Destroy the channel instance

Example code to set a devices imager calibration:

//
// Instantiate a channel connecting to a sensor at the factory default
// IP address
channel = crl::multisense::Channel::Create("10.66.171.21");
channel->setMtu(7200);
//
// Create a instance of SensorCalibration to store the device's imager
// calibration
//
// Query the imager calibration from the Channel instance
crl::multisense::Status status = channel->getSensorCalibration(sensorCalibration));
//
// Modify the imager calibration gains based on the pre-existing default
// values
sensorCalibration.adc_gain[0] += 1;
sensorCalibration.adc_gain[1] += 1;
sensorCalibration.bl_offset[0] += 1;
sensorCalibration.bl_offset[1] += 1;
//
// Send the new imager calibration to the device
crl::multisense::Status status = channel->setSensorCalibration(sensorCalibration));
//
// Check to see if the new network configuration was received
throw std::runtime_error("Unable to set the devices's imager calibration");
}
//
// Destroy the channel instance

Definition at line 1323 of file MultiSenseTypes.hh.

Member Data Documentation

uint8_t crl::multisense::image::SensorCalibration::adc_gain[2]

The CMV2000/CMV4000 ADC gain applied to each pixel value. Index 0 corresponds to the left imager, index 1 corresponds to the right imager

Definition at line 1328 of file MultiSenseTypes.hh.

int16_t crl::multisense::image::SensorCalibration::bl_offset[2]

The imager black level offset for each imager. Index 0 corresponds to the left imager, index 1 corresponds to the right imager

Definition at line 1332 of file MultiSenseTypes.hh.

uint8_t crl::multisense::image::SensorCalibration::vramp[2]

The imager vramp pair for each imager. Index 0 corresponds to the left imager, index 1 corresponds to the right imager

Definition at line 1336 of file MultiSenseTypes.hh.


The documentation for this class was generated from the following file:


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50