template class cvflann::KNNSimpleResultSet

KNNSimpleResultSet does not ensure that the element it holds are unique. Is used in those cases where the nearest neighbour algorithm used does not attempt to insert the same element multiple times.

#include <result_set.h>

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

    KNNSimpleResultSet(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;