You are on page 1of 7

Image processing for radiographic films of weld inspection

F. Faramarzi and M. Motamedi

Abstract - One of the professional domains in On the other hand, there are many different
industry is weld inspection which deals with welding methods that depend on the accuracy of
investigating the inside or outside (surface) of the the process; the weld designer chooses the one
weld to trace any defects which may cause failure in which is appropriate.
the system. Likewise, one of the methods of weld
inspection is radiographic film interpretation (RI). In Meanwhile, one of the most important areas in
this method the specific weld will be captured in industry is safety check. In other words, we can
radiographic films and then an inspector will consider if, in a site, the construction of a reactor is
interpret them to identify any defects similar to the
job that an orthopaedist does.
finished and every joint is welded and ask is it
The aim of this paper is to develop a fully ready to go in the line and start working because,
automatic computer vision system to analyse weld’s after doing construction in every production
radiographic films for defects detection. For this, the industries, the quality control part should check the
adaptive method of smoothing plus thresholding has
been applied first. This is followed by a components, quality, quantity and many other
morphological operation to remove small objects, and parameters which are important for the quality of
then further smoothing has been used and finally by the product and effect efficiency of that.
applying a boundary detection method, the boundary
In addition, the other famous and vital part of
of the defects has been delineated. To validate the
software, the method was applied on several weld quality control is inspection that investigates if the
radiographic films which possess distinct defects. The product is ready to go on line or has some problems
system was able to detect all defects which were and should be repaired. In the welding field, like
visually confirmed by an expert.
many other industries, after operation by welder,
the weld inspector should inspect the work piece to
I. INTRODUCTION
see whether it has any defects such as crack,

W elding is the joining of materials in the


welding zone by the application of heat
porosity and so on or not (Kwon, et all. 2003).
Imagine there is a reactor in a refinery site which
and/or pressure, with or without the addition of works in around 1000 degree of Celsius and more
filler material. This is often done by melting the that 500 bars pressure. If this reactor failed, it
work pieces and adding a filler material to form a would be like an atomic bomb, which can destroy
pool of molten material (the weld pool) that cools its entire environment within at least 1 kilometre
to become a strong joint. Auxiliary materials, for radius. Thus the refinery, which has this reactor,
example shielding gases, flux or pastes may be spends much money to inspect its components like
used to render the process possible or to facilitate welds per year. The inspection engineering team
it. The energy required for welding is supplied by inspects all of the welds that the reactor has by
outside sources. The materials could be sheets, means of different methods dependent on the
plates, pipes or some industrial productions such as
condition and accuracy of the job (Vandevoorde
boiler, reactor, and heat exchanger and so on
and Josuttis, 2003).
(Agreste, 2006).
There are several different types of weld
inspection which are briefly described below. It
should be considered which part of weld is
Manuscript received May 14, 2011. This work has been
supported by the Kingston University London, Engineering important the most, which means that the inspector
Faculty. is looking for a crack on the weld surface or inside
Farrokh Faramarzi, MSc. Mechatronics Systems Student,
Kingston University London (United Kingdom), (Phone: it, he is looking for any defect whether it is a coarse
+44(0)7411304849, e-mail: k1041765@kingston.ac.uk) one or very fine one, he is looking for one
Mohammadreza Motamedi, MSc. Mechatronics Systems
Student, Kingston University London (United Kingdom),
particular defect or cluster shape of defects.
(Phone: +44(0)7783839225, e-mail: k1043603@kingston.ac.uk) Depending on these and many other factors the
The authors are currently writing their thesis about weld designer can choose a method to inspect the
designing and manufacturing a mobile robot which should go
through a pipe and inspect the inside surface automatically by
weld.
digital image processing. One of the very prevalent methods of inspection
in industries is Radiographic Testing Interpretation
(RTI). In this way, a technician captures
radiographic films of welds, then a weld interpreter
starts to interpret the films and find defects visually
by means of specific light (the job that an
orthopaedic doctor does). The interpreter does this
by using his knowledge and experiences and
recognising the different kinds of defects.
On the other hand, in electrical engineering and
computer science, computer vision system is any
(computerised algorithm) form of image
processing for which the input is an image, such as
a photograph or video frame. Moreover, the output
of image processing may be either an image or a
set of characteristics or parameters correlated to the
image. Furthermore, the purpose of this research is
to develop a fully automatic computer vision
system to analyse weld’s radiographic films for
defect detection.
The rest of this project is organized as follows:
the next section describes the image acquisition
radiographic films of welds and then four different
prevalent types of weld defects in industry will be
explained. Following that image processing Fig. 1. Section view of a weld, welding two sheets (a),
algorithm will be shown in four steps, and finally section view of the weld (b), radiographic film of the
the experimental results of other images would be weld (c) sheets can be seen. The radiographic film is [3]
illustrated.

