Text this: Automated thresholding in radiographic image for welded joints