[][src]Function flann_sys::flann_find_nearest_neighbors_index

pub unsafe extern "C" fn flann_find_nearest_neighbors_index(
    index_id: flann_index_t,
    testset: *mut f32,
    trows: c_int,
    indices: *mut c_int,
    dists: *mut f32,
    nn: c_int,
    flann_params: *mut FLANNParameters
) -> c_int

Searches for nearest neighbors using the index provided

Params: index_id = the index (constructed previously using flann_build_index). testset = pointer to a query set stored in row major order trows = number of rows (features) in the query dataset (same dimensionality as features in the dataset) indices = pointer to matrix for the indices of the nearest neighbors of the testset features in the dataset (must have trows number of rows and nn number of columns) dists = pointer to matrix for the distances of the nearest neighbors of the testset features in the dataset (must have trows number of rows and 1 column) nn = how many nearest neighbors to return flann_params = generic flann parameters

Returns: zero or a number <0 for error