II. METHODOLOGY
III. TYPES OF DEFECTS
A. Image acquisition In this paper from all different types of defects
In Figure 1 a section view of a weld between two in weld inspection, four major ones will be
captured from the cap (top) of the weld and by discussed which is seen in many troubled materials
developing the film, it will be available for the in industry. They are Burn Through, LOF, LOP and
interpreter. Slag.
For capturing the image of the weld, the camera
should be located above the specimen with
particular distance to emit the X-ray. Likewise, the A. Burn Through
raw-film should be placed behind the specimen and A Burn Through is a defect which is a localised
after the film processing; the final image will be collapse of the molten pool due to excessive
ready to interpret by inspector. penetration resulting in a hole in the weld run
(Figure 2). In this defect the edge of the root will
not be sharp and it is one sign to recognise it in the
radiographic film. In Figure 3 a film of Burn
Through is shown.
In this film (Figure 3) there are two separated
areas in the middle of the weld which the intensity
of them is less than other parts.
Fig. 6. Lack of Penetration (LOP)

Fig. 7. Radiographic film of LOP (Lack of Penetration)

Fig. 2. Burn Through [3] D. Slag


The other prevalent defect in weld inspection is
Slag (Figure 8). Interpass slag inclusions usually
consist of non-metallic impurities that solidified on
the weld surface and were not removed between
weld passes. The specific properties of this defect
that can be found out from the radiographic film
Fig. 3. Radiographic film of Burn Through
(Figure 9) is as irregularly shaped darker density
spot, usually slightly elongated and randomly
spaced.
B. Lack of Fusion (LOF)
One of the other defects which can be found in
weld inspection is called Lack of fusion (LOF). In
this defect during the welding, the side wall of the
sheet and melt material does not fuse together
(Figure 4 and 5). Consider Figure 5, there are some
Fig. 8. Slag in the weld
black lines in the same direction which shows LOF.

Fig. 4. Lack of Fusion (LOF) Fig. 9. Radiographic film of Slag

IV. IMAGE PROCESSING ALGORITHM

Step one, smoothing plus thresholding


So that the image is processed in black and
white thresholding should be used. Then a
smoothing operation can be applied to clean the
Fig. 5. Radiographic films of LOF (Lack of Fusion)
image. However the question is which one should
C. Lack of Penetration (LOP) be used first. As it can be seen in Figure 4 the
One of the other common defects in welding is results of thresholding and smoothing are very
Lack of penetration (LOP), in this defect the melt similar, but by looking closely you can see some
weld material cannot reach to the root of the weld small differences around the holes, which indicates
and the root will not be welded (Figure 6). that the latter technique should be used. More
Considering the radiographical film of LOP (Figure specifically, the aim of image smoothing is to
7) the edges of the weld will stay sharp like a long enhance the resolution of camera images, therefore
(or short) line. will be the primary image processing algorithm
followed by thresholding.
region which we need here. The results from
Figures 11 and 12 show, it is appropriate to dilate
the image only to erode it (do not use closing
operation). This is because eroding the image the
boundary will shrink the right hole and get a bad
result. After using many other morphology
operations such as erosion, opening, closing, and
skeletonisation, it was found that using a closing
operation after dilation yield’s a positive result
(Figure 13).
Fig. 10. Deciding which step is better at first smoothing then
thresholding (a) or thresholding then smoothing (b)

