Member values
Member name | Data type | Description |
---|---|---|
sensor | uint32 | The sensor for which the parameters apply to |
resolution | uint32 | The resolution for which the parameters apply to |
principal_point_x | float32 | Horizontal coordinate of the principal point of the image, as a pixel offset from the left edge |
principal_point_y | float32 | Vertical coordinate of the principal point of the image, as a pixel offset from the top edge |
focal_length_x | float32 | Focal length of the image plane, as a multiple of pixel width |
focal_length_y | float32 | Focal length of the image plane, as a multiple of pixel height |
distortion_coeffs | DistortionCoefficients | Distortion coefficients |
Member functions
Function name | Return type | Input type | Description |
---|---|---|---|
sensor() const | uint32 | void | Returns the current value of sensor. If the sensor is not set, returns 0. |
set_sensor() | void | uint32 | Sets the value of sensor. After calling this, sensor() will return value. |
clear_sensor() | void | void | Clears the value of sensor. After calling this, sensor() will return the empty string/empty bytes. |
resolution() const | uint32 | void | Returns the current value of resolution. If the resolution is not set, returns 0. |
set_resolution() | void | uint32 | Sets the value of resolution. After calling this, resolution() will return value. |
clear_resolution() | void | void | Clears the value of resolution. After calling this, resolution() will return the empty string/empty bytes. |
principal_point_x() | float32 | void | Returns the current value of principal_point_x. If the principal_point_x is not set, returns 0. |
set_principal_point_x() | void | float32 | Sets the value of principal_point_x. After calling this, principal_point_x() will return value. |
clear_principal_point_x() | void | void | Clears the value of principal_point_x. After calling this, principal_point_x() will return 0. |
principal_point_y() | float32 | void | Returns the current value of principal_point_y. If the principal_point_y is not set, returns 0. |
set_principal_point_y() | void | float32 | Sets the value of principal_point_y. After calling this, principal_point_y() will return value. |
clear_principal_point_y() | void | void | Clears the value of principal_point_y. After calling this, principal_point_y() will return 0. |
focal_length_x() | float32 | void | Returns the current value of focal_length_x. If the focal_length_x is not set, returns 0. |
set_focal_length_x() | void | float32 | Sets the value of focal_length_x. After calling this, focal_length_x() will return value. |
clear_focal_length_x() | void | void | Clears the value of focal_length_x. After calling this, focal_length_x() will return 0. |
focal_length_y() | float32 | void | Returns the current value of focal_length_y. If the focal_length_y is not set, returns 0. |
set_focal_length_y() | void | float32 | Sets the value of focal_length_y. After calling this, focal_length_y() will return value. |
clear_focal_length_y() | void | void | Clears the value of focal_length_y. After calling this, focal_length_y() will return 0. |
has_distortion_coeffs() const | bool | void | Returns true if distortion_coeffs is set. |
distortion_coeffs() | const DistortionCoefficients& | void | Returns 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 * | void | Returns 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() | void | void | Clears 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() | void | DistortionCoefficients * | 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 * | void | Releases 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++)