In order to create a good classification rate, you could simply do the following.
- Use as minNeighbor parameter the value 0, incidicating that each detection should be calculated and stored.
- Next calculate the overlap between two regions of detection.
- The more overlapping regions, who could be merged together, the higher youre output score should be.
This is basically in simple terms what the algorithm does itself based on the neighbors parameter.