# Weld Inspection Based on Radiography Image Segmentation with Level Set Active Contour Guided Off-Center Saliency Map

Authors: Mohamed Ben Gharsallah; Ezzeddine Ben Braiek
Journal: Advances in Materials Science and Engineering
 (2015)

---

## Abstract

Radiography is one of the most used techniques in weld defect inspection. Weld defect detection becomes a complex task when uneven illumination and low contrast characterize radiographic images. In this paper we propose a new active contour based level set method for weld defect detection in radiography images. An off-center saliency map exploited as a feature to represent image pixels is embedded into a region energy minimization function to guide the level set active contour to defects boundaries. The aim behind using salient feature is that a small defect can frequently attract attention of human eyes which permits enhancing defects in low contrasted image. Experiment results on different weld radiographic images with various kinds of defects show robustness and good performance of the proposed approach comparing with other segmentation methods.


---

## Body

## 1. Introduction

Nondestructive testing (NDT) is widely used in many fields, principally for serious applications where malfunction can be catastrophic such as welds of pressure vessels, aircraft, and power plants. One of the most famous techniques used in weld inspection is radiography which is based on the transmission of X-rays or gamma rays through an object to generate a radiological image on a photographic plate (Figure1). Unfortunately, the traditional interpretation of radiography images by artificial methods is subjective, time-consuming, and easy to cause fatigue, in order to improve the automation level and avoid drawbacks of manual interpretation; it is desirable to develop some forms of computer-aided systems to assist the human interpreter in evaluating the quality of welded joints. In general, this system of automatic inspection should have the following stages [1, 2]; after digital image acquisition only a region of interest (ROI) is further processed, some preprocessing may take place like noise reduction and contrast enhancement and then segmentation of regions that may represent defects is done; as soon as the defects are segmented features can be extracted and then given as input to classifiers to detect possible defects and eventually to identify the exact defect type. Moreover the defect dimensions are compared to some acceptance criteria defined by experts or international standards and a decision is taken on the acceptability of the monitored weld.Figure 1
Weld radiography image acquisition [6].As shown in Figure2, weld radiography image contains two main parts: the base metal part and the weld seam part. The weld region is brighter than the weld area. Defects are randomly found at the weld area with different small shapes: circular and rectangular. Weld flaws can be categorized in various types like incomplete penetration, slag line, slag inclusion, cracks, undercuts, porosity, and wormholes. Porosity or gas cavity has rounded contours and dark shadows, cracks are fine line straight or wandering in direction, slag are line more or less interrupted parallel to the edges of weld. Radiography images are characterized by a low contrast between defects and background (weld) and small defects with blurred and unsharpened edges. Moreover, uneven illumination is frequently found in radiography images which is a nonuniform light distributed generally at the middle of weld area. For weld inspectors, these factors make defect localisation and segmentation with conventional segmentation methods a complicated mission. To overcome these difficulties and to facilitate human weld inspection, we propose in this paper an image segmentation method for radiography weld defect extraction.Figure 2
Example of weld radiography image with defects: porosities (circular) and a longitudinal crack.In literature many radiography weld defect detection methods are proposed [3]. We find local and global thresholding approaches [4], texture analysis based methods [5], watershed [6], artificial neural network [7, 8], and active contours [9]. Segmentation with deformable models or active contours seems to be quite suitable for radiographic images to extract defects because of many reasons, principally the ability of integration of various image properties such as edge and region information with minimisation methods and curve theory. Several research works have been explored and many active contour models are proposed. In general active contour models can be categorized into two different classes: edge and region based models. Edge based models [10, 11] uses the edge information like image gradient to drive the active contour toward the object boundaries and to stop it there; these kinds of models are sensitive to noise and to initial active contour position which should be initialized near object boundaries. Moreover, the boundary leakage problem at weak edges is a major drawback of edge based models since they rely much on the gradient value. Compared with edge based models, region based models depend on statistical information inside and outside of regions delimited by the contour; thus they are less sensitive to the noise and to poor edges. Moreover, they are less dependent to the initialization since they exploit the global region information of the image statistics.One of the most popular region based approaches is the Chan and Vese model well known as C-V [12]. C-V model energy function is a simplification of Mumford Shah formulation [13]. It has been successfully applied in many applications for images with two regions; this model is less sensitive to image noise and contour initialization which can be located everywhere in the image. However, the major weakness of C-V model is the segmentation of images with intensity inhomogeneities where pixels of the same object have a nonuniform gray level intensity distribution. To resolve this problem, active contours with localized energy functions have been proposed. The idea is to compute statistical information only in a local window in the pixel neighbourhood. One of the famous local region based active contours is proposed by Wang et al. [14, 15] called the local binary fitting (LBF) model. In this method two fitting energies are used to calculate LBF energy function that approximates the local image intensities means inside and outside of the contour using a Gaussian kernel. The LBF model solved the problem caused by intensity inhomogeneity. However, this model is sensitive to initial contour location and it increases greatly the computational complexity. Zhang et al. [16] proposed a selective local global level set active contour known as IVC model which introduces a new region signed pressure force (SPF) function. Zhang model uses a Gaussian smoothing kernel to regularize the level set function which decreases significantly the computation time. The main advantage of this model is the ability to select local or global segmentation so the user can choose to segment one object or the whole image. Nevertheless, experiments show that this model is very sensitive to nonuniform illumination and to low contrasted images like radiography images. Zhang et al. [17] proposed also a region local level set active contour where a local image fitting (LIF) energy function is used to guide the level set active contour to object boundaries based on local statistical information of the image. LIF energy function determines differences between the fitted image in the LBF model and the original image. In addition, a filtering method with a Gaussian kernel is applied to regularize level set function iteratively. LIF active contour model is well consuming computation time besides it is very sensitive to the local window sizes which should be adjusted carefully: choosing a small window size around pixel permits detection of small objects but increases sensitivity to noise. Song and Yan [18] proposed a local level set active contour to segment small defects found in hot rolled steel coloured images. The main idea is to fuse an image feature called the saliency map in the active contour energy formulation. This approach shows high performance in segmentation of defects with small regions particularly with rounded shapes in coloured images. Nevertheless, the saliency map used is adapted to coloured images so three information channels are needed. Much information might be missed when using images with one channel like radiography images. Moreover, Song model uses a Gaussian filter in the computation of the saliency map which is not suitable for images with low contrast images. In the other side, this approach is a level set local based model which increases the computation time considerably; besides segmentation accuracy depends greatly to the level set local window sizes.In this work we propose a new global level set active contour to segment weld defects in radiography images. An image feature called the off-center saliency map computed with integral images is embedded in the energy formulation of a global region level set active contour. The remainder of this paper is organized as follows: the proposed method is presented in Section2, tests and experimental results are depicted in Section 3, and we finish the paper by a conclusion in Section 4.


