Class to store camera sensor settings.
More...
#include <cvb/sensor_settings.hpp>
Class to store camera sensor settings.
Creating a calibrated point cloud, the camera settings applied during the acquisition of the range map have to be known. Default settings are read from the calibrator loaded from a calibration file. If the actual settings differ from the default ones, the user has to set them and create a calibrated point cloud via function PointCloudFactory::CreateWithSettings() instead of PointCloudFactory::Create(). You can get and check the default settings from the LaserPlaneCalibrator3D object.
◆ SensorSettings()
Ctor passing sensor settings.
For a detailed description of the sensor setting for specific cameras see the CVB online help chapter "Theory of Operation -> Image Manager ->
CVB Technology -> 3D Functionality -> Create Point Cloud from Range Map ->
Create calibrated point cloud with modified sensor settings".
- Parameters
-
[in] | rangeScale | The range map values will be scaled by this factor. It can be calculated from 1/2^NumSubPixel, where NumSubPixel is the number of subpixels. |
[in] | pixelPosition | The pixel position on the sensor in Y may be absolute or relative. If it is relative, the sensor coordinates relative to top offset of sensorRoi are used for the range map creation. If this parameter is set to absolute, top offset is 0. |
[in] | pixelsMirrored | If this parameter is set, the x and/or y sensor coordinates of the profile are mirrored. |
[in] | sensorRoi | Sensor region of interest (ROI). |
[in] | resolutionReduction | Horizontal and vertical resolution reduction factor due to sensor binning. |
- Exceptions
-
◆ operator!=()
Compares to other sensor settings.
- Parameters
-
[in] | other | Other sensor settings. |
- Returns
- True if not equal, otherwise false.
- Exceptions
-
Does | not throw any exception. |
◆ operator==()
Compares to other sensor settings.
- Parameters
-
[in] | other | Other sensor settings. |
- Returns
- True if equal, otherwise false.
- Exceptions
-
Does | not throw any exception. |
◆ PixelPosition()
Gets pixel position in y on sensor.
- Returns
- Pixel position.
- Exceptions
-
Does | not throw any exception. |
◆ PixelsMirrored()
Gets information if sensor pixels are mirrored.
- Returns
- Information if sensor pixels are mirrored.
- Exceptions
-
Does | not throw any exception. |
◆ RangeScale()
double RangeScale |
( |
| ) |
const |
|
inlinenoexcept |
Gets range scale (z factor).
- Returns
- Range scale.
- Exceptions
-
Does | not throw any exception. |
◆ ResolutionReduction()
Point2D< double > ResolutionReduction |
( |
| ) |
const |
|
inlinenoexcept |
Gets horizontal (X) and vertical (Y) resolution reduction factors (due to binning).
- Returns
- Resolution reduction factors.
- Exceptions
-
Does | not throw any exception. |
◆ SensorRoi()
Rect< int > SensorRoi |
( |
| ) |
const |
|
inlinenoexcept |
Gets sensor region of interest (ROI).
- Returns
- Sensor ROI.
- Exceptions
-
Does | not throw any exception. |