Abstract
In image thresholding segmentation, gray level of pixels is the basic element to describe images. Besides, the gradient information of pixels is also a key feature to represent image space distribution. Therefore, the co-occurrence probability of gray and gradient of pixels is an effective information to describe image. In this paper, gray-gradient asymmetrical co-occurrence matrix is constructed, uniformity probability of image region is produced, and a minimum square distance criterion function based on gray-gradient co-occurrence matrix is proposed to measure the deviation between original and binary images. Comparing with gray-gray asymmetrical co-occurrence matrix and relative entropy-based symmetrical co-occurrence matrix method, the proposed method can obtain more complete segmentation results, especially for small-size object extraction. The peak signal to noise ratio probability also shows the better segmentation performance of our proposed method.
Introduction
Image segmentation is an important step in objects identifying, image analysis and understanding [1]. It is one of the most difficult tasks in image processing , and is still very challenging and difficult to accomplish [2]. The thresholding segmentation method is a classic technology for object extraction. It utilizes the characteristic information of pixels to find the threshold value, which separate the pixels into several classes of object and background [3]. Commonly, the threshold segmentation algorithms are based on clustering, object properties, spatial and positional information, entropy, histogram and shape algorithms [4]. Among of them, the algorithms considering the information of spatial and domain of pixels can more fully employ the features of images to search the accurate threshold value [5].
In image features information, the co-occurrence probability of pixels and its neighborhood pixels is important as a component to build thresholding algorithm [6]. According to the construction of application model, the co-occurrence matrix can be classified into the asymmetric and symmetric [7]. The gray-gradient co-occurrence probability can construct an asymmetric matrix. Sen and Pal [8] used a linear gradient operator to generate a gradient histogram, explored the specific properties of the probability density function to determine the region of interest in the gradient histogram, and obtain the threshold value based on the standard histogram thresholding technique. Shima et al. [9] designed a more accurate gradient operator for edge information extraction. Mignote [10] studied the specification of gradient histograms.
For the existing asymmetric co-occurrence matrix threshold methods, the statistics of ordinary gray scale and spatial information is mainly based on the gray distribution features [11], and the description for the image edge information is limited [12]. Gradient information is often used in image processing to describe the variation of image gray scale in space, can reflect the edge information of images. By designing the reasonable gradient operators [13, 14], the gradient model can be established to improve the accuracy of edge acquisition [15]. The thresholding methods combining with gradient information can quantitatively describe the relationship between selected threshold and image space composition, is an effective thresholding segmentation and edge detection technology [16]. In this paper, we selected Laplacian operator to abstract the gradient information, conformed a two-demention histogram using gray-gradient co-occurrence probability, and defined a uniformity probability of the binarized image region, and then constructed a minimum squared distance function as a new thresholding criterion. It can be seen from the experimental results, the proposed thresholding method is effective and has prominent performance, especially for images of extracted object is much smaller the background.
Gray-gradient co-occurrence matrix
Image gradient
For image
The amplitude of gradient is denoted as:
The vector angle is as follows:
In generally, the gradient is expressed in the form of differential operator and then implemented using a fast convolution function.
Currently, the commonly used gradient operators are Roberts, Sobel, Prewitt and Laplacian, among of them, Roberts, Sobel and Prewitt are first-order differential operators, and Laplacian is second-order differential operators. The experimental results of the four operators show that, for the noise-free and noisy images, the Laplacian operator is better in keeping the integrity of edge information. Therefore, in this paper, we apply the Laplacian operator to compute the gradient value.
For a two-dimensional function
The difference formula of the Laplacian operator is
Assuming an image
The normalization gray image
Where,
Similarly, the normalized gradient image
Base on the normalized gray image
Where,
If the pair of gray and gradient
Region of gray-gradient co-occurrence matrix 
Region A includes the pixels belonging to the object but not the edge, B includes the pixels belonging to the background but not the edge, C is the pixels belonging to both the object and edge, and D is both the background and edge. Inside of the object and background, the gray level is relatively uniform, and the gradient value is zero or lower. In the edge of object and background, the gradient value is larger. The probability of four regions of matrix
If the image
The probability
When selecting the threshold value of the image, we hope that the deviation between the original image and the binary image can be minimum, that means the optimal matching of the two images need to be obtained. According to the optimal match property, we can established a thresholding criterion function, which is defined as minimum square distance criterion.
Minimum square distance threshold method
We supposed the co-occurrence probability of original image is
Here,
According to the above formula, we can deduce that:
In Eq. (24), the first term
The maximum value of
The vector correlation coefficient can also interpret the criterion function
Due to
In the definition of
Here,
Then,
The global squared distance threshold criterion
If the edge region information of object and background is considered, the joint distance threshold criterion
Then, the optimal threshold value
Experimental results
In order to compare the proposed method with other methods, we selected some image for thresholding segmentation test. They are Infrared, Circle, Splash, Point and Rice grains image, their size are 360
Original images.
2_D gray-gradient histograms.
The results of Infrared image.
From the thresholding results, we can find that our proposed local distance (GGLD) and total distance (GGTD) method obtained the best object extraction results for the five images. Especially, the character segmented in Circle image is clearer using GGLD and GGTD method than other methods. The misclassification pixels of GGLD and GGTD method are the least in Infrared, Splash and Point images. In Rice grains image, our GGLD, GGJD and GGTD methods can keep the complete information of Rice grains.
Table 1 shows the thresholds of five methods for the five images. It can be seen that, the segmentation threshold values of GGLD and GGTD method are same, and they are very different with GGJD, GGSD and RECM method.
The threshold value of five methods for the five images
The results of Circle image.
The results of Splash image.
The results of Point image.
The results of Rice grains image.
Furthermore, for testing the the segmentation performance of our proposed method quantitatively, we chosen five representative images from a database of non-destructive testing (NDT) to evaluate the performance [5], their size are 131
The results of Test image1.
The results of Test image2.
The results of Test image3.
The results of Test image4.
The results of Test image5.
Due to the peak signal to noise ratio (PSNR) [23] gives the similarity of a thresholded image against a reference image, we apply PSNR to measure the performance of methods. It is given by Eq. (34),
Here,
Table 3 shows the value of PSNR of the five methods. We can see that the value of our proposed GGLD and GGTD methods are highest in five test images.
The results of five test images
The PSNR of five methods
In this paper, the gray-gradient asymmetrical co-occurrence matrix was constructed, the uniformity probability of image region is presented to represent the spatial distribution. Base on gray-gradient co-occurrence matrix, utilizing uniformity probability information, we proposed square distance function as image thresholding criterion, and formed local, joint and total square distance discriminants. Further, we also explored the explanation of vector correlation coefficient, proved the validity of our methods.
Experimental results of real images and standard test images show that, comparing with the gray-gray asymmetrical co-occurrence matrix (GGSD) and relative entropy-based symmetrical co-occurrence matrix (RECM) methods, our proposed local and total square distance (GGLD and GGTD) methods can obtain the best extraction results and highest PSNR value.
Footnotes
Acknowledgments
This work is supported by the National Science Foundation of China (No. 61571361,61671377), and the Science Plan Foundation of the Education Bureau of Shaanxi Province (No. 15JK1682).
