class IntrinsicParameters

August 13, 2019 ยท View on GitHub

Member values

Member nameData typeDescription
sensoruint32The sensor for which the parameters apply to
resolutionuint32The resolution for which the parameters apply to
principal_point_xfloat32Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge
principal_point_yfloat32Vertical coordinate of the principal point of the image, as a pixel offset from the top edge
focal_length_xfloat32Focal length of the image plane, as a multiple of pixel width
focal_length_yfloat32Focal length of the image plane, as a multiple of pixel height
distortion_coeffsDistortionCoefficientsDistortion coefficients

Member functions

Function nameReturn typeInput typeDescription
sensor() constuint32voidReturns the current value of sensor. If the sensor is not set, returns 0.
set_sensor()voiduint32Sets the value of sensor. After calling this, sensor() will return value.
clear_sensor()voidvoidClears the value of sensor. After calling this, sensor() will return the empty string/empty bytes.
resolution() constuint32voidReturns the current value of resolution. If the resolution is not set, returns 0.
set_resolution()voiduint32Sets the value of resolution. After calling this, resolution() will return value.
clear_resolution()voidvoidClears the value of resolution. After calling this, resolution() will return the empty string/empty bytes.
principal_point_x()float32voidReturns the current value of principal_point_x. If the principal_point_x is not set, returns 0.
set_principal_point_x()voidfloat32Sets the value of principal_point_x. After calling this, principal_point_x() will return value.
clear_principal_point_x()voidvoidClears the value of principal_point_x. After calling this, principal_point_x() will return 0.
principal_point_y()float32voidReturns the current value of principal_point_y. If the principal_point_y is not set, returns 0.
set_principal_point_y()voidfloat32Sets the value of principal_point_y. After calling this, principal_point_y() will return value.
clear_principal_point_y()voidvoidClears the value of principal_point_y. After calling this, principal_point_y() will return 0.
focal_length_x()float32voidReturns the current value of focal_length_x. If the focal_length_x is not set, returns 0.
set_focal_length_x()voidfloat32Sets the value of focal_length_x. After calling this, focal_length_x() will return value.
clear_focal_length_x()voidvoidClears the value of focal_length_x. After calling this, focal_length_x() will return 0.
focal_length_y()float32voidReturns the current value of focal_length_y. If the focal_length_y is not set, returns 0.
set_focal_length_y()voidfloat32Sets the value of focal_length_y. After calling this, focal_length_y() will return value.
clear_focal_length_y()voidvoidClears the value of focal_length_y. After calling this, focal_length_y() will return 0.
has_distortion_coeffs() constboolvoidReturns true if distortion_coeffs is set.
distortion_coeffs()const DistortionCoefficients&voidReturns the current value of distortion_coeffs. If distortion_coeffs is not set, returns a DistortionCoefficients with none of its fields set (possibly distortion_coeffs::default_instance()).
mutable_distortion_coeffs()DistortionCoefficients *voidReturns a pointer to the mutable DistortionCoefficients object that stores the field's value. If the field was not set prior to the call, then the returned DistortionCoefficients will have none of its fields set (i.e. it will be identical to a newly-allocated DistortionCoefficients). After calling this, has_distortion_coeffs() will return true and distortion_coeffs() will return a reference to the same instance of DistortionCoefficients.
clear_distortion_coeffs()voidvoidClears the value of the field. After calling this, has_distortion_coeffs() will return false and distortion_coeffs() will return the default value.
set_allocated_distortion_coeffs()voidDistortionCoefficients *Sets the DistortionCoefficients object to the field and frees the previous field value if it exists. If the DistortionCoefficients pointer is not NULL, the message takes ownership of the allocated DistortionCoefficients object and has_ DistortionCoefficients() will return true. Otherwise, if the distortion_coeffs is NULL, the behavior is the same as calling clear_distortion_coeffs().
release_distortion_coeffs()DistortionCoefficients *voidReleases the ownership of the field and returns the pointer of the DistortionCoefficients object. After calling this, caller takes the ownership of the allocated DistortionCoefficients object, has_distortion_coeffs() will return false, and distortion_coeffs() will return the default value.

Parent topic: VisionConfig (C++)