Fixed an issue with weight assignment causing the resulting GMM weights to be unsorted in BackgroundSubtractorMOG2
Merge branch '2.4' of git://github.com/Itseez/opencv into mog2_weight_bugfix
Fixed an issue with weight assignment causing the resulting GMM weights to be unsorted in the CUDA and OCL versions of BackgroundSubtractorMOG2
Merge pull request #2473 from euphrat:mog2_weight_bugfix