Closed GoogleCodeExporter closed 9 years ago
Fixed - problem was that with a low number of features the sum of the distances
to the training samples fell bellow FLT_EPSILON. Changed the minimum distance
to DBL_EPSILON in classify2().
Note that this causes a segfault in linux because classify2() returns -1 as the
most probable class, which causes an array access at index -1. Put an
additional check in ClassifyImage(), which sets the predicted class to 0
(unknown) if the classifier returns < 1.
Original comment by i...@cathilya.org
on 22 Mar 2011 at 3:53
Original issue reported on code.google.com by
christop...@nih.gov
on 21 Mar 2011 at 7:31