## 2. Proposed Level Set Active Contour Model

In this section we present the modified level set active contour. We show the off-center saliency map extraction method in the first part and the new level set active contour energy formulation after fusion with the extracted saliency map feature is illustrated in the second part.


### 2.1. Off-Center Saliency Map Computation

Systems that mimic the biological attention system are widely developed to extract the saliency map which aims to select the interesting parts of the sensory input data in order to reduce the vast amount of information that a computer vision system normally needs to process. In this area two types of retinal ganglion cells are defined: “on-center” and “off-center.” An on-center cell is stimulated when the center of its receptive field is exposed to light and is inhibited when the surround is exposed to light; off-center cells have just the opposite reaction. Two image features that imitate the behavior of the two cells are computed and known as on-center and off-center saliency maps. In weld radiography images, defects correspond to dark regions surrounded by brighten background; therefore, we decide to use the off-center saliency map as an image feature to guide the level set active contour to defect boundaries. Off-center saliency map is calculated using center-surround difference. Many approaches are used to achieve computation; we find Gabor filters [19], difference of Gaussian filters [20], and spectral residual [21]. Recently, Montabone and Soto [22] present a fast method to compute center-surround differences with rectangular filters based on the concept of integral images (or summed area tables) introduced first by Viola and Jones [23]; this approach allows speeding up the calculations considerably and preserving objects borders. This approach is used in our work. The off-center saliency submaps are calculated by a difference center and surround with this relation:(1)Scx,y=max⁡surroundx,y,c-centerx,y,0,where “c” represents the surround size chosen empirically for our application as c=2,4,8,16 and centerx,y represents the gray level pixel at the surround middle I(x,y).The surround is calculated in a fast time using integral imageIg(x,y) of the image I(x,y):(2)Igx,y=∑i=0x∑j=0yIi,j.The surround is the local average in neighbourhood window size “c”: (3)surroundx,y,c=Igx+c,y+c-Igx-c,y+c-Igx+c,y-c+Igx-c,y-c-Ix,y2c+12-1.The computed off-center saliency submaps are summed pixel by pixel in a one mapS(x,y) as follows:(4)Sx,y=∑cScx,y.S
x
,
y is the off-center saliency map which will be used in a further step with the level set active contour. The advantage of the feature Sx,y in defect enhancement is demonstrated by an example on radiographic weld image in Figure 3. As shown the weld radiography image has a low level contrast and a background affected by uneven illumination; defects and background are not easily distinguishable; therefore, defect extraction is very difficult. Figure 3(b) shows the off-center saliency map Sx,y, as we can see the difference between the defects and the background is highly enhanced; the surface plot of Sx,y shown in Figure 3(c) shows also how defects gray level are well amplified.Figure 3
Example of off-center saliency map: (a) ROI radiography weld image, (b) off-center saliency mapS(x,y), and (c) surface plot of off-center saliency map.
(a)
(b)
(c)


### 2.2. Level Set Active Contour Energy Formulation

The off-center saliency mapSx,y obtained in the previous section is used as statistical information representing pixels in the image. The feature image S(x,y) is embedded in the formulation of a level set active contour using a global Gaussian distribution fitting energy. The aim is to segment image into two regions, defect and background Ω1, Ω2, with a contour “C” separating these two regions depending on statistical information inside and outside of the off-center saliency map Sx,y. The segmentation is achieved with energy minimization [19]. We define an energy function to the contour “C” composed of three terms: the salient energy E1C, the regularization energy E2C, and E3C the reinitialization energy:(5)EC=E1C+E2C+E3C.The first termE1C attracts the contour “C” to defect edges. We choose to minimize the Bayes error [24] defined as follows:(6)E1Sx,y,C=-∫Ω1log⁡P1Sx,y,Ω1dxdy-∫Ω2log⁡P2Sx,y,Ω2dxdy,where Ω1, Ω2 are the regions inside and outside the contour C. P1, P2 are two probability density functions (PDF). S(x,y) is the off-center saliency map.Based on the level set theory [16], the contour C is embedded as the zero level of a level set function ϕx,y:(7)C=x,y∈Ω:ϕx,y=0.Thus (6) becomes (8)E1Sx,y,ϕx,y=-∫Ωlog⁡P1Sx,yHϕx,ydxdy-∫Ωlog⁡P2Sx,y1-Hϕx,ydxdy,where Ω is the image domain and Hϕ is the Heaviside function.P
1, P2 are two probability density functions assumed as a Gaussian distribution with means m1, m2 and variances σ1, σ2. Consider(9)PiSx,y=12πσiexp⁡-Sx,y-mi22σi2,i=1,2.Therefore (8) can be written as(10)E1ϕx,y,m1,m2,σ1,σ2=∫Ωlog⁡2π+log⁡σ1+Sx,y-m122σ12Hϕx,ydxdy+∫Ωlog⁡2π+log⁡σ2+Sx,y-m222σ221-Hϕx,ydxdy.Meansm1, m2 and variances σ12, σ22 of S(x,y), respectively, inside and outside the contour “C” can be calculated as follows:(11)m1=∫ΩSx,y·Hϕx,ydxdy∫ΩHϕx,ydxdyσ12=∫ΩSx,y-m12·Hϕx,ydxdy∫ΩHϕx,ydxdy,m2=∫ΩSx,y·1-Hϕx,ydxdy∫Ω1-Hϕx,ydxdyσ22=∫ΩSx,y-m22·1-Hϕx,ydxdy∫Ω1-Hϕx,ydxdy.E
2
ϕ is a regularization energy added to keep a smooth contour of the segmented region so we should minimize the length of the contour which can be calculated by the following relation:(12)E2ϕx,y=∫Ω∇Hϕx,ydxdy.When evolving level set function, usually it may be too steep or flat so we add a third energy termE3ϕ to reinitialize the level set function and to maintain the signed distance property. We use a distance regularized level set evolution (DRLSE) proposed by Wang et al. [24]:(13)E3ϕx,y=∫ΩP∇ϕx,ydxdy,where P is called a double well potential function defined by(14)
P
z
=
1
2
π
2
1
-
cos
⁡
2
π
z
,
if
z
<
1
1
2
z
-
1
,
if
z
>
1
.As a result, the total energy functionEϕ can be written as(15)Eϕ,m1,m2,σ1,σ2=αE1ϕ,m1,m2,σ1,σ2+βE2ϕ+γE3ϕ.We have addedα, β, γ as controlling parameters. We note that the parameter α controls the signed distance property of the level set function and the parameter β governs its smoothness. The parameter γ permits attracting the level set function to defect regions.Now we keep all the variables fixed except forϕ; minimization of the total energy Eϕ with respect to ϕ is equivalent to solving the gradient descent flow equation: (16)∂ϕ∂t=-∂Eϕ∂ϕ.We obtain the following evolution equation:(17)∂ϕ∂t=αdivdp∇ϕ∇ϕβδϕdiv∇ϕ∇ϕ+γδϕF1-F2.δ
ϕ is the Dirac function. F1, F2, dp are defined as follows:(18)Fi=log⁡σi+Sx,y-mi22σi2i=1,2,dpz=P′zz.The level set evolution equation (17) is composed of 3 terms; the first term in the right side allows keeping the regularity of the level set function, the second term preserves a smooth contour, and the third term segments the image into defect and background.Using a simple finite difference explicit scheme to (17) we obtain the discrete level set formulation as follows:(19)ϕn+1=ϕn+Δtαdivdp∇ϕn∇ϕn+βδϕndiv∇ϕn∇ϕn-γδϕnF1-F2,where n, Δt are the index iteration number and time step, respectively.The main stages of the proposed scheme for segmenting defects can be summarized as follows.Step 1.
Input image.Step 2.
Select a region of interest (ROI).Step 3.
Initialize parametersΔt, n, α, β, γ.Step 4.
Compute off-center saliency mapS(x,y).Step 5.
Compute the initial level set maskϕ0.Step 6.
For a fixed number of iterationsn.Compute average and variancem1, m2, σ1, σ2.Update level set functionϕ with (19).Step 7.
Keep the zero level of the functionϕ.


