templated std::vector<T> constructor was being called instead of const std::vector<cv::cuda::GpuMat>.