Repaired - reset function and gauss. filtering in uiThreshold.py