1 Introduction

Scanned topographic map digitization is widely used in geographic information system of transportation, tourism and military. In the case of that all geographic elements are mixed together in one scanned color map, the basis of digitization is classifying geographic elements, such as contour lines, roads and point-symbols, into different layers [25]. Most topographic maps use colors to help the user to distinguish different feature categories [12, 16, 28]. Therefore, classifying geographic elements into different layers is also defined as color segmentation in a color map. Figure 1 shows the expected result of color map segmentation. It can be seen that four color layers are separated from the original color map. Each layer represents one or a type of geographic elements, such as road and point-symbol layer, contour line layer, vegetation layer and river layer.

Fig. 1
figure 1

The purpose of color image segmentation to color map

In recent years, many algorithms have been proposed for color topographic maps segmentation. Khotanzad and Chen employed color key set to comprehend color aliasing and false colors in maps thus to segment the color topographic maps [7, 12]. This method suffers from limited applicability to poor conditioned maps. Zheng et al. presented a color image segmentation method based on fuzzy clustering with two-dimensional histogram [30]. This unsupervised method can segment color map images automatically. However, it cannot overcome the problems of false colors and mixed colors due to the less consideration about the spatial relationship. In order to make full use of the information in color space, local homogeneity and connected regions of color layers, Leyk proposed a segmentation method based on Seeded Region Growing (SRG) and information of the local image, the frequency domain and the color space [15, 16]. However, this method still cannot overcome the disadvantage in the initial seeds selection and the order dependencies of SRG. It also requires extensive parameters, which leads to lacking of robustness.

In addition, there has been a remarkable growth of techniques for the segmentation of images. Segmentation based on histogram threshold is widely used in gray or color images [5, 14, 20, 22] for its high efficiency and simplicity. But these kinds of methods are lack of accuracy and they are difficult to be applied in inferior quality images. The Fuzzy c-means (FCM) algorithm gets a lot of popularity in image segmentation thanks to the successful introduction of fuzzification to every pixel. Compared with hard cluster methods, FCM algorithm could retain more original information of image [24]. Lim [18] and Blosca [2] adopted FCM to assign the unclassified pixels to the closest class at the coarse stage using the detected cluster centers in order to solve the problem of cluster validity with the coarse-fine theory. Mohamed [1] presented a new algorithm named Bias-Corrected FCM (BCFCM), which modified the objective function of FCM to compensate for the gray (intensity) inhomogeneity and to allow the labeling of a pixel to be influenced by the labels in its immediate neighborhood. Moreover, by incorporating local spatial and gray information together, a novel fast and robust FCM framework for image segmentation called Fast Generalized Fuzzy c-means clustering algorithms (FGFCM) is proposed in [3]. In addition, artificial neural networks are also widely applied in image segmentation, such as Hopfield neural networks (HNN) [4, 11], self-organizing map (SOM) neural networks [21] and pulse-coupled neural network (PCNN) [13, 23, 26, 31].

Here, we present a color map segmentation method which employs the linear elements as elementary units. This method could significant improve the completeness and correctness of segmentation results compare with the existing algorithms. There are three advantages which make the good performance of this method possible. Firstly, the background removal method applied could accurately extract linear elements, i.e. the fundament of segmentation is highly strong. Secondly, the linear elements and their features used in segmentation could represent the geographic elements appropriately, which make the segmentation effectively. Lastly, the merging of disconnected nodes after segmentation could further improve the completeness of segmentation results.

This paper is organized as follows: analysis about the shortages of existent methods and the difficulties in color map segmentation are given in section 2. In section 3, the proposed method is described in detail. Some objective evaluation metrics are introduced in section 4. Experiments which indicate the superiority and effectiveness of our proposed method are implemented and analyzed in Section 5. Finally, the concluding remarks are given in section 6.

2 Analysis

