Choosing Filter Parameters for Non-Linear Image Filtering