DocsGRADEReference

Lens Distortion

1 min read

On this page

Barrel or pincushion distortion: simple, radial gradient or Brown-Conrady polynomial.

Studio categoryLens
Pipeline stagePre Colour (display colour, before the colour nodes)
Default position4 in its stage, shares a pass with the Optics group
Works inLive views and Image mode
C++ / BlueprintFGradeLayer::Effects.LensDistortion (FGradeLensDistortion)

Manual: Lens Distortion. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.LensDistortion.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
DistortionEffects.LensDistortion.Distortion-100..10015Positive = barrel, negative = pincushion.
Auto ScaleEffects.LensDistortion.AutoScaleon/offonZooms in to hide the stretched borders.
ModelEGradeDistortionModelSimple
InvertEffects.LensDistortion.Inverton/offoffSwap barrel and pincushion.
MagnifierEffects.LensDistortion.Magnifier0.5..21Extra zoom (1 = none) for the Radial Gradient and Polynomial models; Auto Scale adds to it.
BicubicEffects.LensDistortion.Bicubicon/offonBicubic resampling (sharper; 4x the taps of bilinear).

Radial Gradient

ParameterBlueprint pathValuesDefaultDescription
Gradient StartEffects.LensDistortion.GradientStart0..1.50Radial Gradient: where the distortion starts and reaches full strength (0 = centre, 1 = corner).
Gradient EndEffects.LensDistortion.GradientEnd0..1.51

Polynomial

ParameterBlueprint pathValuesDefaultDescription
Radial KEffects.LensDistortion.RadialK.X/Y/Zvector (X, Y, Z)(-0.12, 0.02, 0)Polynomial radial coefficients K1, K2, K3.
Tangential PEffects.LensDistortion.TangentialP.X/Y2D vector (X, Y)(0, 0)Polynomial tangential coefficients P1, P2 (decentring).

Enumerations

Distortion Model (EGradeDistortionModel)

ValueMeaning
SimpleOne amount with auto scale.
Radial GradientOne coefficient attenuated by a radial gradient (Start..End).
PolynomialBrown-Conrady polynomial: radial K1..K3 and tangential P1, P2.

Generated from the GRADE C++ headers. Back to the reference index.