Abstract
In this paper, we presented an image segmentation algorithm based on adaptive weighted mathematical morphology edge detectors. The performance of the proposed algorithm has been demonstrated on the Lena image. The input of the proposed algorithm is a grey level image. The image was first processed by the mathematical morphological closing and dilation residue edge detector to enhance the edge features and sketch out the contour of the image, respectively. Then the adaptive weight SE operation was applied to the edge-extracted image to fuse edge gaps and hill up holds. Experimental results show it can not only primely extract detail edge, but also superbly preserve integer effect comparative to classical edge detection algorithm.
Introduction
Aerodrome docking auto-guidance system is no-manual work guidance plane from taxiway to gate position and nicety anchor process. Aerodrome docking auto-guidance system can ensure plane safe nice anchor, and make corridor bridge meet plane. At present there are no departments of docking auto-guidance system in China. Based on vision detect method of aerodrome docking auto-guidance system refer to literatures a flat lot. In the paper, importantly study image pretreatment algorithm based on vision detection of aerodrome docking auto-guidance system, process and so on. Docking system chart is figure 1.

System overview of visual docking guidance system
The edge of image embodies a great deal of information, is the important attribute to obtain image features during image identification. Edge detection could draw the outline of target object to reach object identification. Essentially, image edge is the discontinuous reflection of part of image; it indicates one ending of one field and starting of another field. Effect of edge detection influenced directly accomplishment of after work (Lima, P.; Bonarini, A. & Mataric, M. (2004)). Edges can also be defined as where gradient of image intensity function reaches its local maximum. In other words, edge points are points in the image where pixel brightness changes drastically. Typically, edge points are associated with the boundaries of objects in the image and edge detection can also be used for region segmentation and feature extraction. Edge detection methods can be classified into directional and non-directional or gradient-based operators (M. Pesaresi and J. A. Benediktsson2001, Heath M., Sarkar S., Sanocki T., and Bowyer K 1998, Ziou D. and Tabbone S 1997). Directional operators use two masks and two convolutions. While non-directional use single mask and convolution but they are sensitive to noise due to gradient nature of the operators. In near year, classical popular gradient-based edge detection algorithms were experimented on the binary images There is many methods of edge detection, traditional method adopt edge detection operator to solve two dimensional real function, then selecting proper threshold to extract edge, these classical edge detection operator solution mainly is Roberts, Prewitt, Sobel and Canny operator, etc. When image is in the condition without noise interruption, these operators could provide perfect edge (M. K. Kundu, B. B. Chaudhuri and D. Dutta Majumder, 1991). But, actually noise existed and presented abrupt change between noise and edge, and high frequency information in frequency field. So it is difficult for edge detection. Under such circumstance, classical operator couldn't extract edge well, firstly filter the noise, and then detect edge. This could not only bring extra calculation amount, but wipe off the faint edge (W. K. Pratt, 1991). Mathematical morphology (MM) base on group algorithm, characteristic of non-linearity, and it not only presents image group features to well detect image edge, but also satisfies real-time request. What's more? Based on edge detection, through changing the shape and size of structure element extract image edge, in order to overcome the influence of noise [4]. MM has achieved the status of a powerful tool in the design of edge detection and nonlinear filters for signal/image processing (Lima, P.; Bonarini, A. & Mataric, M. 2004, M. Pesaresi and J. A. Benediktsson2001, Heath M., Sarkar S., Sanocki T., and Bowyer K 1998).
In this paper, we present a new edge detection algorithm based on adaptive weighted morphological operations. The primary objective of the adaptive weighted morphological grads operations in the proposed algorithm is to generate the high connectively edge features of the image. Then apply edge to select structuring element, If the edge direction exists, a big weight factor is put; if doesn't exist, a small weight factor is put. Thus we can achieve an intensified edge detector. This paper is organized as follows: Section 2 introduces the weighted morphological operations. Section3 proposes adaptive weighted morphological edge detection used in the proposed algorithm. Section4 presents comprehensive comparison results between the proposed algorithms with other existing methods. The conclusions and discussions are provided in the last section.
Basic Theory of Mathematical Morphology and Conventional Edge Conventional Edge Detection Operators
Mathematical Morphology is a framework based exclusively on set theory, which has found great success and applicability in digital image processing. The mathematical foundation of mathematical morphology comes from Minkowsy's set operations, through which its two basic operators are defined: dilation and erosion. Dilation can be stated in a simplified, intuitionist manner, as adding pixels to an image, or enlarging it. On the other hand, erosion can be stated in a similar manner as taking pixels away from an image, or shrinking it. The combination and interaction of these two operators, dilation and erosion, give rise to other two operations of singular importance in mathematical morphology: opening and closing. On one hand, opening consists of applying an erosion followed by a dilation to a set, with the same structuring element. As a result, small holes are enlarged. On the other hand, closing consists on applying a dilation followed by an erosion to a set, with the same structuring element. As a result, small holes are closed.
The objective of the present paper is to state mathematical morphology basic operations in terms of cellular automata, with the goal of enlightening the framework of mathematical morphology with the theory of cellular automata. Mathematical Morphologic (MM) is a new science based on strict math theory basis, taking set theory as basis, analyzing and understanding the digital image, which is also a good tool of geometry morphologic analysis and description; having be a new theory and method under digital image management area, producing great influence on digital image management theory and technology. In digital image, edge contains a great deal of valuable information, and it can reflect character of object, so it has an important intention about image analysis and image filtering. Math Morphology is the tool for analyzing the image based on structure element. Basic ideas are to measure and extract corresponding shape using structure element which have specific figuration to reach the image of analyzing and identification.
There are 4 basic algorithms in MM: dilation, erosion, opening and closing algorithm, they are of own characteristic in binary image and grey-scale image. These basic algorithms also induce and combine various math morphological algorithms (SONG J, DELPE J 1990).
Dilation and Erosion
Dilation and erosion operations are fundamental to morphological processing. In fact, many of the morphological algorithms are based on these two primitive operations.
Dilation
With A and B as sets in Z2, the dilation of A by B, denoted A ⊕ B, is defined as
Equation (1) is based on obtaining the reflection of B about its origin and shifting this reflection by z, such that
Set B is commonly referred to as the structuring element in dilation, as well as below morphological operations.
For sets A and B in the Z2, the erosion of A by B, denoted A ⊕ B, is defined as
In a word, the equation (3) indicates that the erosion of A by B is the set of all points z such that B, translated by z, is contained in A.
Dilation and erosion are duals of each other with respect to set complementation and reflection. That is,
As can be seen from the equation (1) and (3), dilation expands an image and erosion shrinks it. Two other important morphological operations are introduced below: opening and closing. Opening generally smoothes the contour of an object, breaks narrow isthmuses, and eliminates thin protrusion. Closing also tends to smooth sections of contours but, as opposed to opening, it generally fuses narrow breaks and long thin gulfs, eliminates small holes, and fills gaps in the contour.
The opening of the set A by structuring element B, denoted
Thus, the opening by B is the erosion of A by B, followed by dilation of the result by B.
Similarly, the closing of set A by structuring element B, denoted
Which, in words, says that the closing of by B is simply the dilation of A by B, followed by the erosion of the result by B.
Use the basic operations of dilation, erosion, opening and closing to develop several basic gray-scale morphological algorithms, especially, for edge extraction via the morphological operations. Throughout the discussions that follow, digital image functions of the form f(x, y) and b(x, y) are dealt with, where f(x, y) is the input image and b(x, y) is a structuring element, itself a sub-image function. The assumption is that these functions that assign a gray-level value which is a real number from the set of real numbers.
Gray-scale dilation of f by b, denoted f ⊕ b, is defined as
Where Df and Db are the domains of f and b, respectively. f and b are functions rather than sets.
The condition that (s − x) and (t − y) have to be in the domain of f, and x and y have to be in the domain of b, is analogous to the condition in the binary definition of dilation, where the two sets have to overlap by at least one element.
Gray-scale erosion, denoted f ⊕ b, is defined as
Where D f and D b are the domains of f and b, respectively. The condition that (s + x) and (t + y) have to be in the domain of f, and x and y have to be in the domain of b, is analogous to the condition in the binary definition of erosion, where the structuring element has to be completely contained by the set being eroded.
The expressions for opening closing of gray-scale images have the same form as their binary counterparts. The opening of image f by sub-image (structuring element) b, denoted
Opening is the erosion of f by b, followed by a dilation of the result by b.
Similarly, the closing of f by b, denoted
The opening and closing for gray-scale images are duals with respect to complementation and reflection. That is,
Because fc = −f(x, y), equation (11) can be written also as
Opening and closing of images have a simple geometric interpretation. Suppose that we view an image function f(x, y) in 3-D perspective, with x and y axes being the usual spatial coordinates and the third axis being gray-level values. In this representation, the image appears as a discrete surface whose value at any point (x, y) is the value of f at those coordinates. Suppose that we open f by a spherical structuring element b, viewing this element as a “rolling ball”. Then the mechanics of opening f by b may be interpreted geometrically as the process of pushing the ball against the underside of the surface, while at the same time rolling it so that the entire underside of the surface of the highest points reached by any part of the sphere as it slides over the entire undersurface of f.
Robert Operator
Robert operator is an easy edge detection operator using local difference operator to detect edge. It is an effective operator for the image with steep low noise. Robert operator can be expressed as the form of two as shown in Fig. 2. Two masks are used to calculate

