Class to store camera sensor settings. More...
Public Member Functions | |
SensorSettings (double rangeScale, SensorPixelPosition pixelPosition, SensorPixelsMirrored pixelsMirrored, Rect sensorRoi, Point2Dd resolutionReduction) | |
Constructor. More... | |
override bool | Equals (object obj) |
Equality comparison. More... | |
override int | GetHashCode () |
Default implementation. More... | |
Static Public Member Functions | |
static bool | operator!= (SensorSettings lhs, SensorSettings rhs) |
Compares to other sensor settings. More... | |
static bool | operator== (SensorSettings lhs, SensorSettings rhs) |
Compares to other sensor settings. More... | |
Static Public Attributes | |
static readonly SensorSettings | Default = new SensorSettings(1.0, SensorPixelPosition.Absolute, SensorPixelsMirrored.None, new Rect(0, 0, 0, 0), new Point2Dd(1.0, 1.0)) |
Default settings | |
Properties | |
double | RangeScale [get] |
Gets range scale (z factor). | |
SensorPixelPosition | PixelPosition [get] |
Gets pixel position in y on sensor. | |
SensorPixelsMirrored | PixelsMirrored [get] |
Gets information if sensor pixels are mirrored. | |
Rect | SensorRoi [get] |
Gets sensor region of interest (ROI). | |
Point2Dd | ResolutionReduction [get] |
Gets horizontal (X) and vertical (Y) resolution reduction factors (due to binning). | |
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 overloaded function Calibrator3D.CreatePointCloud where you can pass the settings as input variable. You can get and check the default settings from the LaserPlaneCalibrator3D object.
SensorSettings | ( | double | rangeScale, |
SensorPixelPosition | pixelPosition, | ||
SensorPixelsMirrored | pixelsMirrored, | ||
Rect | sensorRoi, | ||
Point2Dd | resolutionReduction | ||
) |
Constructor.
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".
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. |
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. |
pixelsMirrored | If this parameter is set, the x and/or y sensor coordinates of the profile are mirrored. |
sensorRoi | Sensor region of interest (ROI). |
resolutionReduction | Horizontal and vertical resolution reduction factor due to sensor binning. |
override bool Equals | ( | object | obj | ) |
Equality comparison.
obj | Object to compare to |
true
if equal; false
if not.override int GetHashCode | ( | ) |
Default implementation.
|
static |
Compares to other sensor settings.
lhs | left hand side operand |
rhs | right hand side operand |
|
static |
Compares to other sensor settings.
lhs | left hand side operand |
rhs | right hand side operand |