CVB.Net 14.0
SensorSettings Struct Reference

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).
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ SensorSettings()

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".

Parameters
rangeScaleThe range map values will be scaled by this factor. It can be calculated from 1/2^NumSubPixel, where NumSubPixel is the number of subpixels.
pixelPositionThe 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.
pixelsMirroredIf this parameter is set, the x and/or y sensor coordinates of the profile are mirrored.
sensorRoiSensor region of interest (ROI).
resolutionReductionHorizontal and vertical resolution reduction factor due to sensor binning.

Member Function Documentation

◆ Equals()

override bool Equals ( object  obj)

Equality comparison.

Parameters
objObject to compare to
Returns
true if equal; false if not.

◆ GetHashCode()

override int GetHashCode ( )

Default implementation.

Returns
Default hash code.

◆ operator!=()

static bool operator!= ( SensorSettings  lhs,
SensorSettings  rhs 
)
static

Compares to other sensor settings.

Parameters
lhsleft hand side operand
rhsright hand side operand
Returns
true lhs != rhs, false otherwise

◆ operator==()

static bool operator== ( SensorSettings  lhs,
SensorSettings  rhs 
)
static

Compares to other sensor settings.

Parameters
lhsleft hand side operand
rhsright hand side operand
Returns
true lhs == rhs, false otherwise