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§
Source§impl Debug for Rs2Distortion
impl Debug for Rs2Distortion
impl Send for Rs2Distortion
Auto Trait Implementations§
impl Freeze for Rs2Distortion
impl RefUnwindSafe for Rs2Distortion
impl Sync for Rs2Distortion
impl Unpin for Rs2Distortion
impl UnwindSafe for Rs2Distortion
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more