In general, the existing color map segmentation methods can be classified into two types. One is based on the color features of pixels, which regards a single pixel as an elementary unit in the segmentation process [7, 12, 30]. These methods distinguish pixels on the basis of similarity in color between pixels and centers of prototypes, which result in their high efficiency and easy to be achieved. Since lacking of space features, they are not robust to deal with noisy points. The other one considers both color features and local features of the image [1, 3, 15, 16] and it can overcome the noise problem to some extent. However, the shape of neighbor regions always are circles or rectangles and are not direction-oriented, which limits its application in confronting mixed and false colors. If using these methods mentioned above, some pixels in line features could be falsely segmented into other layers which will lead to the fracture of linear elements. These results were caused by the serious false colors and color aliasing which are influenced by different kinds of factors during the process of map-making and scanning. False colors are caused by RGB misalignment in the scanner. RGB misalignment occurs whenever the red, green, and blue color planes are not perfectly registered. Physical and optical misalignments are the two major causes of RGB misalignment [12]. For instance, as shown in Fig. 2a, the original color of contour lines should be brown. However, it can be seen that, affected by RGB misalignment, the color of some pixels are converted to green and purple after scanned. This would cause the incompletion and fracture of the linear elements. On the other hand, aliasing is induced by the scanner’s point spread function. Color deviation shown in Fig. 2b is caused by overlap of contour line and vegetation. For the aliasing and mixing, pixels in overlapping colors will lose their original color features [12]. In Fig. 2b, the zoomed-in pictures show normal contour line and overlapping contour line respectively. It can be seen that pixels on the overlapping contour line have deviations in color. Figures 2, 5, 7 and 9 are parts of a scanned color topographic map whose horizontal resolution and vertical resolution are both 96. The scanning resolution is a key technical parameter in determining the quality of images. High resolution images could keep details in it which will reduce color deviation. Unfortunately, lots of maps are not scanned in sufficient high resolution, just as the images mentioned above. In this case, the width of most lines is only two or three pixels, which makes color deviation occupies a large portion in pixels of lines. Thus, the color image segmentation in low scanning resolution maps is still a big challenge.

Fig. 2
figure 2

Color deviation in a map

Three types of elements, line (such as contour line and road), point (such as point-symbol) and area (such as vegetation), are contained in a topographic map (as shown in Fig. 1). Point features in maps are always drawn as closed or not closed curves which correspond to their geographic elements, like symbols marked by red rectangle. In addition, both point features and line features will be kept after removing the areal elements. So, two definitions are given as following.

  • Linear elements are defined as the closed/not closed curves which include points and lines in maps. And the linear element features represent the characteristics of linear elements such as color features, shape features and textural features.

  • Areal elements are the background and area (such as vegetation) in maps.

Hence, all pixels in a map can be classified as either linear elements or areal elements. As we all know, most information in a topographic map is expressed by linear elements, thus they play a vital role during the process of color map digitization. Meanwhile, areal elements can only provide the information through their boundary, which means most pixels in areal elements are insignificant. What is more, the areal elements in a color map are often blurred and contain mixed colors for its improper preservation or the influences of external factors when scanned. Consequently, the results of segmentation are easily affected by these factors.

Hong Chen [6] proposed a color map segmentation method based on object-oriented technology. Compared with other color map segmentation methods, it not only combines color feature and spatial feature, but also breaks through the size limitation and non-direction of neighbor regions, by regarding connected region as the elementary units. Firstly, the linear elements are separated from the areal elements using a simple threshold method based on RGB color feature for image segmentation. Then the line features are thinned and the nodes are disconnected. Finally, these independent one-pixel width linear elements are segmented into different layers by using the average color value as their color features. The continuity of linear elements can be preserved to some extent and the result obtained is relatively ideal. However, there still are some defects: (1) the method for removing the areal elements is oversimplified because the threshold method for image segmentation is more suitable for the maps in high quality to separate areal elements from linear elements rather than for those which are blurred. (2) The linear elements are located in the centre line of original linear elements after been thinned. But for the linear elements which are blurred or mixed with the areal elements, there still exist large amounts of mixed colors in the centre line. Thus, the proportion of mixed colors will increase with the reduction of pixels in the linear elements. Even a few mixed color pixels would occupy a large proportion in a thinned linear element. (3) Color features of the linear elements cannot be accurately represented because average color value could be interfered by the mixed colors. (4) Since the disconnected nodes are not merged into layers after segmentation, it will cause information losing and poor continuity of linear elements.

