Backto OpenCV Index
Rule No.1: 不要轻易调用 GPU并行化
因为开启/初始 CUDA 环境就要用很长时间, 运算量不大的话得不偿失.
The first gpu function call is always takes more time, because CUDA initialize context for device. The following calls will be faster.
必须要用的话, 把这个初始化提前准备好.
Backto OpenCV Index
因为开启/初始 CUDA 环境就要用很长时间, 运算量不大的话得不偿失.
The first gpu function call is always takes more time, because CUDA initialize context for device. The following calls will be faster.
必须要用的话, 把这个初始化提前准备好.