Fast incorporation of optical flow into active polygons

Gozde B. Unal, Hamid Krim, Anthony J. YezziIEEE TIP 2005

Introduction

Visual tracking—the task of following an object through a video sequence—traditionally relies on a cycle of prediction and correction. Prediction estimates the object's new position based on motion, while correction snaps the boundary to the actual object features in the current frame. Optical flow is the standard tool for prediction, but it is inherently "ill-posed" due to the aperture problem: a single pixel lacks sufficient information to determine its full 2D motion. Conventional solutions involve computationally expensive "regularizers" and continuous contour models (like snakes or level-sets) that are prone to noise and "leaking" into backgrounds.

This paper proposes a high-speed tracking framework that integrates optical flow directly into Active Polygons. By shifting from continuous curves to discrete polygonal representations, the method achieves significant speedups and inherent noise filtering.

Methodology: Direct Integration and Natural Regularization

The core innovation lies in how motion is calculated and applied. Rather than computing a dense optical flow field for the entire image, the algorithm computes flow only along the edges of the polygon.

Optical flow integration along the edges of an active polygon.

The Two-Step Loop

  1. Prediction Step: The vertices of the polygon are updated based on the integrated optical flow from the previous frame. Because the motion is averaged along each straight edge, local pixel-level noise cancels out. This "natural regularization" eliminates the need for the arbitrary mathematical smoothing terms required by traditional methods.
  2. Correction Step: A region-based segmentation process, utilizing statistics of pixels inside versus outside the polygon, refines the boundary to fit the object accurately.

The polygonal structure itself acts as a filter. Since an edge must remain straight, the motion of all pixels on that edge is constrained to be consistent, effectively solving the aperture problem without additional equations. Furthermore, reducing the degrees of freedom (tracking 10-20 vertices instead of hundreds of points) makes the system faster and more robust against local distractions.

Experimental Results

The algorithm was evaluated on diverse datasets, including marine life (rays, fish, flatworms), surveillance footage, and synthetic tests under heavy Gaussian noise.

Tracking performance on a noisy sequence of swimming rays.

Key Findings

  • Efficiency: The polygonal tracker demonstrated an approximately 8x speedup over continuous level-set models.
  • Robustness: In high-noise environments, the tracker maintained a stable "lock" on targets where continuous models typically failed or suffered from severe distortion.
  • Occlusion Handling: The integration of motion prediction allowed the tracker to follow targets (e.g., a black fish) even when partially obscured by other objects—a scenario where spatial-only trackers often fail.

Discussion and Limitations

While highly efficient, the use of fixed-topology polygons presents challenges for tracking objects that split or merge, a task handled more naturally by level-set methods. Additionally, while polygons can track deforming objects like swimming worms, extremely complex non-rigid shapes may require a high vertex count, potentially reducing the speed advantage. Finally, the system requires an initial manual or automated outline of the object in the first frame to initialize the tracking loop.

In conclusion, by leveraging the geometric constraints of polygons, this framework provides a robust and high-speed alternative to traditional continuous contour tracking, particularly effective in noisy or real-time applications.

Summary updated

BibTeX
@article{unal2005fast,
  author = {Gozde B. Unal and Hamid Krim and Anthony J. Yezzi},
  title = {{Fast incorporation of optical flow into active polygons}},
  journal = {IEEE Trans. Image Process.},
  year = {2005},
  doi = {10.1109/tip.2005.847286},
}
Figure