How do I implement OpenCVLensDistortion in UnrealEngine in c++?

I want to write a script to implement the camera model with the distortion coefficients and it seems I could use the Open Cv Lens Distortion plugin. But I want it to be applied to the scenes I have in my simulation and I want to do it by scripting and not blueprint. Anyone knows how?