Infinite loop in Query Performer
Library and frontend engine for performing Image Retrieval tasks.
Status: Alpha
Brought to you by:
xultimatex
In QueryPerformer (src/org/grire/BagOfVisualWords/Functions/QueryPerformer.java) loop in line 74 tends to be infinite loop for reasons that are nicely explained in the answer to the second part of this SO question:
http://stackoverflow.com/questions/5852611/java-float-min-value-and-float-min-normal
The way I made it work is instead of Float.MIN_VALUE I put 0.0000001 (stupid magic number, but it's arbitrary anyway). The same applies to lines 80, 96, 105.
Addition with Float.MIN_VALUE replaced with Math.nextUp()