Two masks of Robert operator in x and y direction.
Sobel operator is used to detect edge in the form of filter operator. Sobel operator can be expressed as the form of two masks as shown in Fig. 3. They are used to calculate the convolution of each pixel. The first mask has strong effect on vertical edge. The second mask has strong effect on horizontal edge. The max values of two convolutions are regarded as the output points. The result is an edge magnitude image.

Two masks of Sobel operator in x and y direction.
The same as Sobel operator each pixel in the image is calculated the convolution by using two masks shown in Fig. 4 and gain the max values in different directions. The result is also an edge magnitude image.

Two masks of Prewitt operator in x and y direction.
In the process of digital image management, difference gradient operator often combines with threshold technique for image edge detection. In the same condition of difference gradient operator, morphological gradient operator can also combine with threshold for using to complete edge detection. In the process of which, if gradient value of one place is large, then shows that change was rapid at this point of image, so edge is likely to pass through. These gradients can be give out as digital difference format. Three morphological gradient operators were defined.
We define weighted erosion (WER) and dilation (WDI) as (1) (2).
There is X original image, B structuring element. The other operators, such as weighted opening (WOP) and closing (WCL), are simply cascades of weighted erosion and dilation which can be described as WOP(X) = WDI(WER(X)) and WCL(X) = WER(WDI(X)), respectively. Weighted open-closing (WOPCL) and close-opening (WCLOP) are denoted WOPCL(X) = WCL(WOP(X)) and WCLOP(X) = WOP(WCL(X)), respectively. The structuring element B has a normalized weight factor and its elements are calculated such that the edge directional point's weight is 1 and the farthest point's weight is assigned a weight factor
In mathematical morphological operations, there are always two sets involved: The shape of an image is determined by the values that the signal takes on. The shape information of the image is extracted by using a structuring element to operate on the image. So morphological image processing lies on morphological operations combination and structuring elements. In case operations' mode is selected, relevant result is ascertained by structuring elements. Yet designing effective structuring elements is a difficult task. In this paper, a new algorithm based adaptive weighted morphological operations is proposed, adaptive select structuring element to extract edge. Morphological grads operator
The weighted morphological operators emphasize the edge direction points of window effect. Therefore an adaptive weighted morphological transformation algorithm is proposed. If pixel in the edge of window is edge, a big weight factor is put; if it doesn't exist, a small weight factor is put. Thus the probability of the edge detection is improved by morphological operations. So the first step is looking for edge in this paper. Circumrotate cover edge search method is adopted. SE apply rectangle cover figure.1, let it circumrotation goes around the center edge of SE. Then ensure position of grey variance maximum in rectangle cover, so we may employ variance as domanial estimate. By way of preferably extract edge of image, apply figure formal cover mode.
The structuring element is confirmed, then adopt adaptive weighted matrix to detect image edge. The structuring element B has a normalized weight factor and its elements are calculated such that the edge directional point's weight is 1 and the farthest point's weight is assigned a weight factor
Finally, whether or not edge pixels exist is judged by selecting weight SE can let non-edge pixels give small weight factor, yet let edge pixels give big weight factor. When the structuring elements is toned or restrained, edge is given prominence by morphological swell operation; edge is given weaken by morphological erode operation. So edge is much more extruded. At the same time some of the small details edges are more distinct.
Simulation Experiments and Results
In this paper, the Lena image and Docking plane image are used in this experiment to process edge detection. Several popular gradient-based edge detection algorithms were experimented on the images, including Sobel, Laplacian of Gaussian and so on. The original image, as shown in Fig.5, Laplacian of Gaussian Edge Detector image, as shown in Fig.6, Sobel edge detector image, as shown in Fig.7, and the proposed method image, as shown in Fig.8. Edge detect image of docking plane is shown in Fig.9.