The purpose of this process is to specify two


defects (Burn Through) in the film so it is possible
to segment the objects in the image. Segmentation Fig. 13. Using closing operation after Figure 12
refers to the operation of partitioning an image into
component parts or into separate object so that only
the defects are visible. One of the most prevalent Step three, Smoothing
uses of segmentation is thresholding which has As Figure 13 shows, the edges of the cap are
different uses; single thresholding, double much unshaped and another command should be
thresholding, adaptive thresholding and global used to clean it. So image smoothing has been used
thresholding. This image was chosen since it was again to solve this problem; however there are
needed to threshold by means of histogram several types of smoothing such as average, disk,
computing, and global thresholding. By using Gaussian, laplacian, log, motion, prewitt, sobel,
thresholding all of the pixels in an image change to unsharp, that can be utilised. After visual testing
either 0 (black) or 1 (white). The threshold in this and examining of them, the most efficient one will
image is 0.3882, which means that all of the pixels be chosen and the best result will be achieved. See
under 0.3882 become 0 and all pixels above 0.3882 Figure 14. In this step, the edge was examined for
become 1. specifying which holes a programme had to be
written for by means of edge function. It also tested
Step two, Morphology operation different types of edges such as sobel, prewitt,
The next step is to use Morphology operations, roberts, canny and zerocross. The best one, which
for continuing image is in Figure 10. First the was sobel, did not give suitable result (Figure 15).
boundaries of the welds should be connected via a
closing operation. By means of closing operation
the objects connect to each other and fill the holes
in a region, as well as eliminate inlets on the
boundary. See Figure 11. Fig. 14. Using smoothing, disk type after Figure 13

Fig. 11. Using closing operation (Morphology)


Fig. 15. Using edge function
On the other hand, since the closing operation
consists of dilation and then erosion operations Step four, Boundary functions
dilation was used as well (Figure 12). After testing is completed a boundary should be
drawn around the holes to specify defects. Before
identifying the boundaries, the black and white
pixels should be reserved, since the boundary
function can detect white regions only and the
specified regions are black (Figure 16).
Fig. 12. Using dilation operation (Morphology)

As you know dilation operation allows objects


to expand, connects disjoint objects and enlarges a
Fig. 16. Convert the black and white pixels to each other

By writing boundary functions in the software it


is possible to get all of the holes in the image Fig. 19. Processed image of radiographic film of Burn Through
however the problem is that the computer will
recognise the two big spaces in two sides of holes V. EXPERIMENTAL RESULTS AND
as objects and draw boundary around them as well DISCUSSION
(Figure 17). This part has illustrated the final results, written
by MATLAB software, by comparing the primary
In Figure 17 the software recognises four holes. images via visual inspection. Likewise, more
One positive solution is to introduce the two images will be processed to show that different
specified holes to the computer for obtaining the images can be processed by the same program.
boundary. In order to do this, labelling commands Here, radiographic films with several specific
defects have been shown.

A. Burn Through
As it has been shown in the first part of the
process as well as these images, it is possible to
achieve the best solution and reduce the time. In
the last image (c) the two cavities in the pipe are
marked by the red circles (Figure 20).

Fig. 17. Getting boundary (not acceptable result)

have been used. By means of this function all four


holes will be separated and then function label 2
and 3 will be added to each other. See the result in
Figure 18.

Fig. 18. Adding label 2 and 3 from Figure 17


Fig. 20. Burn Through
When the boundary functions are written, it
would just specify the two holes. Figure 19
indicates the boundaries by showing the original
image.
B. Lack of Penetration (LOP)

Fig. 24. Slag

Fig. 21. Lack of Penetration (LOP)


