Add TrackBar to change the threshold value