
CPU dense optical flow between Image frames using a selectable classical algorithm (method = DIS, Farnebäck, or TV-L1), emitting one Maybe<OpticalFlow> per frame, with a source-resolution (H, W, 2) tensor when a comparison is available and no model service or GPU required.
Recorded video frames are turned into an optional dense motion field. Connecting the flow output to Visualize Vector Field makes the platform insert the unpacking steps, so Nothing never reaches the vector-field visualizer.
A streamed video URL is reduced to optional dense flow for motion analytics.
frame_diff + 1 frames have been seen (and on any frame whose size differs from the buffered ones) the output is Nothing and the buffer reseeds. Consumers must handle Nothing.in_0 clears the buffer and emits Nothing. The following frame_diff nonempty frames also emit Nothing as history is rebuilt, so flow never spans the gap. A present flow is always at the source frame resolution.method selects the algorithm and which knobs apply: dis_preset, dis_finest_scale, dis_patch_size, dis_patch_stride, dis_gradient_descent_iterations and dis_variational_refinement_iterations only affect DIS; pyr_scale, levels, winsize, iterations, poly_n, poly_sigma only affect Farnebäck. TV-L1 takes no extra knobs. DIS is the default.frame_diff is 1 to 120, dis_patch_size and dis_patch_stride 1 to 128, dis_finest_scale 0 to 10, dis_gradient_descent_iterations and dis_variational_refinement_iterations 0 to 1000, levels 1 to 32, winsize 3 to 255, iterations 1 to 1000, pyr_scale below 1, poly_sigma at least 0.001, and poly_n is '5' or '7'.model_size resizes both frames to the chosen width and height before flow, then resizes the field back to source and rescales each component by the source-to-processing dimension ratio. Leaving it unset uses the source resolution.frame_diff grayscale frames in worker state plus the current frame at source resolution: about 250 MB at the largest gap of 120 for 1080p input, about 1 GB for 4K. Copying state and computing flow require additional memory.with_respect_to_second_frame (default true) gives forward flow at earlier-frame coordinates; false swaps the frame pair and negates the result, expressing forward motion at later-frame coordinates. frame_diff widens the temporal gap between the two compared frames.live-test prerelease
Automated release