How to add Fisheye Camera Model Distortion to a undistorted image?

Hi, I want to simulate fisheye camera sensor effect by manually add distortion to undistorted video stream image.
I found in cv::fisheye library, there exists some function. By I am confused about how to apply them to VideoCapture Mat images with CUDA acceleration.