Itseez/opencv — pull request #16 by Kangz (2012-08-21 19:52:09+00:00)
Title: Fixed the unlikely branch in FREAK::meanIntensity

The last division was clearly wrong and this made FREAK work well for me.

Also, I had to put ret_val unsigned to avoid overflows.