template class cvflann::KNNResultSet

K-Nearest neighbour result set. Ensures that the elements inserted are unique

#include <result_set.h>

template <typename DistanceType>
class KNNResultSet: public cvflann::ResultSet
{
public:
    // construction

    KNNResultSet(int capacity_);

    // methods

    virtual
    void
    addPoint(
        DistanceType dist,
        int index
        );

    virtual
    bool
    full() const;

    void
    init(
        int* indices_,
        DistanceType* dists_
        );

    size_t
    size() const;

    virtual
    DistanceType
    worstDist() const;
};

Inherited Members

public:
    // methods

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

    virtual
    bool
    full() const = 0;

    virtual
    DistanceType
    worstDist() const = 0;