[−][src]Struct opencv::flann::AutotunedIndexParams
Implementations
impl AutotunedIndexParams
[src]
pub fn as_raw_AutotunedIndexParams(&self) -> *const c_void
[src]
pub fn as_raw_mut_AutotunedIndexParams(&mut self) -> *mut c_void
[src]
impl AutotunedIndexParams
[src]
pub fn new(
target_precision: f32,
build_weight: f32,
memory_weight: f32,
sample_fraction: f32
) -> Result<AutotunedIndexParams>
[src]
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
Trait Implementations
impl AutotunedIndexParamsTrait for AutotunedIndexParams
[src]
pub fn as_raw_AutotunedIndexParams(&self) -> *const c_void
[src]
pub fn as_raw_mut_AutotunedIndexParams(&mut self) -> *mut c_void
[src]
impl Boxed for AutotunedIndexParams
[src]
pub unsafe fn from_raw(ptr: *mut c_void) -> Self
[src]
pub fn into_raw(self) -> *mut c_void
[src]
pub fn as_raw(&self) -> *const c_void
[src]
pub fn as_raw_mut(&mut self) -> *mut c_void
[src]
impl Drop for AutotunedIndexParams
[src]
impl IndexParamsTrait for AutotunedIndexParams
[src]
pub fn as_raw_IndexParams(&self) -> *const c_void
[src]
pub fn as_raw_mut_IndexParams(&mut self) -> *mut c_void
[src]
pub fn params(&mut self) -> *mut c_void
[src]
pub fn set_params(&mut self, val: *mut c_void)
[src]
pub fn get_string(&self, key: &str, default_val: &str) -> Result<String>
[src]
pub fn get_int(&self, key: &str, default_val: i32) -> Result<i32>
[src]
pub fn get_double(&self, key: &str, default_val: f64) -> Result<f64>
[src]
pub fn set_string(&mut self, key: &str, value: &str) -> Result<()>
[src]
pub fn set_int(&mut self, key: &str, value: i32) -> Result<()>
[src]
pub fn set_double(&mut self, key: &str, value: f64) -> Result<()>
[src]
pub fn set_float(&mut self, key: &str, value: f32) -> Result<()>
[src]
pub fn set_bool(&mut self, key: &str, value: bool) -> Result<()>
[src]
pub fn set_algorithm(&mut self, value: i32) -> Result<()>
[src]
pub fn get_all(
&self,
names: &mut Vector<String>,
types: &mut Vector<FlannIndexType>,
str_values: &mut Vector<String>,
num_values: &mut Vector<f64>
) -> Result<()>
[src]
&self,
names: &mut Vector<String>,
types: &mut Vector<FlannIndexType>,
str_values: &mut Vector<String>,
num_values: &mut Vector<f64>
) -> Result<()>
impl Send for AutotunedIndexParams
[src]
Auto Trait Implementations
impl RefUnwindSafe for AutotunedIndexParams
[src]
impl !Sync for AutotunedIndexParams
[src]
impl Unpin for AutotunedIndexParams
[src]
impl UnwindSafe for AutotunedIndexParams
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,