Gabor filter and thresholding