Struct realsense_rust::base::Rs2Distortion[][src]

pub struct Rs2Distortion {
    pub model: Rs2DistortionModel,
    pub coeffs: [f32; 5],
}
Expand description

Type representing the intrinsic scale, bias, and variances for a given motion device.

The data in coeffs means different things for different models.

  • Brown-Conrady: [k1, k2, p1, p2, k3].
  • F-Theta Fisheye: [k1, k2, k3, k4, 0].
  • Kannala-Brandt: [k1, k2, k3, k4, 0].

The Intel RealSense documentation claims that “Other models are subject to their own interpretations”. This is admittedly not too helpful, but it’s worth noting in case your model isn’t covered here.

Fields

model: Rs2DistortionModel

Distortion model of the image.

coeffs: [f32; 5]

Distortion coefficients.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.