Struct opencv::flann::AutotunedIndexParams
source · pub struct AutotunedIndexParams { /* private fields */ }
Implementations§
source§impl AutotunedIndexParams
impl AutotunedIndexParams
sourcepub fn new(
target_precision: f32,
build_weight: f32,
memory_weight: f32,
sample_fraction: f32
) -> Result<AutotunedIndexParams>
pub fn new( target_precision: f32, build_weight: f32, memory_weight: f32, sample_fraction: f32 ) -> Result<AutotunedIndexParams>
C++ default parameters
- target_precision: 0.8f
- build_weight: 0.01f
- memory_weight: 0
- sample_fraction: 0.1f
sourcepub fn new_def() -> Result<AutotunedIndexParams>
pub fn new_def() -> Result<AutotunedIndexParams>
Note
This alternative version of [new] function uses the following default values for its arguments:
- target_precision: 0.8f
- build_weight: 0.01f
- memory_weight: 0
- sample_fraction: 0.1f
Trait Implementations§
source§impl AutotunedIndexParamsTrait for AutotunedIndexParams
impl AutotunedIndexParamsTrait for AutotunedIndexParams
fn as_raw_mut_AutotunedIndexParams(&mut self) -> *mut c_void
source§impl AutotunedIndexParamsTraitConst for AutotunedIndexParams
impl AutotunedIndexParamsTraitConst for AutotunedIndexParams
fn as_raw_AutotunedIndexParams(&self) -> *const c_void
source§impl Boxed for AutotunedIndexParams
impl Boxed for AutotunedIndexParams
source§impl Debug for AutotunedIndexParams
impl Debug for AutotunedIndexParams
source§impl Drop for AutotunedIndexParams
impl Drop for AutotunedIndexParams
source§impl From<AutotunedIndexParams> for IndexParams
impl From<AutotunedIndexParams> for IndexParams
source§fn from(s: AutotunedIndexParams) -> Self
fn from(s: AutotunedIndexParams) -> Self
Converts to this type from the input type.
source§impl IndexParamsTrait for AutotunedIndexParams
impl IndexParamsTrait for AutotunedIndexParams
fn as_raw_mut_IndexParams(&mut self) -> *mut c_void
fn params(&mut self) -> *mut c_void
unsafe fn set_params(&mut self, val: *mut c_void)
fn set_string(&mut self, key: &str, value: &str) -> Result<()>
fn set_int(&mut self, key: &str, value: i32) -> Result<()>
fn set_double(&mut self, key: &str, value: f64) -> Result<()>
fn set_float(&mut self, key: &str, value: f32) -> Result<()>
fn set_bool(&mut self, key: &str, value: bool) -> Result<()>
fn set_algorithm(&mut self, value: i32) -> Result<()>
source§impl IndexParamsTraitConst for AutotunedIndexParams
impl IndexParamsTraitConst for AutotunedIndexParams
fn as_raw_IndexParams(&self) -> *const c_void
source§fn get_string(&self, key: &str, default_val: &str) -> Result<String>
fn get_string(&self, key: &str, default_val: &str) -> Result<String>
C++ default parameters Read more
source§fn get_int(&self, key: &str, default_val: i32) -> Result<i32>
fn get_int(&self, key: &str, default_val: i32) -> Result<i32>
C++ default parameters Read more
source§fn get_double(&self, key: &str, default_val: f64) -> Result<f64>
fn get_double(&self, key: &str, default_val: f64) -> Result<f64>
C++ default parameters Read more
fn get_all( &self, names: &mut Vector<String>, types: &mut Vector<FlannIndexType>, str_values: &mut Vector<String>, num_values: &mut Vector<f64> ) -> Result<()>
impl Send for AutotunedIndexParams
Auto Trait Implementations§
impl RefUnwindSafe for AutotunedIndexParams
impl !Sync for AutotunedIndexParams
impl Unpin for AutotunedIndexParams
impl UnwindSafe for AutotunedIndexParams
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