A Road Extraction Method Based on Region Growing and Mathematical Morphology from Remote Sensing Images ()
1. Introduction
There are lots of information in remote sensing images, and the rapid development of remote sensing technology has gradually made it one of the main means of acquiring geographic information data. With the appearance and application of high-resolution remote sensing images, more information can be extracted from remote sensing images. But at the same time, more details in high-resolution images make it more difficult to extract information.
Road extraction from remote sensing images is one of the hot spots and difficult problems, and has been widely researched by domestic and foreign scholars [1] [2] [3] [4]. According to the degree of automation of existing road extraction methods, road extraction technology is generally divided into semi-automatic road extraction and automatic road extraction. Semi-automatic road extraction is accomplished by means of human-machine interaction. The main idea is to manually provide some prior information such as the initial seed point of the road. Then the computer will judge and identify the road automatically. The semi-automatic methods include: based on dynamic programming methods, based on template matching methods, based on active contour model methods and so on. Automatic road extraction interprets and identifies roads by extracting and understanding road image features. That is, the features of the road are analyzed first, and then a certain type of road is identified automatically by means of artificial intelligence, computer vision, pattern recognition and other methods. The automatic methods include: based on parallel lines methods, knowledge-based methods, based on statistical model methods and so on. Baumgartner and Steger [5] proposed an automatic road extraction method by using of several versions of the same aerial image with different resolutions. Senthilnath and Rajeshwari [6] proposed a road extraction based on texture progressive analysis. The methods based on mathematical morphology [7] [8] could eliminate the noise. The method based on object-oriented [9] constructs the knowledge base for extracting multi-dimensional feature space. Most of road extraction methods are based on high-quality image information. That is, the less noise the image contains, the more abundant the road information extracted is.
2. Method
Although there are many objects in the remote sensing image such as buildings, roads, trees and so on, the roads still have some features that can be distinguished from other non-road objects. Generally, roads have the following features:
1) The gray scale in the road changes little.
2) The road and its adjacent region differ in color.
3) The width of the road varies little and the length is much greater than the width.
4) Most of the roads in the image are the parallel roads or the cross roads.
Thinking about the road features mentioned above, we design a suitable method to extract road objects. Because the road region changes little in color and differs from its adjacent region, we could distinguish the road region by its color. Gray stretching based gray histogram could enhance the grayscale of road region. After image thresholding, we use region growing algorithm to extract connected regions. Because the roads change little in width and are always crossing, we could consider that the pixel number in road regions are relatively numerous. In other word, the small regions are generally non-roads such as houses, ponds, trucks and so on. Therefore, we could sort the connected regions by size to exclude the small ones. There are vehicles on the roads, and the color of vehicles and roads differ. It may cause that holes appear in the road region in the binary image. The closing algorithm is used to fill holes. Finally, we merge extraction result with original image and get the final image.
2.1. Preprocessing
Gray Stretching
The method that the piecewise linear function can be used to enhance the contrast of image is called gray stretching. In fact, it increases the grayscale of regions of interest and decreases the grayscale of other regions. The advantage of piecewise linear transformation is that it has various forms and can be synthesized arbitrarily, while the disadvantage is that it requires more pre-defined parameters. The function formula of piecewise linear transformation is as follows:
The most important parameters in the formula are
and
. According to the algorithm description, parameters
determine the range of gray scale needed to be converted, and parameters
determine the slope of linear transformation. Gray stretching can control the distribution of output grayscale histogram flexibly. In this paper, we set parameters as:
Figure 1 shows the result of image preprocessing.
(a) (b) (c)
Figure 1. Processing results of image preprocessing. (a) Original image; (b) Gray image; (c) Processing result of gray stretching.
2.2. Road Extraction
2.2.1. Region Growing
The basic idea of region growing is to assemble pixels with similar property to form new regions. First, a seed pixel is found as the starting point for each region to be divided, and then the pixels with similar properties to seed pixel around the seed pixel are merged into the region where the seed pixel is located. Continue the process of treating these new pixels as new seed pixels until no more pixels which meet the condition can be found. The region growing algorithm has been widely used because of its fast speed and pertinence. In remote sensing images, compared with the road regions, the non-road objects such as the houses at the side the road are usually distributed in isolation. Considering the above characteristic, we use to region growingto exclude the small non-road regions. Figure 2 shows the result of image region growing. We can see that the numerous small regions in Figure 2(a) disappear in Figure 2(b).
2.2.2. Mathematical Morphology
Mathematical morphology is an image analysis method based on strict mathematical theory which is a science of quantitative description of geometric structures by the method of set theory. The basic idea of mathematical morphology is to use the pre-defined structural elements (such as disks and squares) to detect information and shapes in images. The choose of structural elements has a great impact on the results, and the processing results with structural elements of different shapes and sizes are dramatically different. Therefore, suitable structural elements should be selected according to the processing objects. At present, mathematical morphology is widely used in image processing for noise removal, feature extraction, edge detection, image segmentation, texture analysis, image compression and reconstruction. The main operations of mathematical morphology include erosion and dilation, opening and closing. The followings are introduced one by one:
• Erosion and dilation operations
Erosion and dilation operations are the basic operations of mathematical morphology and are also a set of dual operations. Erosion operation is used to detect image with a structural element to find areas within the image where the structural element can be placed. Erosion operation can eliminate the small components in the image and remove the noise. The erosion operation of structural elements B on image A is expressed as
, which is defined as:
Dilation operation uses structural elements to fill the small holes and the hollows at the edges, so it can be defined as the complementary set of erosion operation. The dilation operation of structural elements B on image A is expressed as
, which is defined as:
• Opening and closing operations
Opening and closing operations are combined operations based on erosion and dilation operations, which are also duality relations. The opening operation is the result of erosion first and dilation later. It could remove the salt and pepper noise and smooth the inner edge, which achieves the effect of low-pass filtering. The closing operation is the result of dilation first and erosion later. It could full the small holes in the interior of the object and connect the smooth boundaries, which achieves the effect of high-pass filtering.
In general, there are many shadows of trees and poles in the road. Therefore, we can see that lots of holes appear in Figure 2(b). In this paper, closing operation is used to fill the holes inside the road regions, which is shown in Figure 2(c).
2.3. Experiment
The experimental data is an aerial color image. The road shows a high brightness and similar gray level connected network in the image, as shown in Figure 3(a). First, the original image is preprocessed. By comparison Figure 3(b) and Figure 3(c), we can find the grayscale of road regions are enhanced by gray stretching. After image thresholding by OSTU, there are many noises and small regions of non-roads in binary image, as shown in Figure 3(d). Though we can remove the
noises by filtering in some way, the non-road regions cannot be removed by filtering. By processing of region growing, we could get many regions which varies a lot in size. Figure 3(e) is the results of excluding the small regions. Based on this, the closing operation is used to fill the holes inside the roads. It must be noted that the size of structural element determines the precision of result. However, due to the complex and changeable geometric features of road in remote sensing images, the structural elements are not universal. It is necessary to select appropriate structural elements according to the actual situation to achieve the best results.
3. Conclusion
According to the unique features of road objects in high resolution remote sensing image, an automatic road extraction method based on region growing and mathematical morphology is proposed in this paper. First, the image is pretreated using gray stretching to separate road regions from non-road regions preliminarily. After image thresholding, region growing algorithm is used to extract connected regions and exclude the small pieces of non-road regions. The mathematical morphology algorithm is used to improve the precision of extraction result. According to the two experimental results, this method can not only effectively extract road objects, but also remove the vehicles objects in the roads. In the meanwhile, this method can exclude the ground objects which have the similar color to road objects. This method has a poor performance on road segments with shadow effects. These problems need to be further studied.