Itseez/opencv — pull request #2940 by davembradley (2014-07-03 19:43:15+00:00)
Title: cudabgsegm module was not compiling.  Changing all references of opencv2...

.../legacy.hpp to opencv2/cudalegacy.hpp seemed to work.

I'm new at this so it would be good to have someone familiar with the build system confirm the change.