Adds a dense displacement field (e.g. optical flow) to the remap coordinates: map_x += scale * flow_dx, map_y += scale * flow_dy. Feed it the HxWx2 (dx, dy) field from 'CV Optical Flow (Farneback)' (or any vector field) to warp an image ALONG that motion with the low-level cv2_remap. 'scale' applies only a fraction of the motion - the key to optical-flow frame interpolation: because remap samples BACKWARD, scale = -t pulls a frame a fraction t of the way along its flow toward the next frame (so the moving content lands at the in-between position SHARP, not ghosted like a raw cross-fade). scale = 0 is the identity, 1 applies the full motion, values past 1 or negative extrapolate. Like every remap node it rewrites an incoming map, so it composes with lens/wave/homography distortions in one resampling pass.
By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Flow Map
map_x
map_y
flow
map_x
map_y
◄scale1.00►
Categoryimage/CV/remap
Inputs (4)
Name
Type
Default
Description
map_x
NPARRAY
Incoming source-x coordinate map to displace. Start the chain with 'CV Identity Map'; further remap nodes compose onto it.
map_y
NPARRAY
Incoming source-y coordinate map (must share map_x's shape - both come from the same chain).
flow
NPARRAY
HxWx2 float (dx, dy) displacement per pixel, e.g. the 'flow' output of 'CV Optical Flow (Farneback)'. Resized to the map if the sizes differ.
scale
FLOAT
1.00-100–100
Multiplies the flow before adding it. 1 = full motion, 0 = identity, -t = sample a fraction t of the way back along the motion (frame interpolation at time t), negative = reverse the motion.