Added some filtering steps. The thresholding to black and white needs to be adjusted to produce minimal noise, but strong edges. That could also be done in the Laplacian or Gaussian filters beforehand.