Skip to content

Nodes · Transform

PlanarTracker

Transformv1core

Overview

Tracks a whole flat surface - a screen, a sign, a wall, a tabletop - as a plane, using every pixel inside a shape rather than four corner points. Draw a shape around the surface at a frame, press Track, and the corner-pin surface rides it through the shot; drag a corner on any frame to correct a slip and only the frames around it re-track. Each shape is a layer: the top of the list is closest to the camera and holds the layers below it out, so a hand drawn over a screen keeps its pixels out of the screen's track. Any matte can hold a layer out too. Low-texture surfaces track because the whole region is matched, not just corners, and brightness changes are solved per frame rather than mistaken for motion. Export a CornerPin, a Stabilize, a Transform or a four-track Tracker, linked or baked.

Inputs

InputWhat it takes
srcthe source image
holdout—
insert—

Outputs

OutputType
outImage

Parameters

ParameterTypeDefaultWhat it does
shapesShapes—Not documented yet.
layersLayers—Not documented yet.
ref_frameFloat1.0The frame the shape was drawn on. The plane is the identity here and every other frame is matched back to it, so error never piles up along the shot.
tracksTextNot documented yet.
activeInt0Which layer the surface, the track buttons and the exports belong to. Layers are listed top (closest to the camera) to bottom.
surfaceTextThe corner-pin rectangle: four corners placed anywhere, including off-screen, independent of the tracked shape. They ride the track. Fit surface to image sets them to the input's box.
surface_keysTextNot documented yet.
show_surfaceBooltrueDraw the surface in the viewer. With Show grid on, a grid is drawn across it so a slow drift is easy to see.
show_gridBoolfalseDraw a grid across the surface so a slow drift is easy to see.
translateBooltrueMotion types the solve may use. All on is a full perspective track. Turn off what the surface really does not do - a sign on a locked-off camera only translates - and the track is steadier. Rotation, scale and shear are taken about the shape's own centre.
rotateBooltrueMotion types the solve may use. All on is a full perspective track. Turn off what the surface really does not do and the track is steadier. Rotation is about the shape's own centre.
scaleBooltrueMotion types the solve may use. Scale is about the shape's own centre.
shearBooltrueMotion types the solve may use. Shear is the affine part beyond rotation and scale.
perspectiveBooltrueMotion types the solve may use. Perspective lets the plane lean; off, the track is affine.
channelsChoicelumaWhat the matcher looks at: luma, all three channels, or one channel - useful when the surface's detail lives in one, such as a red sign on green. lumargbredgreenblue
prefilterChoicenoneHow the plate is prepared for matching. Contrast stretches a flat surface's detail; median calms a noisy plate. nonecontrastmedian
clamp_whitesBoolfalseClamp values over 1 before matching, so a flaring highlight or a specular glint does not dominate the solve. Off by default: in a scene-linear plate, brightness over 1 is usually real detail on the surface.
featuresInt120How many corners are tracked inside the shape to catch large motion between frames. The region match then refines the result; more features cost time, fewer may miss a whip pan.
feature_spacingFloat10.0Minimum distance, in pixels, between tracked corners, for an even spread over the surface.
reachFloat128.0The farthest, in pixels, the surface may move between two frames. Raise it for fast motion.
smoothnessFloat0.0Jitter smoothing on the stored track, 0 to 1. 0 keeps every frame as matched; higher calms a jittery plate at the cost of a little lag on sharp moves.
photometricBooltrueSolve a brightness and contrast change per frame along with the motion - a screen's glow, a passing light, flicker. On by default; off only when the surface's exposure is truly steady.
max_errorFloat0.08Tracking stops at a frame whose match is worse than this, rather than wandering on. 0 never stops. The per-frame error shows on the path and in the curve editor.
retrack_windowInt3When you correct the surface on a frame, the track is redone this many frames either side of it, easing into the old track at the ends so nothing jumps. Frames further away are left exactly as they were.
lensTextThe plate's lens distortion, taken from a LensDistort node with Lens from. With it the surface is tracked with the lens taken out - on a wide lens a flat surface is only truly flat there - and the surface and the exports land back on the distorted plate. Empty: no lens.
surface_sizeFloat2[0.0, 0.0]The surface's real width and height in metres (a 1.2 by 0.8 m screen: 1.2, 0.8). Needed for Solve camera, which turns the track into a 3D camera that sees the surface at that size.
focal_mmFloat0.0The lens's focal length in millimetres, on a 36 mm wide film back, if you know it. 0: Solve camera reads it from the surface's perspective.
mask_modeChoicealphaHow the holdout input holds the layers out: by its alpha or its luminance, either way round. A key, a roto, a Crucible matte or a motion matte all work here. alphainverted_alphaluminanceinverted_luminance
viewChoicesourceSource shows the plate. Stabilised shows the plate locked to the surface - the fastest way to see a slip, since anything on the plane should stand still. Insert shows the image wired into insert pinned onto the surface over the plate, as the final comp will have it, so you judge the track on the real result. Holdout is a matte: white where the surface may show, black where something is in front of it (the layers above, the holdout input) - what Screen replace masks its Merge with. sourcestabilisedinsertholdout
motionblurFloat0.0Motion blur on the insert view, from the surface's own motion: 0 = off, 1 = the everyday quality (10 samples). A CornerPin exported from here carries the same setting.
shutterFloat0.5Shutter time for that motion blur, as a fraction of a frame (0.5 = 180°). Match the plate's camera.
shutter_offsetChoicecentredWhere the shutter sits: centred on the frame, or opening at its start or end. centredstartend
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).