Itseez/opencv — pull request #2 by emchristiansen (2012-07-27 00:11:14+00:00)
Title: added asserts to LBPH code in contrib

In the current code, the LBPH distance will silently fail if passed color images, calculating all distances to be zero. This patch adds asserts ensuring the inputs are single channel images.