SMS dit: Adaptive thresholding method for PCB defect detection /