Turn a panning video into a wide panoramic mosaic - the "VideoBrush" strip-mosaicing technique (Peleg et al.) implemented in Go on top of GoCV / OpenCV.
Input - a panning video:
Output - the mosaic panoramas video:
- Extract frames - decode the video, trim black borders, and detect the dominant pan direction so motion runs horizontally.
- Align adjacent frames - track Shi-Tomasi corners across each consecutive pair with Lucas-Kanade optical flow, then fit a RANSAC partial-affine transform reduced to horizontal translation, accumulated against a central reference frame.
- Warp - project every aligned frame onto a shared canvas in parallel.
- Stitch - sweep a column offset across the frames, painting each frame's thin strip; optional feather-blending hides the seams.
GoCV requires OpenCV (4.x) installed locally - see the GoCV install guide.
go get github.com/nit4y/mosaic