Considering these problems, we propose a new color map segmentation method based on linear element features. The elementary unit used for segmentation is not single pixel but linear elements. Firstly, the background removal algorithm base on energy density and shear transform is used to remove the background and the areal elements [19]. Secondly, thinning, nodes disconnection, labeling and dilation, are employed to process the linear elements successively. The linear elements are separated by FCM based on the main color features previously calculated. Lastly, the linear elements of each layer are thinned and the disconnected nodes are merged into the corresponding layers so that the linear elements can be more continuous. The new method can discover the distribution of linear geographic elements from the background removed results. This prior knowledge in distribution of linear elements plays an important guiding role in the later segmentation. This method not only regards the linear elements as unit which could guarantee the continuity in results, but also employs the main color as the feature of each linear element which could overcome the problems of noise, false color and color aliasing. This region based segmentation method which has a prior knowledge in region partition, could significantly improve the accuracy of segmentation results. In addition, the merging of disconnected nodes could further improve the completeness of the obtained results.

3 Color map segmentation method based on linear element features

3.1 Overview of the method

In this section, a new algorithm named Color Map Segmentation method based on Linear Element Features (CMSLEF) and the specific steps are introduced. The input of this method is an original scanned topographic map. After the processes of areal elements removal, thinning, nodes disconnecting, dilating and clustered by FCM, the results are obtained by merging the disconnected nodes to the layers obtained by classification. The flow chart of CMSLEF is shown in Fig. 3.

Fig. 3
figure 3

The flow chart of CMSLEF

3.2 The areal elements removal method

The areal elements removal method proposed by Miao etc. [19], which is based on energy density and the shear transform, is adopted in our method. This method proposed a concept of energy density, which can reflect the degree of the energy concentration in a grayscale image, is defined as the average energy of a region. It is described by the following formula.

$$ E=\frac{1}{M\times N}{\displaystyle \sum_{i=1}^M{\displaystyle \sum_{j=1}^Nf{\left(i,j\right)}^2}} $$
(1)

where E is the energy density, M × N is the size of the area, f(i, j) is the gray-level of a pixel in the grayscale image. Then two templates, both in vertical direction and horizontal direction, for linear separation from background are built. The energy density of lines and background can be calculated with these templates, then linear features and background can be separated from each other based on the difference of the energy densities.

Furthermore, in order to solve the problem that linear features may be lost in the process of linear separation due to the directional limitation (some lines can only be separated in one direction), the shear transform [17] is applied to get n directions of affine images. The shear transform is an affine transforms which is a very convenient tool to provide directionality in the sense that it preserves important geometric information such as length, angles, and parallelism. We had detailed the shear transform in our previous work [19], which will not be explained in this method. In our method, the number of directions n is usually equal to 3 which corresponding to 0°, − 45° and 45°. That is because in a small region on grid image, these three directions could contain almost all trends of lines. The flow diagram of this method is shown in Fig. 4.

Fig. 4
figure 4

The flow diagrams of areal elements removal method

In this method, a threshold T of the energy density difference between the linear elements and areal elements needs to be set to extract linear elements from the original color map. An overlarge value for T which would make it difficult to separate the linear element (some of them may be wrongly recognized as areal element) could cause the incompleteness of results for the linear element extraction. Similarly, an undersized value for T which would pose a challenge on removing the areal element (some of them probably be judged as linear element and maintained) could result in the incorrect information is included in the final extraction result. Figure 5 shows the original map and the linear elements map after background removal. It can be seen that all the background color disappears in Fig. 5b. Meanwhile, lots of false colors, as shown in the zoomed-in inset, are kept which guarantee the continuity of contour line. What’s more, Fig. 7 shows the contour lines after areal element removal, which overlap with vegetation in original map. The zoomed-in image indicates numerous aliasing and mixed colors are retained in contour lines which also guarantee the continuity of contour line. In this way, the process retains the linear elements, avoiding the interruption caused by false color and color deviation as well.

