pub struct EstimateParameters { /* private fields */ }
๐Deprecated: Use Board::matchImagePoints and cv::solvePnP
Expand description
Pose estimation parameters
ยงParameters
- pattern: Defines center this system and axes direction (default PatternPositionType::ARUCO_CCW_CENTER).
- useExtrinsicGuess: Parameter used for SOLVEPNP_ITERATIVE. If true (1), the function uses the provided rvec and tvec values as initial approximations of the rotation and translation vectors, respectively, and further optimizes them (default false).
- solvePnPMethod: Method for solving a PnP problem: see [calib3d_solvePnP_flags] (default SOLVEPNP_ITERATIVE).
Deprecated: Use Board::matchImagePoints and cv::solvePnP
ยงSee also
PatternPositionType, solvePnP()
Implementationsยง
Sourceยงimpl EstimateParameters
impl EstimateParameters
pub fn default() -> Result<EstimateParameters>
Trait Implementationsยง
Sourceยงimpl Boxed for EstimateParameters
impl Boxed for EstimateParameters
Sourceยงunsafe fn from_raw(
ptr: <EstimateParameters as OpenCVFromExtern>::ExternReceive,
) -> Self
unsafe fn from_raw( ptr: <EstimateParameters as OpenCVFromExtern>::ExternReceive, ) -> Self
Wrap the specified raw pointer Read more
Sourceยงfn into_raw(
self,
) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSendMut
fn into_raw( self, ) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying raw pointer while consuming this wrapper. Read more
Sourceยงfn as_raw(
&self,
) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSend
fn as_raw( &self, ) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSend
Return the underlying raw pointer. Read more
Sourceยงfn as_raw_mut(
&mut self,
) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSendMut
fn as_raw_mut( &mut self, ) -> <EstimateParameters as OpenCVTypeExternContainer>::ExternSendMut
Return the underlying mutable raw pointer Read more
Sourceยงimpl Clone for EstimateParameters
impl Clone for EstimateParameters
Sourceยงimpl Debug for EstimateParameters
impl Debug for EstimateParameters
Sourceยงimpl Drop for EstimateParameters
impl Drop for EstimateParameters
Sourceยงimpl EstimateParametersTrait for EstimateParameters
impl EstimateParametersTrait for EstimateParameters
fn as_raw_mut_EstimateParameters(&mut self) -> *mut c_void
fn set_pattern(&mut self, val: PatternPositionType)
fn set_use_extrinsic_guess(&mut self, val: bool)
fn set_solve_pnp_method(&mut self, val: i32)
Sourceยงimpl EstimateParametersTraitConst for EstimateParameters
impl EstimateParametersTraitConst for EstimateParameters
fn as_raw_EstimateParameters(&self) -> *const c_void
fn pattern(&self) -> PatternPositionType
fn use_extrinsic_guess(&self) -> bool
fn solve_pnp_method(&self) -> i32
impl Send for EstimateParameters
Auto Trait Implementationsยง
impl Freeze for EstimateParameters
impl RefUnwindSafe for EstimateParameters
impl !Sync for EstimateParameters
impl Unpin for EstimateParameters
impl UnwindSafe for EstimateParameters
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Sourceยงimpl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
impl<Mat> ModifyInplace for Matwhere
Mat: Boxed,
Sourceยงunsafe fn modify_inplace<Res>(
&mut self,
f: impl FnOnce(&Mat, &mut Mat) -> Res,
) -> Res
unsafe fn modify_inplace<Res>( &mut self, f: impl FnOnce(&Mat, &mut Mat) -> Res, ) -> Res
Helper function to call OpenCV functions that allow in-place modification of a
Mat
or another similar object. By passing
a mutable reference to the Mat
to this function your closure will get called with the read reference and a write references
to the same Mat
. This is unsafe in a general case as it leads to having non-exclusive mutable access to the internal data,
but it can be useful for some performance sensitive operations. One example of an OpenCV function that allows such in-place
modification is imgproc::threshold
. Read more