Parametized blur and threshold