restored original area-dependent detection. Fixed contour pointer issue. Added additional logic for filtering/summing optical flow differences.