[mod] add threshold to reduce noise in contours (not that performant ;))