Skip to content

Nodes · Transform

LensDistort

Transformv2coreNeeds full input

Overview

Applies or removes lens distortion. Undistort, comp straight, redistort — the matchmove round trip.

How to

How-to

  1. Set strength (k1) and k2, or take them from a CameraTracker's solve; center and squeeze for anamorphic.
  2. direction = undistort before compositing CG, redistort after — the matchmove round trip.

Inputs

InputWhat it takes
inthe image this node works on

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
strengthFloat0.1Radial distortion k1 (r²): positive barrels, negative pincushions.
k2Float0.0Second radial term (r⁴) for the corners.
centerFloat2[0.5, 0.5]The lens centre, normalised 0–1 across the frame.
p1Float0.0Tangential (decentering) terms, Brown–Conrady.
p2Float0.0Tangential (decentering) terms, Brown–Conrady.
squeezeFloat1.0Anamorphic squeeze: the distortion acts in the de-squeezed frame.
directionChoiceundistortundistort straightens a shot plate; distort re-applies the lens to CG. undistortdistort
disabledBoolfalseBypass: the node passes its first input through untouched (D in the graph). The knobs keep their values for when it comes back.
labelTextA note shown under the node in the graph — what this node is FOR. Never affects the render or the cache.
hide_inputBoolfalseDraw the node without its input wire — a tidy graph for a node whose source is obvious (a Dot, a viewer tap).