Fig. 5
figure 5

The result of background removal

3.3 Methods for thinning and dilation of linear elements

Thinning algorithm reduces the line width from multi pixels to one pixel in the binary image. The thinning algorithm based on the classical mathematical morphology [8], using the group of structure elements shown in Fig. 6a, is employed to thin the linear elements and a thinned linear element map (Fig. 9c) is obtained. The purpose of thinning is to find the intersections of the linear elements. Pixels with more than two neighbors are regarded as nodes which need to be separated from thinned linear element map. After this disconnecting process, nodes map (Fig. 9d) and disconnected thinned linear element map (Fig. 9e) are achieved.

Fig. 6
figure 6

Operators for mathematical morphology operation. The symbol ‘×’ means without consideration

Although the linear element after thinning can maintain the continuity, one-pixel-width linear element will lose the majority of the color information of the linear elements. Furthermore, the color features of thinned linear elements cannot represent the original linear element features well if there are too much mixed colors contained in the thinned linear elements. Therefore, as the great supplement of the thinned linear elements, it is necessary to obtain the corresponding pixels and their neighbor pixels from the original linear element map, which is shown in Fig. 9b as an example. The dilation algorithm based on morphological dilation [8] with the expansion operator shown in Fig. 6b is employed in expanding the thinned linear elements in order to get the corresponding region of the original pixels. Specifically, the new pixels added by dilation have to be certainly obtained from the original linear map. So, if there are no pixels in the original linear map corresponding to these new added pixels, the new pixels should be removed from the dilated map (Fig. 9f).

3.4 Extraction of linear element color features

Color, as the foundation of distinguishing geographic elements, is the most important information in color map segmentation. Thus, the accuracy of the element color features has a great effect on the result of segmentation. Chen [6] uses the average color value as the linear element color feature. Although it is easy to achieve, average color value cannot precisely represent the color feature of linear element when mixed colors exist. A type of linear elements in color map is shown in Fig. 7. Figure 7a is a map of linear elements and a contour line in it is shown as Fig. 7b. There are lots of green pixels mixed in the contour line, which is caused by overlapping of contour line and vegetation. Obviously, it is inaccurate to regard average color value as color feature.

Fig. 7
figure 7

A type of linear elements in color map

Therefore, we define the majority color of pixels as the main color to represent the linear element feature. In this way, if there are several main colors in one linear element, the average color should be calculated first, and the one which is the nearest to the average color would be chosen as the main color.

3.5 Segmentation

We employed FCM algorithm to segment independent linear elements into different layers. Assume that X = (x 1, x 2, ⋯ x n ) is the set of linear element features with the purpose of c partitions. Let V = (v 1, v 2, ⋯ v c ) represents a c-tuple centers of clusters and U = (u jk ) c × n is a fuzzy membership matrix with u jk denoting the grade of membership of feature point x k in cluster j. The object function of FCM algorithm can be described as formula (1).

$$ \min \kern1em J={\displaystyle \sum_{k=1}^n{\displaystyle \sum_{j=1}^c{u_{jk}}^m{\left\Vert {x}_k-{v}_j\right\Vert}^2}} $$
(1)

where m is the weighting exponent on each fuzzy membership. A smaller m indicates a less fuzzier U, while a larger one indicates a fuzzier U. The choice of m = 2 is widely accepted as a good choice [9, 29]. The fuzzy membership matrix U (u jk  ∈ [0, 1]) can be randomly initialized. The solution of formula (1) can be obtained through an iterative computation of formulas (2) and (3) until the object function converges to a stable state.

