Fixed the pointer issue. Should compile now.
just line removed
Merge branch 'bgfg_KNN_new_code' of https://github.com/palindromoroz/opencv.git into bgfg_KNN_new_code

Conflicts:
	modules/video/src/bgfg_KNN.cpp