Skip to content

dustinfreeman/smootour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

smootour

A temporally-smoothed contour class for OpenCV, with an approach similar to implicit surfaces.

Smootour on YouTube!

Inspired by [my question on Stack Overflow] (http://stackoverflow.com/questions/23525856/simplifying-a-contour-to-a-fixed-length-to-smooth-over-several-frames), where one poster observed that temporally-averaging points around a contour was not a feasible approach. This should be a better, by avoiding defining specific points between frames.

How to use smootour:

Smootour smootour(img_height, img_width);

//in loop
  //thresholded_image is a binary image
  
  smootour.update(thresholded_image);
  std::vector<std::vector<cv::Point> >smooth_contours = smootour.get_contours();

About

A temporally-smoothed contour class for OpenCV

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages