4.5. Connecting pixels in image

In this phase, preprocessing is used to identify the connected components inside the binary image. Figure 7 shows the connected components algorithm, which is applied in order to identify the connected components by using a group of binary symbols. After the connected components have been identified, the next process is to fill the "holes" inside any connected pixels in the image automatically using MATLAB, in an attempt to make the connected pixels look more obvious. Therefore, further detecting processes for the tactile shapes can be performed easily. The processed image in which the "holes" have been filled with white color is shown in Figure 8.
