pub struct CameraCalibration;Implementations§
Source§impl CameraCalibration
impl CameraCalibration
Sourcepub fn calibrate_camera(
object_points: &[Vec<Point<f64>>],
image_points: &[Vec<Point<f64>>],
_image_size: Size<usize>,
) -> Result<([[f64; 3]; 3], Vec<f64>)>
pub fn calibrate_camera( object_points: &[Vec<Point<f64>>], image_points: &[Vec<Point<f64>>], _image_size: Size<usize>, ) -> Result<([[f64; 3]; 3], Vec<f64>)>
Estimates the intrinsic camera matrix, distortion coefficients, and extrinsics.
Sourcepub fn project_points(
object_points: &[Point<f64>],
rvec: &[[f64; 3]; 3],
tvec: &[[f64; 3]; 1],
camera_matrix: &[[f64; 3]; 3],
dist_coeffs: &[f64],
) -> Result<Vec<Point<f64>>>
pub fn project_points( object_points: &[Point<f64>], rvec: &[[f64; 3]; 3], tvec: &[[f64; 3]; 1], camera_matrix: &[[f64; 3]; 3], dist_coeffs: &[f64], ) -> Result<Vec<Point<f64>>>
Projects 3D points onto the 2D image plane using intrinsic camera matrix and extrinsics.
Sourcepub fn find_homography(
src: &[Point<f64>],
dst: &[Point<f64>],
) -> Result<[[f64; 3]; 3]>
pub fn find_homography( src: &[Point<f64>], dst: &[Point<f64>], ) -> Result<[[f64; 3]; 3]>
Computes a 3x3 homography matrix mapping src to dst.
Sourcepub fn solve_pnp(
_object_points: &[Point<f64>],
_image_points: &[Point<f64>],
_camera_matrix: &[[f64; 3]; 3],
_dist_coeffs: &[f64],
) -> Result<([[f64; 3]; 3], [[f64; 3]; 1])>
pub fn solve_pnp( _object_points: &[Point<f64>], _image_points: &[Point<f64>], _camera_matrix: &[[f64; 3]; 3], _dist_coeffs: &[f64], ) -> Result<([[f64; 3]; 3], [[f64; 3]; 1])>
Solves Perspective-n-Point pose estimation problem.
Auto Trait Implementations§
impl Freeze for CameraCalibration
impl RefUnwindSafe for CameraCalibration
impl Send for CameraCalibration
impl Sync for CameraCalibration
impl Unpin for CameraCalibration
impl UnsafeUnpin for CameraCalibration
impl UnwindSafe for CameraCalibration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more