Eyeon:Manual/Fusion 6/Lens Distort

From VFXPedia

< Eyeon:Manual | Fusion 6
Revision as of 08:00, 7 November 2011 by SirEdric (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Lens Distort

[ Main Manual Page ]


Lens Distort [Lens]

Image:F63_Icon_LensDistort.png

This tool can be used to remove or add lens distortion in an image.

The amount and type of Lens distortion in an image depends on a variety of factors such as the actual lens that has been used, the quality and amount of lensgroups in that lens, adjustments like shift lenses and much more.

One reason to remove lens distortion is to comp an undistorted layer, as for example a 3d rendering, on top of a distorted layer, as for example a real world camera shoot. When combining the layers without removing the lens distortion, unwanted effects like straight lines not matching up on foreground and background will occur. The resulting composite will not look believable.

In a typical workflow one would apply the LensDistort in undistort mode to the original layer, add the 3d elements, do all other compositing work and finally apply LensDistort again with exactly the same settings, but this time in Distort mode to get the original look and distortion back into the image. Please continue reading below.

Contents




Controls Tab


Mode

Undistort removes the lens distortion to create a flattened image. Distort brings the original lens distortion back into the image.


Edges

Determines how samples that fall outside of the frame are treated

Canvas

Pixels outside the frame are set to the default canvas color. In most cases this is black with no alpha.

Duplicate

Pixels outside the frame are duplicated. This results in “smeared” edges, but is useful when e.g. applying a blur, because black pixels would in that case result in unwanted blurring between the actual image and the black canvas.


Clipping Mode
Domain

Retains all pixels that might be moved out of the frame for later re-distoring.

Frame

Pixels moved outside the frame will be discarded.


Output Distortion Map

Outputs the location of pixels as a warped screen-coordinate map, rather than the actual (un)distorted image.


Camera Settings

The options known from the Camera3D are duplicated here. They can either be set manually or connected to an already existing Camera3D.


Lens Distortion Model

Select the appropriate 3D equalizer lens distortion model here. 3DE Classic Model, 3DE4 Anamorphic, 3DE4 Radial Fishey or 3DE4 Radial

Please consult the 3D equalizer manual for further explanation. The sliders in the 3DE Classic LD Model are most likely best suited for manually applying (un)distortion,

without having imported lens data.

Super Sampling

Sets the number of samples used to determine each destination pixel. As always, higher supersampling leads to higher render times.

1×1 bilinear is usually of sufficient quality, but with high lens distortion near the edges of the lens there will be noticable differences to higher settings.

Super Sampling Mode

The type of sample done for each supersample. Nearest will lead to a crisper but more aliased image. Bilinear will give a smoother but also blurrier result.


Load Lens Distortion Data

Allows to load a lens distortion profile, created for example by 3D equalizer.





How to manually determine Lens Distortion

In the ideal world, one would have exact lens-parameters from each lens that was used during the shoot and could use those values to undistort the image.

However, in the real world those parameters have not been taken on set or don’t match.

Another approach is to use a software like e.g. 3DEqualizer which analyzes the footage and delivers a dataset which can be imported into the LensDistort tool right away.

And finally one could try to manually eyeball the amount of lens distortion using the control sliders. To do that one could either look out for horizontal or vertical lines in the footage that are supposed to be straight and straighten them out using the controls, or shoot a full frame checkerboard pattern on set as a reference.





Tips for Lens Distort (edit)

Using the Distortion Map

The distortion map that is produced by this tool contains full pixel coordinates instead of Fusion's usual normalized coordinates (so you should be in float32 mode to start with). To distort an image with it, you need to use the Displace tool. Connect the distortion map to its green foreground input triangle, set the distortion type to XY and put the following expression on both the X and the Y reflection sliders:

1 / Input.Width

This will scale the amount of distortion appropriately so the result looks the same as what the Lens Distort tool would have rendered.



The contents of this page are copyright by eyeon Software.