Text this: Discontinuities detection in welded joints based on inverse surface thresholding