ENH: threhold control for level set