answered Mar 21 '18
Have you build opencv with cuda and set flag BUILD_opencv_cudalegacy:BOOL=ON ?
updated Mar 21 '18
see labelComponents