template class cvflann::RadiusUniqueResultSet

Overview

Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors More…

#include <result_set.h>

template <typename DistanceType>
class RadiusUniqueResultSet: public cvflann::UniqueResultSet
{
public:
    // construction

    RadiusUniqueResultSet(DistanceType radius);

    // methods

    virtual
    void
    addPoint(
        DistanceType dist,
        int index
        );

    virtual
    void
    clear();

    virtual
    bool
    full() const;

    virtual
    DistanceType
    worstDist() const;
};

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;

protected:
    // fields

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

Detailed Documentation

Class that holds the radius nearest neighbors It is more accurate than RadiusResult as it is not limited in the number of neighbors

Construction

RadiusUniqueResultSet(DistanceType radius)

Constructor

Parameters:

radius the maximum distance of a neighbor

Methods

virtual
void
addPoint(
    DistanceType dist,
    int index
    )

Add a possible candidate to the best neighbors

Parameters:

dist distance for that neighbor
index index of that neighbor
virtual
void
clear()

Remove all elements in the set

virtual
bool
full() const

Check the status of the set

Returns:

alwys false

virtual
DistanceType
worstDist() const

The distance of the furthest neighbor If we don’t have enough neighbors, it returns the max possible value

Returns: