Keywords

1 Introduction

Edge detection plays a fundamental importance in image analysis, processing and computer vision applications. As the first step of visual perception, extensive R&D has being focused for 40 years (more than forty thousand years—drawing arts in human civilization). Many useful edge detection operators have been invented and applied in wider applications.

From an operational viewpoint, edge detection creates edge maps from images shown in Fig. 1a. Edge detection operators identify significant changes from visual objects as their edges or contours. From a historical viewpoint, common edge detection approaches are divided into five approaches. Traditional edge detections have three main categories: Gradient, Laplacian and Gaussian; another two categories are mathematical morphology and conjugate. The five categories will be briefly introduced as follows.

Fig. 1
figure 1

Recursive edge extraction. a Edge detection; b Recursive edge maps; c Edge accuracy measures

1.1 Gradient

Gradient scheme has a direction corresponding to convolution operations; we can use 2 × 2, 3 × 3 matrices or more complicated schemes to construct relevant operators, for example, Roberts operator uses 2 × 2 matrix to detect edges on main diagonal or anti-diagonal directions. Prewitt, Sobel and Isotropic schemes take 3 × 3 matrices using different parameters to extract horizontal or vertical edges from digital images shown in Fig. 2a.

Fig. 2
figure 2

Different edge detection methods. a Gradient; b Laplacian; c Gaussian; d Mathematical morphology; e Conjugate

1.2 Laplacian

A typical Laplacian scheme is Marrs–Hildreth’s zero crossings. This scheme uses the second differential information to determine zero crossings of the edges shown in Fig. 2b.

1.3 Gaussian

Canny edge filter plays a significant role in advanced edge detection applications from late of 1980s. This scheme applies Gaussian smoothing filter first, then gradient operations and finally thinning processes and its final results shown in Fig. 2c. Different from Gradient and Laplacian schemes, Canny edge detection provides controllable parameters to balance noise levels and significant edge components. Because of its controllable properties, this scheme widely used in many practical applications in relation to significant edge components.

1.4 Mathematical Morphology

Mathematical morphology plays an important role in advanced image analysis and processing applications from 1980s. Using discrete patterns as morphological masks, the method applies erosion and dilation, opening and closing operations on the processed images. This method distinguishes edge and non-edge masks. In general, only translation invariant can be retained in operations. Each time of basic operation uses one mask on either erosion or dilation corresponding to reduce or extend boundaries of the visual objects. There is no simple relationship between the selected mask states and edge states. Two edge maps using a crossing mask under either erosion or dilation are shown in Fig. 2d. Each edge map has been calculated by either dilated or eroded output image subtracted by the input edge map.

1.5 Conjugate

Conjugate scheme has been developed from 1990s and based on a full pattern classification of nearest neighbourhood relationship of discrete states on regular plan lattices under rotation, reflection and translation invariants. This approach can express local patterns into invariant groups such as isolated, inner, block edge and intersection to organise whole pattern space as a hierarchical construction. Both background and foreground information need to be represented as balanced structures in conjugate phase space. Under certain conditions, it is feasible to use two types of edge maps in representations. In Fig. 2e, two typical edge maps are illustrated to use conjugate scheme:

  • Negative (White edge map on black background) and

  • Positive (Black edge map on white background).

From edge detection considerations, different operations provide special properties to be emphasised by various visual information from images. Simple convolution filters may provide fast process; however, it is highly possible to be sensitively influenced by minor noise levels. Among three traditional edge detection schemes, Canny edge detector shows an important characteristic with a series of controllable edge maps in reliable properties. Because distinct edge detectors have different behaviours, it is very hard for applicants to make simple selections apply the best one among schemes. Mathematical morphology applies discrete masks in operations. Since edge maps normally do not correspond to masks themselves directly, it is difficult to establish a link from relevant operations and edge detection results.

Considering edge detection operation extracts edge map from digital images. Under this viewpoint, we need to establish a proper model in determining invariant properties among edge detection schemes.

2 Recursive Model of Edge Accuracy

Different edge detection methods cover various applications with advantages in many aspects. From a practical viewpoint, it is hard for users to make proper judgment on which method provides the best edge map to satisfy suitable applications. From history of edge detection research, no model can provide general mechanism in systematic comparison among distinguished methods. Since the target of different edge detections creates edge maps, it is natural for us to determine under which conditions the edge maps can represent true edge.

2.1 Question

Could an extracted edge map be a true edge representation?

From a morphological viewpoint, true edge map needs to have invariant properties relevant to their geometric and topological constrains. In many theories and practices in relation to dynamic systems and cybernetics, recursive methods and models have been approved to be a foundational importance in detailed analysis tasks. A recursive model has been applied in testing edge detection operators to explore their refined properties shown in Fig. 1b. Using this feedback mechanism, edge map needs to be looped back again undertaken the same type of edge detection operators. The recursive loop shows an important magnification to identify dynamic behaviours among input and output pairs directly.

3 Four Types of Edge Accuracy Measures

Under the recursive approach, a true edge representation must be the recursive edge map itself. Such invariant of recursive operations can be observed as intrinsic properties in relation to the edge detection operators themselves. In addition to invariant properties, many rich effects among input and output pairs need to be concerned. To make proper judgment among recursive results, it is essential to apply four different accurate measures shown in Fig. 1c. They are {=, ≈, ≠, Ø} representing accurate, almost accurate, inaccurate and trivial behaviours, respectively, between input and output edge maps. From matched results between extracted edge map and its recursive edge extraction map, it is feasible to determine the category in which generated results need to be belonging to. This provides a general model independent of a specific edge detection scheme. If anyone would like to check which category could be belonging to a special scheme, the person can simply apply this recursive mechanism to check specific method itself directly in explorations.

4 Four Sample Groups of Recursive Edge Maps

In Fig. 3a–d, four groups of recursive edge maps are generated in illustration. Two operators are selected from Photoshop: Find edge (Gradient) Fig. 3a and trace contour (Zero crossings) Fig. 3b. Find edge operation has a clear variant property, and trace contour will have a flip-flop behaviour after certain operations. One example is selected from Canny edge detector shown in Fig. 3c. Recursive results of Canny operation show that two sets of examples are shown in Fig. 3d for mathematical morphology. It is interesting to see dilation representing almost invariant properties and erosion creating edge map similar to zero crossing effects. To show different recursive properties of conjugate scheme, four sub-operators are illustrated in Fig. 3e1–e4. Each group shows a specific category among three non-trivial results. In conjugate edge detection operators, there are two types of controllable parameters that are available corresponding to meta-shape parameters {A, …, L, a, …, l} and enhanced ratio control {−8, …, 8}. Both controllable parameters can provide universal edge representation on true edge map to support various edge representations undertaken selected operations.

Fig. 3
figure 3figure 3figure 3figure 3figure 3

Recursive maps of different edge detection operators. a Find edges; b Trace edge; c Canny edge detection; d Morphology; e Conjugate edge detection

5 Comparison

Using the five categories, it is feasible to make summary in Table 1. This provides a systematic way in comparison.

Table 1 Edge detection schemes and their accuracy properties

6 Conclusion

  • Existing edge detections are without unique recursive maps as their representations.

  • Conjugate technology provides full controls to create true edge maps in accuracy and invariance.

  • True edge maps contain unique shape information in fundamental importance to support all visual applications.