Regarding the programs that we should write
C. Lack of Fusion (LOF) for the computer, the images will be processed and
recognised so that we know type and distance of
each image.
As a final point, it is interesting to note that by
designing this program the films would be
interpreted automatically along with detailed
computer reports. Regarding the advantages of this
idea, we can save time and, increase accuracy, as
that it has been mentioned above.

VI. Conclusion
Fig. 22. Lack of Fusion (LOF)
Taking everything into consideration, the aim
of this paper was to show that image processing has
been done for some radiographic films and the
related defects have been specified in each image
by this process. As it had been shown before, they
have been done by some prevalent operations in
image processing such as point processing,
filtering, image smoothing, edge detection,
segmentation (using thresholding), boundary
tracing, region labeling, and Morphology
operations. These functions lead us to write the
Fig. 23. Lack of Fusion (LOF)
program which takes the image as an input and
gives the defects and their details as an output.
D. Slag (Pudney, 1998)
A method has been developed to detect the
One of the major problems in film are the many defect in the weld. Using the radiographic images
different possible interpretations of each observer. for this digital image, several image processing
Each interpreter has their own idea and although algorithms were applied and the system has been
most of the time the interpretations are the same, validated by visual judgment. Finally the result is
some complex films interpreters have different very encouraging and shows the potential use of
thoughts. the system for more application in the field of weld
Moreover, manual interpreting takes a lot of inspection.
time. This means that a qualified interpreter should To sum up, by developing the technology in
watch the film carefully, recognise the defects and industries and considering that everything has been
write report of it. changing daily, we should find solutions for saving
time and keeping accuracy in each process. It is
obvious that the conclusion vision and image
processing can have a bright future in weld
inspection. In order to achieve this, digital image
processing is definitely one of the most critical
technologies for solving numerous problems that
human face with in reality.

REFRENCES

[1] S. Agreste. (2006) Watermarking for digital


images, Ph.D. Thesis, Milan University.
[2] S. Agreste, G. Andaloro, D. Prestipino, L.
Puccio. (2007) An image adaptive, wavelet-
based watermarking of digital images, Journal
of Computational and Applied Mathematics,
13–21.
[3] D. Johnson. (2004) Criteria in hypothesis
testing. [Internet].
<http://cnx.org/content/m11228/1.4>.
[Accessed 11th January 2011].
[4] S. Kwon, S. Lee, K. Kwon, K. Kwon, K. Lee,
(2003) Watermark Detection Algorithm using
Statistical Decision Theory, in: SPIE
Proceedings Series International Society for
Optical Engineering Proceedings Series, vol.
5020, pp. 322–329.
[5] D.P. Mukheriee, S. Maitra, S.T. Acton. (2004)
spatial domain digital watermarking of
multimedia objects for buyer authentication,
IEEE Transactions on Multimedia 6 (1).
[6] S.M. Gibson, P.A. Coe, A. Mitra, D.F.
Howell, R.B. Nickerson. (2005) Coordinate
measurement in 2-D and 3-D geometries
using frequency scanning interferometry,
Optics and Lasers in Engineering. pp 815–
831.J.Valin,E.Gonc-alves, F.Palacios,J.Pe´
rez. (2005) Methodology for analysis of
displacement using digital holography, Optics
and Lasers in Engineering. pp 99–111.
[7] D.L.B.R.Jurjo, C.Magluta, N.Roitman,
P.B.Gonc-alves. (2005) Dynamic analysis of
slender columns under self-weight using
digital image processing techniques,
International Congress of Mechanical
Engineering.
[8] D. Vandevoorde, N.M. Josuttis. (2003) C++
Templates the complete guide, Addison-
Wesley.
[9] C. Pudney. (1998) Distance-ordered
hemitropic thinning: a skeletonization
algorithm for 3D digital images, compute.
Vision image understand. pp 404–413.
[10] Chen, L., Wang, C.L., Francis, C.M. (2003).
A grid middleware for distributed Java
computing with MPI binding and process
migration supports. Journal of Computer
Science and Technology. pp 505–514.

You might also like