see discussions there https://github.com/Itseez/opencv/pull/2761