Segmentation Approach Towards PCM Images 1133
halos at the boundaries of the flocs and filaments. Such factors are used to tune the image segmentation (Siddiqi et al., 1998; Kulkarni, 2012; Shanmugavadivu et al., 2016) to deal with artifacts specific to the application, such as halos in our case. If we observe the halos closely as shown in Figure 4, they have two edges. One is with the foreground, and the other is with the
flocs or filaments,which is comparatively sharper. Therefore, the adjustment factor seems an intuitive way to increase the threshold on the gradient to shrink the detected boundary toward the flocs or filaments. This method comprises of several steps. First, the image
is converted into grayscale image (The MathWorks, I, 2015). Second, the image is converted to gradient image using the Sobel operator in both horizontal and vertical direction. Third, the gradient image is binarized using the tuned adjustment factor. Fourth, the binary image is added to grayscale image to sharpen the edges of the filaments. Fifth, the gradient of the image with sharpened edges is determined and binarized using the threshold calculated by the default method of MATLAB, as mentioned before. Finally, the morphological operation of image closing was used using a disk shape structural element of size 2, to fill the small discontinuities.
k-Means-Based Segmentation k-Means is a well-known clustering method (Lloyd, 1982), which is required to be initialized or seeded carefully. In this method, the pixels in the RGB color space are classified into foreground and background using k-means clustering.
Edge-Based Segmentation In the phase-contrast image, the gradient image has two kinds of edges: first is between the halos and the background, second is between the halos, and the foreground as shown in Figure 1a. The later has greater value of gradient. Therefore, we infer that halos can be compensated by using a threshold on the gradient. Thus, in the edge-based algorithm, the Sobel approximation of the derivative was used. Initially, the threshold is found automatically by the square root of four times the mean of the gradient image (The MathWorks, I, 2015), which was later tuned, iteratively, to 1.4 for final thresholding. The adjustment factor was required due to the artifact of
Square Euclidean distance was used as measure of distance between the pixels and the means of the clusters. On obser- vation of the PCM image from the clustering perspective, we can see that the bright region is caused by the halos. There is uncertainty about the bright region, whether it is floc or background, due to complex porous structure of flocs. The dark region is certainly either floc or filament. The less dark region is certainly background. Therefore, we considered three clusters initialized at darkest (RGB: 0,0,0), brightest (RGB: 255,255,255), and less dark (RGB: 77,77,77) instances. In the result of k-means clustering, the cluster with less dark centroid is taken as background.
Adaptive Thresholding-Based Segmentation In this approach, we considered three steps with each having
a certain purpose as shown in Figure 5. First, we used average filtering to address shade-off effect. However, it could not eliminate the halos around the borders of the flocs and fila- ments as shown in Figure 6. Finally, we used adaptive thresholding for the segmentation. Precisely, the segmentation method comprises of a
sequence of algorithms as shown in Figure 2. Initially, the RGB image is converted into grayscale image (The Math- Works, I, 2015). The grayscale image was divided by the image obtained by average filtering with a window size of 50×50 pixels. Finally, Bradley adaptive thresholding was used with window size of 101×101 pixels.
Texture-Based Segmentation We observed that range filtering the grayscale image enhances the halo effect associated with PCM. So, we hypothesized that subtraction of the range filtered image from the original grayscale image would improve the seg- mentation accuracy by minimizing the halo effect. Therefore, the algorithm comprises of range filtering over a window of
Figure 4. The artifact of halos in the phase-contrast image of activated sludge.
Figure 5. Flow chart for the proposed adaptive thresholding- based algorithm.
Page 1 |
Page 2 |
Page 3 |
Page 4 |
Page 5 |
Page 6 |
Page 7 |
Page 8 |
Page 9 |
Page 10 |
Page 11 |
Page 12 |
Page 13 |
Page 14 |
Page 15 |
Page 16 |
Page 17 |
Page 18 |
Page 19 |
Page 20 |
Page 21 |
Page 22 |
Page 23 |
Page 24 |
Page 25 |
Page 26 |
Page 27 |
Page 28 |
Page 29 |
Page 30 |
Page 31 |
Page 32 |
Page 33 |
Page 34 |
Page 35 |
Page 36 |
Page 37 |
Page 38 |
Page 39 |
Page 40 |
Page 41 |
Page 42 |
Page 43 |
Page 44 |
Page 45 |
Page 46 |
Page 47 |
Page 48 |
Page 49 |
Page 50 |
Page 51 |
Page 52 |
Page 53 |
Page 54 |
Page 55 |
Page 56 |
Page 57 |
Page 58 |
Page 59 |
Page 60 |
Page 61 |
Page 62 |
Page 63 |
Page 64 |
Page 65 |
Page 66 |
Page 67 |
Page 68 |
Page 69 |
Page 70 |
Page 71 |
Page 72 |
Page 73 |
Page 74 |
Page 75 |
Page 76 |
Page 77 |
Page 78 |
Page 79 |
Page 80 |
Page 81 |
Page 82 |
Page 83 |
Page 84 |
Page 85 |
Page 86 |
Page 87 |
Page 88 |
Page 89 |
Page 90 |
Page 91 |
Page 92 |
Page 93 |
Page 94 |
Page 95 |
Page 96 |
Page 97 |
Page 98 |
Page 99 |
Page 100 |
Page 101 |
Page 102 |
Page 103 |
Page 104 |
Page 105 |
Page 106 |
Page 107 |
Page 108 |
Page 109 |
Page 110 |
Page 111 |
Page 112 |
Page 113 |
Page 114 |
Page 115 |
Page 116 |
Page 117 |
Page 118 |
Page 119 |
Page 120 |
Page 121 |
Page 122 |
Page 123 |
Page 124 |
Page 125 |
Page 126 |
Page 127 |
Page 128 |
Page 129 |
Page 130 |
Page 131 |
Page 132 |
Page 133 |
Page 134 |
Page 135 |
Page 136 |
Page 137 |
Page 138 |
Page 139 |
Page 140 |
Page 141 |
Page 142 |
Page 143 |
Page 144 |
Page 145 |
Page 146 |
Page 147 |
Page 148 |
Page 149 |
Page 150 |
Page 151 |
Page 152 |
Page 153 |
Page 154 |
Page 155 |
Page 156 |
Page 157 |
Page 158 |
Page 159 |
Page 160 |
Page 161 |
Page 162 |
Page 163 |
Page 164 |
Page 165 |
Page 166 |
Page 167 |
Page 168 |
Page 169 |
Page 170 |
Page 171 |
Page 172 |
Page 173 |
Page 174 |
Page 175 |
Page 176 |
Page 177 |
Page 178 |
Page 179 |
Page 180