Skip to main content

Table 2 Algorithm of the Shin-Du model

From: Weld defect detection using a modified anisotropic diffusion model

Initialisation

   Chose initial zone parameters: K, c1(x, y)

Step1: Digitization

Step2: Region of Interest selection

Step3: Median filtering

Step4: Compute the 2D convolution masks: hN, hS, hF and hW

Step5: For i = 1 to number of image windows

   - Compute the gradient

   - Compute the diffusion function c1(x, y) of 4 neighbors

   - Compute the sharpening diffusion coefficient

v I i t x , y

   - Compute

I t + 1 ( x , y ) = I t ( x , y ) + 1 4 i = 1 4 c t i I t i ( x , y ) - 1 4 i = 1 4 v t i ( x , y ) I t i ( x , y )

   End

Step6: Thresholding