Fix runtime exception on OpenCV 3.1 due to empty image after threshold
Fix runtime exception on OpenCV 3.1 due to empty image after threshold

tue-firefly/topcam-tracker,tue-firefly/topcam-tracker,tue-firefly/topcam-tracker,tue-firefly/topcam-tracker