$$ {u}_{jk}=\frac{{\left\Vert {x}_k-{v}_j\right\Vert}^{\frac{2}{1-m}}}{{\displaystyle \sum_{i=1}^c{\left\Vert {x}_k-{v}_i\right\Vert}^{\frac{2}{1-m}}}},\kern0.5em k=1,2,\cdots, n;j=1,2,\cdots, c $$
(2)
$$ {v}_j=\frac{{\displaystyle \sum_{k=1}^n{u_{jk}}^m{x}_k}}{{\displaystyle \sum_{k=1}^n{u_{jk}}^m}},\kern0.5em \mathrm{j}=1,2,\cdots, c $$
(3)

Then, each linear element is classified into the layer which corresponds to the largest u jk (k = 1, 2, ⋯, n) (Fig. 9g-i). In addition, the separated node pixels in section 3.3 are merged into their most similar layers based on the distance between them and the cluster centers v j (j = 1, 2, ⋯ c) in color space. Automatic vectorization of topographic map is mainly applied to trace pixels in each layer since one-pixel width results are more convenient for vectorization. Thus, before merging the nodes, thinning algorithm introduced in section 3.3 is applied to the segmented linear elements. Eventually, the final segmented layers are obtained (Fig. 9 j-l).

4 The evaluation metric

At present, the existing evaluation metrics of segmentation for topographic map are mainly based on comparison to manually plotted geographic elements [7, 10, 27]. These approaches evaluate segmentation results with methods of exhaustion, which can provide an objective evaluation. In this paper, we use completeness, correctness and quality [10] to evaluate the segmentation results. They are defined as following.

  • Completeness is the percentage of reference lines which lie within the buffer around the extracted lines. It can be described as formula (4). The optimum value for the completeness is 1.

$$ \begin{array}{l} completeness=\frac{length\kern0.5em of\kern0.5em matched\kern0.5em reference\kern0.5em lines}{length\kern0.5em of\kern0.5em reference\kern0.5em lines}\\ {}\; completeness\in \left[0,1\right]\end{array} $$
(4)
  • Correctness is the percentage of extracted lines which lie within the buffer around the reference lines. It can be described as formula (5). The optimum value for the correctness is 1.

$$ \begin{array}{l} correctness=\frac{length\kern0.5em of\kern0.5em matched\kern0.5em extraction\kern0.5em lines}{length\kern0.5em of\kern0.5em extraction\kern0.5em lines}\\ {}\kern0.5em correctness\in \left[0,1\right]\end{array} $$
(5)
  • Quality is a more general measure of the final result combining completeness and correctness. It can be described as formula (6). The optimum value for the quality is 1.

$$ \begin{array}{l} quality=\frac{length\kern0.5em of\kern0.5em matched\kern0.5em extraction\kern0.5em lines}{length\kern0.5em of\kern0.5em extraction\kern0.5em lines\kern0.5em +\kern0.5em length\kern0.5em of\kern0.5em unmatched\kern0.5em reference\kern0.5em lines}\\ {}\; quality\in \left[0,1\right]\end{array} $$
(6)

The definitions of factors appear in these metrics are illustrated in Fig. 8. All the lines in Fig. 8 represent the lines after thinning process. The length of a line is the number of pixels in it. The buffer of reference lines are the manually extracted lines without thinning. And the buffer width of extracted lines is always 1 pixel in these evaluation metrics.

Fig. 8
figure 8

Matching principle

5 Experiments and analysis

In order to verify the validity of our proposed algorithm, three experiments are given in this section. Experiment 1 is used to illustrate the results of each procedure of our method CMSLEF. The other experiments are designed to compare the performances of different algorithms.

5.1 Intermediate and final results of CMSLEF

