Itseez/opencv_contrib — pull request #76 by sanchom (2014-08-22 18:27:09+00:00)
Title: Bugfix: Precision error.

When p >= 1, setting p to 0.999999999999999999999999999999, didn't actually make p less than one.