Class to store camera sensor settings. More...
Public Member Functions | |
| None | SensorSettings (self, float range_scale=1.0, int pixel_position=cvb.SensorPixelPosition.Absolute, int pixels_mirrored=cvb.SensorPixelsMirrored.NoMirroring, cvb.Rect sensor_roi=cvb.Rect(0, 0, 0, 0), cvb.Point2D resolution_reduction=cvb.Point2D(1.0, 1.0)) |
| Creating a calibrated point cloud, the camera settings applied during the acquisition of the range map have to be known. | |
Properties | |
| pixel_position = property | |
| int: Gets pixel position in y on sensor (see cvb.SensorPixelPosition). | |
| pixels_mirrored = property | |
| int: Gets information if sensor pixels are mirrored (see cvb.SensorPixelsMirrored). | |
| range_scale = property | |
| float: Gets range scale (z factor). | |
| resolution_reduction = property | |
| cvb.Point2D: Gets horizontal (X) and vertical (Y) resolution reduction factors (due to binning). | |
| sensor_roi = property | |
| cvb.Rect: Gets sensor region of interest (ROI). | |
Class to store camera sensor settings.
| None SensorSettings | ( | self, | |
| float | range_scale = 1.0, | ||
| int | pixel_position = cvb.SensorPixelPosition.Absolute, | ||
| int | pixels_mirrored = cvb.SensorPixelsMirrored.NoMirroring, | ||
| cvb.Rect | sensor_roi = cvb.Rect(0, 0, 0, 0), | ||
| cvb.Point2D | resolution_reduction = cvb.Point2D(1.0, 1.0) ) |
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 cvb.PointCloudFactory.create_with_settings instead of cvb.PointCloudFactory.create(). You can get and check the default settings from the LaserPlaneCalibrator3D object.
For a detailed description of the sensor setting for specific cameras seethe 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".
range_scale : float 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.
pixel_position : int 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 sensor_roi are used for the range map creation.If this parameter is set to absolute, top offset is 0 (see cvb.SensorPixelPosition).
pixels_mirrored : int If this parameter is set, the x and/or y sensor coordinates of the profile are mirrored (see cvb.SensorPixelsMirrored).
sensor_roi : cvb.Rect Sensor region of interest (ROI); note that each parameter is internally cast to an integer.
resolution_reduction : cvb.Point2D Horizontal and vertical resolution reduction factor due to sensor binning.