Settings and Macros/BlurredEdgesRestoration Description

From VFXPedia

< Settings and Macros
Revision as of 10:40, 15 March 2012 by Gringo (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search
BlurredEdgesRestoration Description

[ Main Manual Page ]


  • Other macro tools in this cathegory:
  • [AlphaEdgeCCv]
  • [BlurredEdgesRestoration]


BlurredEdgesRestoration v04-2 Download

There is always an issue with keying defocused and motion blurred objects: the color on the edges is mixed with the color of the background.
Basically, the problem arises even with static objects which are in focus, because there is always some softness in the practical image.

The most obvious solution to this is either to suppress (desaturate) the background color or to shrink the objects' edges.
In first case, you may have a problem if the background luminance is different, for instance, if you key dark objects against white (like trees against the sky)
In second case, the blurring may be so strong, that the objects disappear completely with shrinking.

This macro expands the actual color of the objects so that it extends through the entire blurred areas, replacing the background color mixture.

Image:BlurredEdgesRestoration_Keyed.jpg Image:BlurredEdgesRestoration_Shrinking.jpg

Image:BlurredEdgesRestoration_Suppression.jpg Image:BlurredEdgesRestoration_Result.jpg‎

Image:BlurredEdgesRestoration_EdgeMask.jpg


This tool can also solve the edging problem which happens due to the data compression or chromatic aberrations or any other edge artefacts.

The workflow is the following:

  1. Connect the macro after the keyer
  2. Set the Output Image parameter to Pre-Shrunk Image
  3. Adjust the Pre-Shrink parameters so that the shrinking was as little as possible to just cut BG color spill completely
  4. Switch the Output Image to Extended Color to check with what colors you are going to fill the edges, adjust the shrinking if nessesary
  5. Switch the Output Image to Final Result
  6. Set the Extend parameters so that you see no sharp borders in the blurred areas. Keep the parameters values as small as possible
  7. Adjust the Soften Border group so that you don't see a border between the internal untouched areas and the recolored blurred areas

The macro outputs the edges mask to the Coverage channel, you can use it as a mask to re-apply grain.



External Inputs

The following inputs appear on the tool's tile in the Flow Editor:

Input Image:Node_Input_Gold.gif
Source image. Required.
Effect Mask Image:Node_Input_Lavender.gif‎
Defines the areas where the edges are being restored. Optional.





Controls Tab


Pre-Shrink Amount

Slider control. Srinks the edges preliminary to cut the background color completely.

Pre-Srink X Multiplier

Slider control. Adjusts the horizontal amount of shrinking.

Pre-Srink Y Multiplier

Slider control. Adjusts the vertical amount of shrinking.

Extend Amount

Slider control. Extends the internal objects' color to cover the entire blurred edges area.

Extend X Multiplier

Slider control. Adjusts the horizontal extension amount.

Extend Y Multiplier

Slider control. Adjusts the vertical extension amount.

Soften Border

Slider control. Softens the border between the restored edges and the internal unaffected parts of the objects.

Soften Border X Multiplier

Slider control. Adjusts the horizontal amount of border softening.

Soften Border Y Multiplier

Slider control. Adjusts the vertical amount of border softening.

Size Mode

Multi-button control. Lets you choose between standard Fusion units related to the image width and pixels. Setting the parameters in pixels is handy in case of narrow edges whose width may be estimated in pixels more easily.

Output Image

Multi-button control. Displays different stages of the process to adjust the parameter groups more precisely.




Download BlurredEdgesRestoration v04-2

Development History and Discussion on PigsFly



Gregory Chalenko

www.compositing.tv