gaussian filter, thresholding is added