Center of Gravity Tracker

COG of a closed contour or a contrasted object with the background. The detection is based on level of grays in the image and threshold can be defined automatically for dark, bright objects or manually using sliders.