Improving Automatic Detection of Defects in Castings by Applying Wavelet Technique | Synapse