## 2.1. Off-Center Saliency Map Computation

Systems that mimic the biological attention system are widely developed to extract the saliency map which aims to select the interesting parts of the sensory input data in order to reduce the vast amount of information that a computer vision system normally needs to process. In this area two types of retinal ganglion cells are defined: “on-center” and “off-center.” An on-center cell is stimulated when the center of its receptive field is exposed to light and is inhibited when the surround is exposed to light; off-center cells have just the opposite reaction. Two image features that imitate the behavior of the two cells are computed and known as on-center and off-center saliency maps. In weld radiography images, defects correspond to dark regions surrounded by brighten background; therefore, we decide to use the off-center saliency map as an image feature to guide the level set active contour to defect boundaries. Off-center saliency map is calculated using center-surround difference. Many approaches are used to achieve computation; we find Gabor filters [19], difference of Gaussian filters [20], and spectral residual [21]. Recently, Montabone and Soto [22] present a fast method to compute center-surround differences with rectangular filters based on the concept of integral images (or summed area tables) introduced first by Viola and Jones [23]; this approach allows speeding up the calculations considerably and preserving objects borders. This approach is used in our work. The off-center saliency submaps are calculated by a difference center and surround with this relation:(1)Scx,y=max⁡surroundx,y,c-centerx,y,0,where “c” represents the surround size chosen empirically for our application as c=2,4,8,16 and centerx,y represents the gray level pixel at the surround middle I(x,y).The surround is calculated in a fast time using integral imageIg(x,y) of the image I(x,y):(2)Igx,y=∑i=0x∑j=0yIi,j.The surround is the local average in neighbourhood window size “c”: (3)surroundx,y,c=Igx+c,y+c-Igx-c,y+c-Igx+c,y-c+Igx-c,y-c-Ix,y2c+12-1.The computed off-center saliency submaps are summed pixel by pixel in a one mapS(x,y) as follows:(4)Sx,y=∑cScx,y.S
x
,
y is the off-center saliency map which will be used in a further step with the level set active contour. The advantage of the feature Sx,y in defect enhancement is demonstrated by an example on radiographic weld image in Figure 3. As shown the weld radiography image has a low level contrast and a background affected by uneven illumination; defects and background are not easily distinguishable; therefore, defect extraction is very difficult. Figure 3(b) shows the off-center saliency map Sx,y, as we can see the difference between the defects and the background is highly enhanced; the surface plot of Sx,y shown in Figure 3(c) shows also how defects gray level are well amplified.Figure 3
Example of off-center saliency map: (a) ROI radiography weld image, (b) off-center saliency mapS(x,y), and (c) surface plot of off-center saliency map.
(a)
(b)
(c)


