template class cvflann::KNNRadiusUniqueResultSet

Overview

Class that holds the k NN neighbors within a radius distance Moreā€¦

#include <result_set.h>

template <typename DistanceType>
class KNNRadiusUniqueResultSet: public cvflann::KNNUniqueResultSet
{
public:
    // construction

    KNNRadiusUniqueResultSet(
        unsigned int capacity,
        DistanceType radius
        );

    // methods

    virtual
    void
    clear();
};

Inherited Members

public:
    // structs

    struct DistIndex;

    // methods

    virtual
    void
    addPoint(
        DistanceType dist,
        int index
        ) = 0;

    virtual
    bool
    full() const = 0;

    virtual
    DistanceType
    worstDist() const = 0;

    virtual
    void
    clear() = 0;

    virtual
    void
    copy(
        int* indices,
        DistanceType* dist,
        int n_neighbors = -1
        ) const;

    virtual
    bool
    full() const;

    size_t
    size() const;

    virtual
    void
    sortAndCopy(
        int* indices,
        DistanceType* dist,
        int n_neighbors = -1
        ) const;

    virtual
    DistanceType
    worstDist() const;

    virtual
    void
    addPoint(
        DistanceType dist,
        int index
        );

    virtual
    void
    clear();

protected:
    // typedefs

    typedef UniqueResultSet<DistanceType>::DistIndex DistIndex;

    // fields

    std::set<DistIndex> dist_indices_;
    bool is_full_;
    DistanceType worst_distance_;
    unsigned int capacity_;

Detailed Documentation

Class that holds the k NN neighbors within a radius distance

Construction

KNNRadiusUniqueResultSet(
    unsigned int capacity,
    DistanceType radius
    )

Constructor

Parameters:

capacity the number of neighbors to store at max
radius the maximum distance of a neighbor

Methods

virtual
void
clear()

Remove all elements in the set