Original image

LOG edge image

Sobel edge detection image

The proposed method image

(a) (b) (c) the proposed method images
As can be seen from the images, Sobel edge detector is highly subjected to detection of false edges. This is probably due to the high threshold value used to detect weak edges in the Sobel detector. The most common error that occurred in four detectors (Sobel and LoG) tested are missing true edges. This is especially obvious in Laplacian of Gaussian detector probably due to the smoothing operation prior to edge detection. Laplacian of Gaussian detector also produces a small degree of disconnected edges especially in complex shapes such as map in Lena. The proposed method can not only primely extract detail edge, but also superbly preserve integer effect.
The proposed method is based on whether or not edge pixels exist is judged by selecting weight SE can let non-edge pixels give small weight factor, yet let edge pixels give big weight factor. The method can generate the high connectively edge features by other method effectively. Image edges are clear and false edges almost not exist. At the same time some of the small details edges are more distinct. Therefore, the proposed method is advantage of their algorithm comparing with other algorithm.
In this paper, we presented an image segmentation algorithm based on adaptive weighted mathematical morphology edge detectors. The performance of the proposed algorithm has been demonstrated on the Lena image. The input of the proposed algorithm is a grey level image. The image was first processed by the mathematical morphological closing and dilation residue edge detector to enhance the edge features and sketch out the contour of the image, respectively. Then the adaptive weight SE operation was applied to the edge-extracted image to fuse edge gaps and hill up holds. Experimental results show it can not only primely extract detail edge, but also superbly preserve integer effect comparative to classical edge detection algorithm.