## 2.2. Level Set Active Contour Energy Formulation

The off-center saliency mapSx,y obtained in the previous section is used as statistical information representing pixels in the image. The feature image S(x,y) is embedded in the formulation of a level set active contour using a global Gaussian distribution fitting energy. The aim is to segment image into two regions, defect and background Ω1, Ω2, with a contour “C” separating these two regions depending on statistical information inside and outside of the off-center saliency map Sx,y. The segmentation is achieved with energy minimization [19]. We define an energy function to the contour “C” composed of three terms: the salient energy E1C, the regularization energy E2C, and E3C the reinitialization energy:(5)EC=E1C+E2C+E3C.The first termE1C attracts the contour “C” to defect edges. We choose to minimize the Bayes error [24] defined as follows:(6)E1Sx,y,C=-∫Ω1log⁡P1Sx,y,Ω1dxdy-∫Ω2log⁡P2Sx,y,Ω2dxdy,where Ω1, Ω2 are the regions inside and outside the contour C. P1, P2 are two probability density functions (PDF). S(x,y) is the off-center saliency map.Based on the level set theory [16], the contour C is embedded as the zero level of a level set function ϕx,y:(7)C=x,y∈Ω:ϕx,y=0.Thus (6) becomes (8)E1Sx,y,ϕx,y=-∫Ωlog⁡P1Sx,yHϕx,ydxdy-∫Ωlog⁡P2Sx,y1-Hϕx,ydxdy,where Ω is the image domain and Hϕ is the Heaviside function.P
1, P2 are two probability density functions assumed as a Gaussian distribution with means m1, m2 and variances σ1, σ2. Consider(9)PiSx,y=12πσiexp⁡-Sx,y-mi22σi2,i=1,2.Therefore (8) can be written as(10)E1ϕx,y,m1,m2,σ1,σ2=∫Ωlog⁡2π+log⁡σ1+Sx,y-m122σ12Hϕx,ydxdy+∫Ωlog⁡2π+log⁡σ2+Sx,y-m222σ221-Hϕx,ydxdy.Meansm1, m2 and variances σ12, σ22 of S(x,y), respectively, inside and outside the contour “C” can be calculated as follows:(11)m1=∫ΩSx,y·Hϕx,ydxdy∫ΩHϕx,ydxdyσ12=∫ΩSx,y-m12·Hϕx,ydxdy∫ΩHϕx,ydxdy,m2=∫ΩSx,y·1-Hϕx,ydxdy∫Ω1-Hϕx,ydxdyσ22=∫ΩSx,y-m22·1-Hϕx,ydxdy∫Ω1-Hϕx,ydxdy.E
2
ϕ is a regularization energy added to keep a smooth contour of the segmented region so we should minimize the length of the contour which can be calculated by the following relation:(12)E2ϕx,y=∫Ω∇Hϕx,ydxdy.When evolving level set function, usually it may be too steep or flat so we add a third energy termE3ϕ to reinitialize the level set function and to maintain the signed distance property. We use a distance regularized level set evolution (DRLSE) proposed by Wang et al. [24]:(13)E3ϕx,y=∫ΩP∇ϕx,ydxdy,where P is called a double well potential function defined by(14)
P
z
=
1
2
π
2
1
-
cos
⁡
2
π
z
,
if
z
<
1
1
2
z
-
1
,
if
z
>
1
.As a result, the total energy functionEϕ can be written as(15)Eϕ,m1,m2,σ1,σ2=αE1ϕ,m1,m2,σ1,σ2+βE2ϕ+γE3ϕ.We have addedα, β, γ as controlling parameters. We note that the parameter α controls the signed distance property of the level set function and the parameter β governs its smoothness. The parameter γ permits attracting the level set function to defect regions.Now we keep all the variables fixed except forϕ; minimization of the total energy Eϕ with respect to ϕ is equivalent to solving the gradient descent flow equation: (16)∂ϕ∂t=-∂Eϕ∂ϕ.We obtain the following evolution equation:(17)∂ϕ∂t=αdivdp∇ϕ∇ϕβδϕdiv∇ϕ∇ϕ+γδϕF1-F2.δ
ϕ is the Dirac function. F1, F2, dp are defined as follows:(18)Fi=log⁡σi+Sx,y-mi22σi2i=1,2,dpz=P′zz.The level set evolution equation (17) is composed of 3 terms; the first term in the right side allows keeping the regularity of the level set function, the second term preserves a smooth contour, and the third term segments the image into defect and background.Using a simple finite difference explicit scheme to (17) we obtain the discrete level set formulation as follows:(19)ϕn+1=ϕn+Δtαdivdp∇ϕn∇ϕn+βδϕndiv∇ϕn∇ϕn-γδϕnF1-F2,where n, Δt are the index iteration number and time step, respectively.The main stages of the proposed scheme for segmenting defects can be summarized as follows.Step 1.
Input image.Step 2.
Select a region of interest (ROI).Step 3.
Initialize parametersΔt, n, α, β, γ.Step 4.
Compute off-center saliency mapS(x,y).Step 5.
Compute the initial level set maskϕ0.Step 6.
For a fixed number of iterationsn.Compute average and variancem1, m2, σ1, σ2.Update level set functionϕ with (19).Step 7.
Keep the zero level of the functionϕ.


