1from __future__
import annotations
17 Class for intrinsic parameters.
19 The intrinsic parameters contain the necessary information to use the camera calibration.
21 This class contains only the intrinsic parameters. These parameters are essential for image
22 operations like point cloud generation, image undistortion, and other calibration-dependent operations.
24 @ingroup ids_peak_icv_python_calibration
25 @since ids_peak_icv 1.1
28 def __init__(self, *args: Any, **kwargs: Any) ->
None:
31 In order to create IntrinsicParameters, please refer to the classmethods.
33 @since ids_peak_icv 1.1
36 self.
_parameters: peak_icv_intrinsic_parameters = kwargs[
"_parameters"]
44 Returns the principle point.
46 @return Point representing the principle point.
48 @since ids_peak_icv 1.1
57 Returns the distortion coefficients.
59 @return A numpy array of size 14 containing the distortion coefficients.
61 @since ids_peak_icv 1.1
64 coefficients = (list(self.
_parameters.distortion_coefficients.radial_distortion.coefficients)
65 + list(self.
_parameters.distortion_coefficients.tangential_distortion.coefficients)
66 + list(self.
_parameters.distortion_coefficients.prism_distortion.coefficients)
67 + list(self.
_parameters.distortion_coefficients.tilt_distortion.coefficients))
69 return np.array(coefficients, dtype=np.float32)
75 Returns the focal length pixel size ratio.
77 @return Point representing the focal length pixel size ratio.
79 @since ids_peak_icv 1.1
90 @return Size representing the image size.
92 @since ids_peak_icv 1.1
101 Returns binning factor
103 @return Binning factor of the image.
105 @since ids_peak_icv 1.1
110 if not isinstance(other, IntrinsicParameters):
112 return ctypes_objects_equal(self.
_parameters, other._parameters)
Represents a point in 2D space with x and y coordinates.
A size consists of width and height where width and height have to be greater than or equal to zero.
Class for intrinsic parameters.
peak_icv_intrinsic_parameters _parameters
BinningFactor binning_factor(self)
Returns binning factor.
Size image_size(self)
Returns image size.
None __init__(self, *Any args, **Any kwargs)
In order to create IntrinsicParameters, please refer to the classmethods.
bool __eq__(self, object other)
Point focal_length_pixel_size_ratio(self)
Returns the focal length pixel size ratio.
Point principle_point(self)
Returns the principle point.
np.ndarray distortion_coefficients(self)
Returns the distortion coefficients.
The binning factor for the x and y directions must consist of positive integer values.
Thrown when an operation cannot be performed due to logical constraints.