Aller au contenu

Object Removal Node

By Kriss Norde

The Object Removal uses the DaVinci Neural Engine to remove an object from the frame as automatically as possible.

Overview

DaVinci Resolve Studio only.

The Object Removal works best when removing a moving object that passes over a temporally stable background, or dirt on the lens in a shot where the camera is moving. Smaller objects get better results than larger ones, but results really depend on the footage.

Where to find this node

  • Effects Library: Tools > Effect > Object Removal
  • Quick add: right-click in the Node Editor → Add Tool > Effect > Object Removal

Inputs

  • Input (orange) - the footage you want to remove an object from.
  • Clean Plate (magenta) - a clean plate image, if that source is selected in the controls.
  • Mask (green) - a mask shape (polygon, ellipse, rectangle, etc.) drawn around the object to remove.
  • Effect Mask (blue) - optional. Limits the filter to the pixels inside the mask.

Setup

Connect the footage to the Input, then either a Polygon shape to the green Mask input, or a frame without the object to the Clean Plate input.

1. In the Polygon node, draw a polygon around the object you want to remove. 2. Track the polygon, manually or with a tracker, so the object stays inside it for the whole duration of the clip. 3. Click the Scene Analysis button in the Object Removal controls.

Controls tab

Show Mask Overlay
shows the actual mask used, highlighted in red.

Analysis:

Scene Analysis
analyzes the clip with the selected parameters and replaces the object with the background. Press it again if you change any parameter in this section.
Assume No Motion
if the camera is locked off while the object moves through the shot, check this box to greatly simplify the background analysis.
Scene Mode
the scene analysis method. Background (analyzes the entire image except the object region), Boundary (analyzes the area surrounding the object region) or Object (for an object that moves with the background, like a sticker on a window while the camera moves).
Analysis Boundary
the object's boundary size used for analysis.
Show Scene Mask Overlay
toggles the scene mask overlay on or off to see what is behind it.

Render:

Search Range
the distance, in frames, from the current frame where the node searches for replacement detail. At 20, it searches +/-20 frames, or 40 frames total. Try adjusting it if the mask shows gray fringing on some frames.
Blend Mode
if the patch is filled but doesn't blend well with the background, change the mode. Linear (default) is a simple cloning operation; Adaptive Blend can give better results, except when the edges of the replacement patch have a different color or brightness than the background.

Clean Plate:

Clean Plate Source
Gray Image (effectively no source), Internal (the node takes a best guess at generating a background to fill the frame and integrates it with the frames that could be filled) or External (you connect your own plate from another node).
Build Clean Plate
builds a new clean plate based on the selected Clean Plate Source.
Show Clean Plate
shows the clean plate behind the mask.

Use cases

  • Remove a cyclist crossing the shot by drawing and tracking a polygon around them.
  • Erase dirt on the lens during a camera move.
  • Remove a sticker on a window during a camera move, with Scene Mode set to Object.

Tips

  • The node is not appropriate for all scenes: it works best with small objects that move through the frame, not in front of or behind other objects.
  • For Search Range, you generally get the best results with the smallest range that gives an acceptable result.