## 3. Experimental Results

In this section the proposed level set active contour model is tested and evaluated on a set of radiography images of weld joints obtained from Federal institute of Material Research and Testing (Bam) [25]. The radiograph films have been scanned with the scanner LS85 SDR from Lumisys, mostly in high density mode. The original 12-bit data depth was rescaled to 8 bits with a linear LUT proportional to optical film density by visual adjustment to the image content. The pixel size is 40.3 micron (630 dpi), and the images are 8-bit gray values. Due to the big size of radiography weld images, the nonuniform illumination, and the small defect shape, it is difficult to detect the presence of small defects and determine accurately their sizes during the radiogram visualization. Consequently, for the seeking of simplifying the task, one could begin by selecting the region of interest, ROI, which can be considered as the parts of the image where the radiograph interpreters suspect the presence of imperfections. The selection of the ROI prevents the operator to make treatments on the irrelevant regions of the image. Moreover, it allows reducing the computing time for real-time applications noting that the technique of ROI localization is commonly used by researchers in several works. After the selection of an ROI region, the obtained images are resized to 250×350.We present in Figures4 and 5 the main steps of the proposed segmentation algorithm on two weld radiography examples. First row corresponds to the whole weld radiogram then a region of interest (ROI) is selected. Next images in Figures 4(b) and 5(b) show the selected region to process including various defects like porosities and slags distributed at the weld middle. The off-center saliency map is shown in the next Figures 4(c) and 5(c), as we can see defects are enhanced and the background is suppressed. Figures 4(d) and 5(d) depict the defect contour detection with a blue and red colour obtained with the proposed off-center saliency level set active contour. Even though the low contrast and the nonuniform illumination, we can see that the most parts of defects are segmented with low false detections. We note that parameters of the proposed method are set as Δt=0.1, α=0.04, β=0.001×255×255, γ=15, and n=30.Figure 4
Weld defect detection with the proposed active contour: (a) the whole weld radiogram, (b) ROI selected image, (c) off-center saliency map, and (d) final segmentation with proposed level set active contour (blue color).
(a)
(b)
(c)
(d)Figure 5
Weld defect detection with the proposed active contour: (a) the whole weld radiogram, (b) ROI selected image, (c) off-center saliency map, and (d) final segmentation with proposed level set active contour (red color).
(a)
(b)
(c)
(d)


### 3.1. Comparative Test 1

