[−][src]Struct opencv::flann::Index
Implementations
impl Index
[src]
pub fn as_raw_Index(&self) -> *const c_void
[src]
pub fn as_raw_mut_Index(&mut self) -> *mut c_void
[src]
impl Index
[src]
pub fn default() -> Result<Index>
[src]
pub fn new(
features: &dyn ToInputArray,
params: &IndexParams,
dist_type: flann_distance_t
) -> Result<Index>
[src]
features: &dyn ToInputArray,
params: &IndexParams,
dist_type: flann_distance_t
) -> Result<Index>
C++ default parameters
- dist_type: cvflann::FLANN_DIST_L2
Trait Implementations
impl Boxed for Index
[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 Index
[src]
impl IndexTrait for Index
[src]
pub fn as_raw_Index(&self) -> *const c_void
[src]
pub fn as_raw_mut_Index(&mut self) -> *mut c_void
[src]
pub fn build(
&mut self,
features: &dyn ToInputArray,
params: &IndexParams,
dist_type: flann_distance_t
) -> Result<()>
[src]
&mut self,
features: &dyn ToInputArray,
params: &IndexParams,
dist_type: flann_distance_t
) -> Result<()>
pub fn knn_search(
&mut self,
query: &dyn ToInputArray,
indices: &mut dyn ToOutputArray,
dists: &mut dyn ToOutputArray,
knn: i32,
params: &SearchParams
) -> Result<()>
[src]
&mut self,
query: &dyn ToInputArray,
indices: &mut dyn ToOutputArray,
dists: &mut dyn ToOutputArray,
knn: i32,
params: &SearchParams
) -> Result<()>
pub fn radius_search(
&mut self,
query: &dyn ToInputArray,
indices: &mut dyn ToOutputArray,
dists: &mut dyn ToOutputArray,
radius: f64,
max_results: i32,
params: &SearchParams
) -> Result<i32>
[src]
&mut self,
query: &dyn ToInputArray,
indices: &mut dyn ToOutputArray,
dists: &mut dyn ToOutputArray,
radius: f64,
max_results: i32,
params: &SearchParams
) -> Result<i32>
pub fn save(&self, filename: &str) -> Result<()>
[src]
pub fn load(
&mut self,
features: &dyn ToInputArray,
filename: &str
) -> Result<bool>
[src]
&mut self,
features: &dyn ToInputArray,
filename: &str
) -> Result<bool>
pub fn release(&mut self) -> Result<()>
[src]
pub fn get_distance(&self) -> Result<flann_distance_t>
[src]
pub fn get_algorithm(&self) -> Result<flann_algorithm_t>
[src]
impl Send for Index
[src]
Auto Trait Implementations
impl RefUnwindSafe for Index
[src]
impl !Sync for Index
[src]
impl Unpin for Index
[src]
impl UnwindSafe for Index
[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>,