A GLSL-based optical flow processor that processes video frames from various sources using GPU acceleration.
README
ofxMotionFromVideo
GPU-based optical flow.
Introduction
A GLSL-based optical flow processor that can consume pluggable frame sources.MotionFromVideo is now a shell around source interfaces like CameraFrameSource, VideoFileFrameSource, and ExternalFrameSource, so addons and apps can either use the built-in camera/file wiring or feed externally owned FBOs.
License
ofxMotionFromVideo is distributed under the MIT License. See the LICENSE file for further details. Just add my name somewhere along your project Steve Meyfroidt whenever possible.Examples
example_MotionFromVideoshows direct camera-source wiring and optional dropped file input.example_motionFileInputstarts idle and waits for an optional dropped video file.example_VideoMotionIntoFluiddemonstrates external-frame wiring into the processor.
Dependencies
- ofxRenderer contains the GLSL code itself
ofxAddons