Struct opencv::objdetect::RefineParameters
source · #[repr(C)]pub struct RefineParameters {
pub min_rep_distance: f32,
pub error_correction_rate: f32,
pub check_all_orders: bool,
}
Expand description
struct RefineParameters is used by ArucoDetector
Fields§
§min_rep_distance: f32
minRepDistance minimum distance between the corners of the rejected candidate and the reprojected marker in order to consider it as a correspondence.
error_correction_rate: f32
minRepDistance rate of allowed erroneous bits respect to the error correction capability of the used dictionary.
-1 ignores the error correction step.
check_all_orders: bool
checkAllOrders consider the four posible corner orders in the rejectedCorners array.
If it set to false, only the provided corner order is considered (default true).
Implementations§
source§impl RefineParameters
impl RefineParameters
sourcepub fn new(
min_rep_distance: f32,
error_correction_rate: f32,
check_all_orders: bool
) -> Result<RefineParameters>
pub fn new( min_rep_distance: f32, error_correction_rate: f32, check_all_orders: bool ) -> Result<RefineParameters>
C++ default parameters
- min_rep_distance: 10.f
- error_correction_rate: 3.f
- check_all_orders: true
sourcepub fn read_refine_parameters(self, fn_: &FileNode) -> Result<bool>
pub fn read_refine_parameters(self, fn_: &FileNode) -> Result<bool>
Read a new set of RefineParameters from FileNode (use FileStorage.root()).
sourcepub fn write_refine_parameters(
self,
fs: &mut FileStorage,
name: &str
) -> Result<bool>
pub fn write_refine_parameters( self, fs: &mut FileStorage, name: &str ) -> Result<bool>
Trait Implementations§
source§impl Clone for RefineParameters
impl Clone for RefineParameters
source§fn clone(&self) -> RefineParameters
fn clone(&self) -> RefineParameters
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RefineParameters
impl Debug for RefineParameters
source§impl PartialEq<RefineParameters> for RefineParameters
impl PartialEq<RefineParameters> for RefineParameters
source§fn eq(&self, other: &RefineParameters) -> bool
fn eq(&self, other: &RefineParameters) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RefineParameters
impl StructuralPartialEq for RefineParameters
Auto Trait Implementations§
impl RefUnwindSafe for RefineParameters
impl Send for RefineParameters
impl Sync for RefineParameters
impl Unpin for RefineParameters
impl UnwindSafe for RefineParameters
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