mariusmuja/flann — pull request #50 by choni (2012-07-06 16:48:38+00:00)
Title: I met errors "vector subscript out of range" and fixed.

In radiusSearch (nn_index.h), if all distances are greater than threshold then n = 0 and error occurs
at "resultSet.copy(&indices[i][0], &dists[i][0], n, params.sorted);".
Because indices[i][0] and dists[i][0] not exists.

In knnSearch (lsh_index.h), when n = 0, same error occured.
In this case, the condition "if (bucket == 0) continue;" in getNeighbors (lsh_index.h) always TRUE.