According to CMSLEF, the results of each experimental procedure are shown in Fig. 9. The original image with the size of 512 × 512 is segmented into 3 layers. We set the threshold T = 15 in the areal elements removal method and m = 2 in FCM for the CMSLEF. The number of clusters in FCM is manually assigned depend on how many geographic elements appear in the linear element map. Meanwhile, the cluster centers are initialized randomly. The original image, named Map0 is shown in Fig. 9a, and its linear element map after areal element removal, named Map1 is shown in Fig. 9b. Figure 9c is obtained by thinning Map1. It is the thinned linear element map, named Map2. The linear element map, named Map3, and the map of disconnected nodes, named Map4 are illustrated in Fig. 9d and e, respectively. Figure 9f shows the dilated linear element map, named Map5. Figure 9g to i shows the segmented layers, and the final results are shown in Fig. 9j to l.

Fig. 9
figure 9

The results of each experimental procedure

From the final results we can see that the lines keep good continuity. In Fig. 9j, some brown pixels which caused by aliasing are not separated from the black layer they should belong to. In Fig. 9k, besides the false color, the merged disconnected nodes are also helpful to the continuity of river features. In Fig. 9l, mixed colors which caused by overlapping appear in this brown layer guarantee the integrity of contour lines. It can be seen that our algorithm can keep the continuity of linear elements under aliasing and false colors, which could hardly be achieved with other segmentation method based on pixels.

5.2 Comparison experiments

FCM algorithm has been widely used in image segmentation for the successfully introduction of fuzzification [2, 18, 30]. It is a partitioning method based on Picard iteration through necessary conditions for optimizing a weighted sum of objective functions. The conventional FCM method is employed to the comparison method which is based on pixels. The elementary unit in calculation of comparison method is pixel and that of our method is the linear element. Thus in the CMSLEF, the size of data set is much smaller than that of comparison method, which lead to lower computation cost. We set m = 2, manually assigned the number of clusters and randomly initialize the cluster centers for both methods and T = 15 for CMSLEF in the following 5 comparison experiments. In addition, Leyk’s method [16] is also employed to make comparisons with the CMSLEF. Leyk applied seeded region growing algorithm which based on homogeneity to segment color map into different layers. In his method, there are three important parameters which are homogeneity threshold h crit , similar distance threshold d crit and frequency threshold c crit . The results shown in the following experiments of Leyk’s method are achieved under the parameters which we adjust to appropriate ones.

Two maps with the size 512 × 512 are used to compare the performance of different methods. The experiment results with magnified regions are shown in Figs. 10 and 11. Figures 10a and 11a are the original maps and the first column shows the reference layers extracted manually from the original maps.

Fig. 10
figure 10

Results of comparison experiment. The red rectangles show superiority of our method in connectivity and the blue rectangles indicate fewer interferential pixels in results of CMSLEF. For Leyk’s method, we set h crit  = 0.95, d crit  = 40 and c crit  = 50

Fig. 11
figure 11

Results of comparison experiment. The red rectangles show superiority of our method in connectivity and the blue rectangles indicate fewer interferential pixels in results of CMSLEF. For Leyk’s method, we set h crit  = 0.95, d crit  = 40 and c crit  = 80

The experimental results show that the proposed algorithm achieves a better performance in information integrity, correctness and redundancy. As shown in Fig. 10c1 and c3, there are lots of breakages (red rectangles) in the contours, and there exists some pixels which should not belong to the contour (blue rectangle) in this figure. But these cases do not occur in Fig. 10c2. Similarly, these phenomena also can be seen in other figures. For the method based on pixels, the region information is not involved. It would make mistake in the segmentation results when there exists false colors and aliasing. In Leyk’s method, the homogeneity in neighborhoods is employed. But in the region growing process, the inaccurate local information always leads to a succession of false segmentation. The color deviation not only causes gaps, for example, the gaps of contour lines shown in Fig. 10c1, but also introduce interferential pixels in other layers, which can be found from contour line points shown in Fig. 10d1 and e1. But CMSLEF can efficiently deal with these problems by regarding all pixels included in one geography element as a unit.

Furthermore, the evaluation in the following illustrates the advantage of the CMSLEF. We use the metrics introduced in section 4 to assess the experiment results. The evaluation results for Figs. 10 and 11 are shown in Tables 1 and 2, respectively. The image labels, e.g. b1, in Tables 1 and 2 are corresponding to the index of segmentation results in Figs. 10 and 11.

