Itseez/opencv — pull request #2792 by SpecLad (2014-05-26 09:20:46+00:00)
Title: Merge 2.4 into master

Original pull requests:

* #2742 from StevenPuttemans:feature_3176
* #2768 from SpecLad:useless-loop