How to apply custom lens distortion parameters to a rendered image? I want to render the depth map of a mesh I created from a 3D scanner. I already managed to render my image and it is nearly fine.

However, I also want to apply a lens distortion to my output (the image should appear as if it was created by a camera with certain parameters). All the camera parameters (K1, K2, P1, P2, K3) are known, but I can't find the option to enter them. I already spent quite some time studying the documentation, searching this site, and reading/watching tutorials. However, my settings/properties look quite different than in all explanations. 

It should look somewhat like this:



(see How to determine lens undistortion values for motion tracking? or Tutorial on YouTube)

Instead, my settings look like this:



The distortion nodes "Lens Distortion" / "Movie Distortion" didn't really do the job as I have a more complex distortion model (radial and tangential up to order three).

Related similar question:
Customize blender camera distortion
You can enter the distortion data per loaded 'clip' in the 'Track' panel of Movie Clip Editor (N) and use a Movie Distortion node in the Compositor to distort your image based on the values:



I'd suggest go to the 'Compositing' workspace, enable 'Use Nodes', switch the editor type of the 'Timeline' to 'Movie Clip Editor', load any arbitrary image with the same aspect ratio, set your values for K1, K2 etc. and add a Movie Distortion node to your node stream in the compositor.