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 new_def() -> Result<RefineParameters>
pub fn new_def() -> Result<RefineParameters>
§Note
This alternative version of [new] function uses the following default values for its arguments:
- min_rep_distance: 10.f
- error_correction_rate: 3.f
- check_all_orders: true
sourcepub fn read_refine_parameters(
self,
fn_: &impl FileNodeTraitConst
) -> Result<bool>
pub fn read_refine_parameters( self, fn_: &impl FileNodeTraitConst ) -> Result<bool>
Read a new set of RefineParameters from FileNode (use FileStorage.root()).
sourcepub fn write_refine_parameters(
self,
fs: &mut impl FileStorageTrait,
name: &str
) -> Result<bool>
pub fn write_refine_parameters( self, fs: &mut impl FileStorageTrait, name: &str ) -> Result<bool>
sourcepub fn write_refine_parameters_def(
self,
fs: &mut impl FileStorageTrait
) -> Result<bool>
pub fn write_refine_parameters_def( self, fs: &mut impl FileStorageTrait ) -> Result<bool>
Write a set of RefineParameters to FileStorage
§Note
This alternative version of RefineParameters::write_refine_parameters function uses the following default values for its arguments:
- name: String()
Trait Implementations§
source§impl Clone for RefineParameters
impl Clone for RefineParameters
source§fn clone(&self) -> RefineParameters
fn clone(&self) -> RefineParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RefineParameters
impl Debug for RefineParameters
source§impl PartialEq for RefineParameters
impl PartialEq for RefineParameters
source§fn eq(&self, other: &RefineParameters) -> bool
fn eq(&self, other: &RefineParameters) -> bool
self
and other
values to be equal, and is used
by ==
.