We show a comparison between the proposed model and a level set active contour depending only on gray level image intensity proposed by Zhang et al. [17] and called the local image fitting active contour LIF. LIF model Matlab implementation is given in author’s website (http://kaihuazhang.net/J_papers/PR_10.rar). Figure 6(b) presents results of the local fitting model LIF and the results of the proposed active contour model are shown in Figure 6(c). Parameters of the proposed algorithm are fixed as Δt=0.1, α=0.02, β=0.001×255×255, γ=10, and n=30.Figure 6
Comparative defect detection tests: (a) ROI selected image, (b) result of LIF active contour, and (c) result of the proposed method.
(a)
(b)
(c)Through a visual evaluation, the superiority of the proposed level set active contour can be verified. Local fitting active contour LIF [17] fails to obtain satisfactory results due to the influence of the clutter in the background and the low contrast of defects. Much false detection and a lot of defects are not detected. The best results are obtained with the proposed level set active contour. The most parts of defects are identified with low false detections. A quantitative comparison between the proposed active contour and LIF method is shown in the Table 1. We compute a segmentation evaluation measure used by many researchers called the F-measure [26]. To compute this evaluation criterion we need ideal image segmentation and the proposed segmentation results; the two results should be given in binary masks. Note that ground truth or ideal segmentations used are obtained from expert visual interpretation. We note also that a higher value (max 1) denotes accurate segmentation. The detection rates are shown in Table 1 which demonstrates the high performance of our method comparing with LIF approach. Moreover, the computation time (cpu-time) is computed for two methods. The step time algorithm is fixed to 0.1 for the two methods. Algorithms are implemented on Matlab R2010a (on a PC Core i5 2.9 GHz). Obtained values show that our proposed model is very fast compared with local active contour LIF.Table 1
Evaluation of segmentation accuracy and computation time.
F-measure
Cpu-Time (sec)
LIF
Prop method
LIF
Prop method
RD 02
0.52
0.76
35.4
4.1
RD 03
0.42
0.81
25.4
3.8
RD 04
0.62
0.87
18.6
3.5


### 3.2. Comparative Test 2

We show in this paragraph a comparative test between the proposed method and saliency convex active contour model proposed by Song and Yan [18] known as SCACM. Images in Figure 7(a) corresponds to regions of interest (ROI) selected from different weld radiogram films containing various kinds of defects like porosities and horizontal and vertical thin cracks. Figure 7(b) presents SCACM method detection results and Figure 7(c) shows the segmentation results with the proposed method.Figure 7
Comparative defect segmentation tests: (a) ROI selected image, (b) results of Song method, and (c) results of the proposed method.
(a)
(b)
(c)Obtained results in Figure7 show that Song method detects only defects with small and round shapes due to the influence of the local window size used in this method. In the other side, our method does not need to use a local window as is explained before; we use a global Gaussian distribution approximation of the off-center saliency intensities. The proposed method detects defects with various forms and sizes with low false detections. Most parts of defects are extracted despite their low contrasts. Using Song method many low contrasted defects are missed and not identified. As in previous experiment, the convergence time of two methods evaluated in Table 2 shows that proposed model achieves defect segmentation in a fast time comparing with Song method. We choose parameters of the proposed algorithm as α=0.01, β=0.001×255×255, γ=13, and n=30. We note also that we have used the Matlab implementation given by SCACM authors in their website (http://faculty.neu.edu.cn/yunhyan/Webpage%20for%20article/SCACM/DemoSCACM.rar).Table 2
Evaluation of cpu-time convergence.
Cpu-time (sec)
Song
Prop method
RD 06
8.26
3.85
RD 07
9.41
4.81
RD 08
9.67
5.23
RD 09
9.66
4.77


## 3.1. Comparative Test 1

We show a comparison between the proposed model and a level set active contour depending only on gray level image intensity proposed by Zhang et al. [17] and called the local image fitting active contour LIF. LIF model Matlab implementation is given in author’s website (http://kaihuazhang.net/J_papers/PR_10.rar). Figure 6(b) presents results of the local fitting model LIF and the results of the proposed active contour model are shown in Figure 6(c). Parameters of the proposed algorithm are fixed as Δt=0.1, α=0.02, β=0.001×255×255, γ=10, and n=30.Figure 6
Comparative defect detection tests: (a) ROI selected image, (b) result of LIF active contour, and (c) result of the proposed method.
(a)
(b)
(c)Through a visual evaluation, the superiority of the proposed level set active contour can be verified. Local fitting active contour LIF [17] fails to obtain satisfactory results due to the influence of the clutter in the background and the low contrast of defects. Much false detection and a lot of defects are not detected. The best results are obtained with the proposed level set active contour. The most parts of defects are identified with low false detections. A quantitative comparison between the proposed active contour and LIF method is shown in the Table 1. We compute a segmentation evaluation measure used by many researchers called the F-measure [26]. To compute this evaluation criterion we need ideal image segmentation and the proposed segmentation results; the two results should be given in binary masks. Note that ground truth or ideal segmentations used are obtained from expert visual interpretation. We note also that a higher value (max 1) denotes accurate segmentation. The detection rates are shown in Table 1 which demonstrates the high performance of our method comparing with LIF approach. Moreover, the computation time (cpu-time) is computed for two methods. The step time algorithm is fixed to 0.1 for the two methods. Algorithms are implemented on Matlab R2010a (on a PC Core i5 2.9 GHz). Obtained values show that our proposed model is very fast compared with local active contour LIF.Table 1
Evaluation of segmentation accuracy and computation time.
F-measure
Cpu-Time (sec)
LIF
Prop method
LIF
Prop method
RD 02
0.52
0.76
35.4
4.1
RD 03
0.42
0.81
25.4
3.8
RD 04
0.62
0.87
18.6
3.5


## 3.2. Comparative Test 2

We show in this paragraph a comparative test between the proposed method and saliency convex active contour model proposed by Song and Yan [18] known as SCACM. Images in Figure 7(a) corresponds to regions of interest (ROI) selected from different weld radiogram films containing various kinds of defects like porosities and horizontal and vertical thin cracks. Figure 7(b) presents SCACM method detection results and Figure 7(c) shows the segmentation results with the proposed method.Figure 7
Comparative defect segmentation tests: (a) ROI selected image, (b) results of Song method, and (c) results of the proposed method.
(a)
(b)
(c)Obtained results in Figure7 show that Song method detects only defects with small and round shapes due to the influence of the local window size used in this method. In the other side, our method does not need to use a local window as is explained before; we use a global Gaussian distribution approximation of the off-center saliency intensities. The proposed method detects defects with various forms and sizes with low false detections. Most parts of defects are extracted despite their low contrasts. Using Song method many low contrasted defects are missed and not identified. As in previous experiment, the convergence time of two methods evaluated in Table 2 shows that proposed model achieves defect segmentation in a fast time comparing with Song method. We choose parameters of the proposed algorithm as α=0.01, β=0.001×255×255, γ=13, and n=30. We note also that we have used the Matlab implementation given by SCACM authors in their website (http://faculty.neu.edu.cn/yunhyan/Webpage%20for%20article/SCACM/DemoSCACM.rar).Table 2
Evaluation of cpu-time convergence.
Cpu-time (sec)
Song
Prop method
RD 06
8.26
3.85
RD 07
9.41
4.81
RD 08
9.67
5.23
RD 09
9.66
4.77


## 4. Conclusion

Detection of small defects in low contrasted radiography images corrupted with uneven illumination is very complicated. Usually proposed methods in this area have limited results. In this work our aim is to improve robustness of weld defect segmentation in radiography images in order to obtain satisfactory results. We have developed a new method based on level set active contour guided with an off-center saliency map. The segmentation is achieved when an energy function is minimized. Different tests on weld radiography images with various kinds of defects prove efficiency and robustness of the proposed method. A comparison test is shown with two kinds of level set active contour models. The first depends only on gray level intensity and the second uses a saliency map to derive the segmentation active contour. The comparison tests reveal that the proposed method permits overcoming the problem of nonuniform illumination and the low contrast level in radiography weld images. Moreover, our method shows a fast convergence time comparing with other methods. However, some weakness of the proposed method must be studied in a future work. To reduce human interaction, it is recommended to develop a method to select automatically the region of the interest. It is also interesting to validate this segmentation method to another radiography image application like medical area.



---

*Source: 871602-2015-12-27.xml*