Table 1 Evaluation of results in Fig. 10
Table 2 Evaluation of results in Fig. 11

According to the tables shown above, the MSLEF reaches a higher completeness and correctness. The general metric quality further verifies a better performance of CMSLEF. It can be seen that except c2 of Table 2, the quality values of all layers obtained by CMSLEF are larger than those of other comparisons. The reason of c1 in Table 2 gets a larger quality value is not due to its high completeness and correctness. Actually, it is because that there are lots of small circles (as shown in Fig. 11c1) in the lines after thinning, which are caused by the inaccuracy segmentation. And these circles enlarge both the length of matched extracted lines and the length of matched reference lines. As a result, the value of its quality has become larger. In conclusion, from the tables it can be seen that our proposed method achieves a better performance in both completeness and correctness.

In order to further prove the good performance of CMSLEF, three another comparison experiments are shown in Figs. 12, 13, 14. The evaluations of these experiment results are shown in Table 3.

Fig. 12
figure 12

Results of comparison experiment. The first row shows the original color map with the size of 460 × 393. From the left column to the right one, they are referenced layers, results of FCM based on pixels, results of CMSLEF and results of Leyk’s method. For Leyk’s method, we set h crit  = 0.95, d crit  = 50 and c crit  = 100

Fig. 13
figure 13

Results of comparison experiment. The first row shows the original color map with the size 752 × 587. From the left column to the right one, they are referenced layers, results of FCM based on pixels, results of CMSLEF and results of Leyk’s method. For Leyk’s method, we set h crit  = 0.95, d crit  = 40 and c crit  = 10

Fig. 14
figure 14

Results of comparison experiment. The first row shows the original color map with the size 730 × 536. From the left column to the right one, they are referenced layers, results of FCM based on pixels, results of CMSLEF and results of Leyk’s method. For Leyk’s method, we set h crit  = 0.95, d crit  = 15 and c crit  = 10

Table 3 Quality of segmented layers in Figs. 12, 13 and 14

It is worth noting that in Fig. 13, the last image in the second column is white. That is because, the method FCM based on pixels cannot separate the red ‘30’ from the brown layer successfully. It could be caused by the fact that the size of the red data is too small to be regarded as one cluster during clustering. From the comparison experiments shown above, CMSLEF performs better in both completeness and correctness intuitively. The quality metric shown in Table 3 verifies the better performance of CMSLEF. In this table, the position of a unit corresponds to the position in its belonged figure. For example, the white image mentioned previously in Fig. 13 lies on the fourth row of the results obtained by pixels based FCM. Thus in Table 3, its quality value, which is null, lies on the fourth row of the first column in the sub-table in Fig. 13.

From Table 3, except the red layer in Fig. 13, all the CMSLEF results achieve a higher quality. This means the CMSLEF perform better in preserving both completeness and correctness of the segmented layers. Meanwhile, in all of these five comparison experiments, the energy density difference threshold T is set as 15 and the fuzzy exponent m is set as 2. Therefore, the results are not sensitive to the parameters in the proposed method. In order to verify the robustness of parameter T, the quality evaluations of different results of Fig. 13 which achieved in various T are shown in Table 4. It can be seen that the quality almost stay the same in a large range of T (from 10 to 30). Moreover, the elementary unit in calculation of our method is linear element, which means the size of data set is much smaller than that of FCM based on pixels, which leads to a lower computation cost.

Table 4 Quality of segmented layers of Fig. 13 in different T

6 Conclusion

An algorithm named CMSLEF for color map segmentation is proposed in this paper. In our method, linear elements are regarded as the elementary units in segmentation for solving the problems of color deviation interference and the discontinuity of segmentation results in conventional segmentation methods. The experimental results show that the segmented layers can be obtained more accurately based on the proposed algorithm than that based on other methods. Meanwhile, CMSLEF is a robust and fast algorithm due to the insensitive parameters and small data set in calculation.