1. A method comprising: capturing an X-Ray image of a weld joint, wherein the X-Ray image comprises dark areas and bright areas, and wherein the dark areas and the bright areas have gray scale information that indicates a luminance intensity; executing a gamma correction algorithm on the X-Ray image by using a standard power law transform to enhance a contrast of the dark areas and the bright areas, wherein the gamma correction algorithm facilitates a differentiation between the dark areas and bright areas, and wherein the gamma correction algorithm is executed on the gray scale information associated with each pixel in the X-Ray image [p min , p max ], and wherein p min indicates the gray scale information of a darkest pixel in the X-Ray image, and wherein p max indicates the gray scale information of a brightest pixel in the X-Ray image; passing, upon execution of the gamma correction algorithm, the X-Ray image through one or more de-noising filters in order to remove noise from the X-Ray image; identifying, upon removing the noise, a fragment of the X-Ray image that comprises at least one of the dark area with respect to one or more neighboring areas, wherein the at least one of the dark areas is identified by using a gradient discontinuity algorithm, and wherein the at least one of the dark areas indicates a presence of a defect in the weld joint; and segmenting the X-Ray image into one or more segments based on the identification of the at least one of the dark areas in the X-Ray image, wherein the segmenting facilitates an identification of the defect in the weld joint, and wherein the capturing, the executing, the passing, the identifying, the segmenting, or a combination thereof are performed by a processor.