Lens correction (ffmpeg K1 K2)

From 3Denlive
Revision as of 15:55, 25 January 2021 by Etienne (talk | contribs) (Created page with "'''Purpose:''' this processor can be used to correct for radial distortion as can result from the use of wide angle lenses (fish-eye), and thereby re-rectify the image. '''Ke...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose: this processor can be used to correct for radial distortion as can result from the use of wide angle lenses (fish-eye), and thereby re-rectify the image.

Keyframable: YES. This processor can be used as a video effect to change progressively the image geometry.

Parameters: K1 and K2 may be set either with the sliders, or by editing the displayed numeric values.

Searching the web with keywords "ffmpeg lenscorrection K1 K2" and the model of your camera may provides you with values to use.

Calibration procedure:

  1. open 3De
  2. click somewhere in the left media panel to display the main empty monitor.
  3. click on the grid button ButtonGrid.png and choose value 30.
  4. click on the full-screen preview button ButtonFullScreen.png.
  5. take a shot of your screen with your camera, paying attention to be as centered and as aligned with your screen as possible.
  6. open the resulting image in 3De (as a not-stereo view).
  7. double-click on the new media in the left column to add it in the timeline.
  8. click on the new clip in the timeline.
  9. double-click on the Lens correction processor in the right processor library to add it to the clip.
  10. adjust K1 to get the lines as straight as possible. The lines may be not fully parallel, nor fully horizontal, nor fully vertical, because of a bad camera alignment with the screen, but they should be as straight as possible.
  11. adjust K2 together with K1 to refine the result. K2 is supposed to change the outermost part of the picture, while K1 has more effect on the middle part.
  12. take a note on the K1 and K2 values to set it later on your real scene pictures.