Next Article in Journal
Conv-ViT: A Convolution and Vision Transformer-Based Hybrid Feature Extraction Method for Retinal Disease Detection
Previous Article in Journal
VGG16 Feature Extractor with Extreme Gradient Boost Classifier for Pancreas Cancer Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Order Space-Based Morphology for Color Image Processing

Department of Media Design, Faculty of Design, Kyushu University, 4-9-1, Shiobaru, Minami-ku, Fukuoka 815-8540, Japan
*
Author to whom correspondence should be addressed.
J. Imaging 2023, 9(7), 139; https://doi.org/10.3390/jimaging9070139
Submission received: 27 April 2023 / Revised: 1 June 2023 / Accepted: 6 July 2023 / Published: 7 July 2023
(This article belongs to the Topic Color Image Processing: Models and Methods (CIP: MM))

Abstract

:
Mathematical morphology is a fundamental tool based on order statistics for image processing, such as noise reduction, image enhancement and feature extraction, and is well-established for binary and grayscale images, whose pixels can be sorted by their pixel values, i.e., each pixel has a single number. On the other hand, each pixel in a color image has three numbers corresponding to three color channels, e.g., red (R), green (G) and blue (B) channels in an RGB color image. Therefore, it is difficult to sort color pixels uniquely. In this paper, we propose a method for unifying the orders of pixels sorted in each color channel separately, where we consider that a pixel exists in a three-dimensional space called order space, and derive a single order by a monotonically nondecreasing function defined on the order space. We also fuzzify the proposed order space-based morphological operations, and demonstrate the effectiveness of the proposed method by comparing with a state-of-the-art method based on hypergraph theory. The proposed method treats three orders of pixels sorted in respective color channels equally. Therefore, the proposed method is consistent with the conventional morphological operations for binary and grayscale images.

1. Introduction

Mathematical morphology is a theory that originated in the 1960s for treating the shape of objects in images based on set theory and lattice theory. Mathematical morphology has a wide range of applications in digital image processing. At the present time, there are a large number of theoretical and practical studies on mathematical morphology, where the development of basic techniques for binary and grayscale images is almost complete. For a comprehensive introduction to morphological image analysis, one may refer to the book by Soille [1].
Unlike the case of binary or grayscale images, mathematical morphology for color images and higher-dimensional images is still under study because of the difficulty and uncertainty of ordering vector data, such as color vectors or pixels, in color images. That is, there is no canonical ordering of pixels in color images, and an arbitrary choice of order function that assigns an order to any pixel will provide good results for some problems or images and bad results for others.
Recently, a number of morphological techniques for color images have been presented to overcome the above difficulty. Sartor and Weeks  [2] proposed a method based on the ( C Y ) color space, which has the luminance coordinate (Y) and the chromatic coordinates ( R Y , B Y ) , where a generalized distance between a color and reference color is used for ordering color vectors. For computing the generalized distance, one requires a 3 × 3 covariance matrix. They also provided a brief introduction to lattice theory. Angulo also proposed a method to use a reference color for computing color distance, where the distance-based and lexicographical approaches are generalized in RGB, LSH and Lab color spaces [3]. d’Ornellas and Costa proposed an ordering relation for colors that is based on the natural ordering of spectra [4]. As a result, they derived a color-model-independent approach for color mathematical morphology. However, in compensation for the independency, their method requires reconstructing the fundamental spectrum from a conventional 3D color vector. Benavent et al. proposed a method based on the color histogram of a quantized color image [5], where the pixels are sorted on the basis of the frequency recorded in the histogram. In their method, the results may be affected by the number of quantized colors. Comer and Delp defined erosion and dilation for color morphology using marginal ordering, which uses only one component of a vector for ordering pixels, and reduced ordering, which uses a dimensionality reduction function for ordering three-dimensional pixel data [6]. Zhao also proposed a method for color morphology based on marginal ordering, where no new color artifacts are produced [7]. Van de Gronde and Roerdink pointed out that the false color problem lies in violating certain invariances, and demonstrated the effectiveness of hue-invariant and rotation-invariant methods [8]. Gimenez and Evans [9] analyzed the convex color sieve (CCS) by Gibson et al. [10] and the vector area morphology sieve (VAMS) by Evans [11] algorithmically and experimentally. Evans also described a chapter devoted to color area morphology scale spaces [12]. Burgeth et al. extended morphological maximum and minimum operations to tensor-valued settings by employing Loewner ordering for symmetric matrices [13]. Naegel and Passat extended the gray-level definition of component trees to multi-value images, and compared some strategies for color image processing based on component trees in the color image filtering and color document binarization fields [14]. Tushabe and Wilkinson proposed a color filtering method using max-tree representation, where a color image is converted into a grayscale image that is then subjected to the conventional filtering techniques, and demonstrated three restitution mechanisms that reconstruct the filtered image back into color: nearest color, nearest neighbor and mean of parent approaches [15]. Lezoray et al. proposed a method for the graph-based ordering of color vectors, and demonstrated the proposed mathematical morphology operations in RGB, IHSL [16], L * a * b * and CIECAM02 [17] color models [18]. Wang et al. proposed color morphological operators on a hypergraph to avoid the loss of details caused by fixed structuring elements [19]. The hypergraph-based method has two parameters for controlling spatial and color similarities between pixels.
In this paper, we propose a method for morphologically operating color images on the basis of an order space, which is a three-dimensional space with the axes of orders of pixels in three color channels. Specifically, we take the RGB (red, green and blue) color channels of RGB color images as a typical example, and sort the pixels in each channel separately. As a result, we obtain a triplet of orders for each pixel, which is then represented as a point in the order space. After that, we compute a single order from the obtained triplet of orders by a function from 3D to 1D, and then apply morphological operations based on the single order of pixels. In our experiments, we compere the proposed method with Wang’s hypergraph-based method [19], and demonstrate the performance of the proposed method in a noise-removal task. Moreover, we present the fuzzy version of the proposed order space-based method, which improves the performance further.
Since a color image is a stack of three grayscale images corresponding to three color channels, it would be consistent with the conventional morphological operation for binary and grayscale images to take into account the triplet of orders of pixels in the color version of the morphological operations. Therefore, the proposed order space-based method can be a plausible candidate for the extension of a grayscale morphology to a color one.
The rest of this paper is organized as follows: Section 2 briefly summarizes binary and grayscale morphological operations. Section 3 proposes the order space-based morphological operations for color images. Section 4 proposes an exponentially weighted averaging method for fuzzifying the order space-based method. Section 5 shows the experimental results obtained from a standard image dataset. Section 6 discusses the results obtained in Section 5. Finally, Section 7 concludes this paper.

2. Morphology for Binary and Grayscale Image Processing

In this section, we briefly summarize the basics of mathematical morphology for binary and grayscale images in preparation for the subsequent sections. In the following definitions of morphological operations, since binary images can be regarded as a special case of grayscale images, we focus on grayscale morphology [20].
Let G = [ g i j ] be a grayscale image, where g i j { 0 , 1 , , L 1 } for i = 1 , 2 , , m and j = 1 , 2 , , n denotes the pixel value at the ith row and jth column in G with m rows and n columns, where L 1 denotes the maximum pixel value, e.g., L = 256 = 2 8 for an 8-bit grayscale image. The grayscale pixel values g i j = 0 and g i j = L 1 denote black and white pixels, respectively. To perform a morphological operation on G, we need a structuring element S, which is a set of relative coordinates, e.g., a 3 × 3 ‘Cross’ (or ‘Rhombus’) structuring element S = { ( 1 , 0 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) } and a ‘Square’ one S = { ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) } , which are illustrated in Figure 1. We assume that all structuring elements used in this paper are point-symmetric, which is a reasonable assumption for isotropic image processing tasks and simplifies the definitions of morphological operations as follows. (In a formal description, dilation is defined as the Minkowski set addition by a given structuring element. On the other hand, erosion is defined as the Minkowski set subtraction by the reflection of the structuring element. With the symmetric structuring elements, we can skip the reflection step.)
The dilation of G by a symmetric structuring element S is defined as
D ( G , S ) = [ d i j ] , d i j = max ( k , l ) S g i + k , j + l ,
and the erosion of G by the same S is defined as
E ( G , S ) = [ e i j ] , e i j = min ( k , l ) S g i + k , j + l ,
where we note that if i + k { 1 , 2 , , m } or j + l { 1 , 2 , , n } , then the corresponding value g i + k , j + l is excluded from the candidates for output pixel.
The above dilation and erosion operations change the mean brightness of a given image. To compensate for such bias caused by dilation and erosion operations, they are often combined with each other as follows: the opening of G by S is defined as
O ( G , S ) = D ( E ( G , S ) , S ) ,
and the closing of G by S is defined as
C ( G , S ) = E ( D ( G , S ) , S ) ,
i.e., the opening operation is composed of an erosion followed by a dilation, and the closing operation is composed of a dilation followed by an erosion. The opening and closing operations are also combined with each other as follows: the open–closing of G by S is defined as
O C ( G , S ) = C ( O ( G , S ) , S ) ,
and the close–opening of G by S is defined as
C O ( G , S ) = O ( C ( G , S ) , S ) ,
i.e., the open–closing operation is composed of an opening followed by a closing, and the close–opening operation is composed of a closing followed by an opening (the definitions of the open–closing and close–opening operations are convertible into each other as mentioned by Schevenels and Sigmund [21]).
Here, we note that if L = 2 , then these definitions are reduced to those for binary images.

3. Order Space-Based Morphology for Color Image Processing

The above morphological operations for binary and grayscale images include the maximum and minimum selection, which is based on the assumption that the pixels in an image can be sorted in ascending or descending order of their pixel values. For a binary or grayscale image, it is easy to sort the pixels by their values. However, for a color image, it is not easy because each color pixel has three values, e.g., red, green and blue components, the orders of which may conflict with each other. Therefore, sorting each color component separately frequently causes undesirable colors.
In this section, we propose a method for morphologically processing color images in an appropriate manner, which can alleviate the drawback of the naive separable method.
Let F = [ f i j ] be an RGB color image, where f i j = [ f i j R , f i j G , f i j B ] for i = 1 , 2 , , m and j = 1 , 2 , , n denotes the RGB color vector at the position ( i , j ) in F, where f i j R , f i j G and f i j B denote the red (R), green (G) and blue (B) components of the pixel f i j , respectively. Then, we can sort the color components covered by a structuring element in ascending order of their values, e.g., f i + k ( a 1 R ) , j + l ( a 1 R ) R f i + k ( a 2 R ) , j + l ( a 2 R ) R f i + k ( a 5 R ) , j + l ( a 5 R ) R for the R component with a structuring element S with five pixels, as shown in Figure 1a, where a 1 R , a 2 R , , a 5 R denote the sorted indices of pixels covered by S, and k ( a 1 R ) and l ( a 1 R ) denote the vertical and horizontal relative coordinates of the pixel corresponding to a 1 R , respectively.
Let ξ = a η R (for η = 1 , 2 , , 5 ) be a function where a pixel index ξ is related to an order η given by the above sorting procedure. Then, we consider the inverse function of ξ = a η R as η = o ξ R = ( a R ) ξ 1 , where an order η is related to a pixel index ξ . That is, each pixel ξ has the corresponding order η . According to the order, we can arrange the five pixels on an axis as shown in Figure 2a, where each black point denotes a pixel ξ , which is placed at the position designated by the order η .
Similarly, we can sort the set of pixels in the ascending order of the G components to have the sorted indices a 1 G , a 2 G , , a 5 G satisfying f i + k ( a 1 G ) , j + l ( a 1 G ) G f i + k ( a 2 G ) , j + l ( a 2 G ) G f i + k ( a 5 G ) , j + l ( a 5 G ) G . We also consider the inverse function of ξ = a η G as η = o ξ G = ( a G ) ξ 1 . Then, we can plot the five pixels on a two-dimensional coordinate system with the axes o R and o G as shown in Figure 2b, where we note that no two pixels are aligned with one another vertically and horizontally.
By sorting the B components, we also have the sorted indices a 1 B , a 2 B , , a 5 B satisfying f i + k ( a 1 B ) , j + l ( a 1 B ) B f i + k ( a 2 B ) , j + l ( a 2 B ) B f i + k ( a 5 B ) , j + l ( a 5 B ) B , which are summarized as a function ξ = a η B for η = 1 , 2 , , 5 , the inverse function of which is given by η = o ξ B = ( a B ) ξ 1 . Then, we can plot each pixel on a three-dimensional coordinate system with the axes o R , o G and o B as shown in Figure 2c. We call the space determined by the above coordinate system order space. As a result, an RGB color pixel identified by an index ξ is mapped to a point on the order space as ( o ξ R , o ξ G , o ξ B ) . This is a natural consequence of the generalization of the basics of morphological operations for binary and grayscale images, since there are no advantages and disadvantages among the three color channels. Therefore, it is reasonable to construct morphological operations for color images on the basis of the 3D order space.
Algorithm 1 summarizes the procedure for mapping from an RGB color space to the order space. In Algorithm 1, line 3, the function ‘argsort’ sorts the arguments f 1 X , f 2 X , , f | S | X in ascending order as f a 1 X X f a 2 X X f a | S | X X , and returns their indices a 1 X , a 2 X , , a | S | X , where | S | denotes the number of elements of S. Each value of the coordinates in the order space is given at line 5.
Algorithm 1 Mapping from RGB color space to order space
Require: 
a set of pixels { f i + k , j + l = [ f i + k , j + l R , f i + k , j + l G , f i + k , j + l B ] | ( k , l ) S }
Ensure: 
a set of coordinates in order space { ( o ξ R , o ξ G , o ξ B ) | ξ { 1 , 2 , , | S | } }
 1:
Assign serial numbers ξ { 1 , 2 , , | S | } to all pixels in the required set to have a set of re-indexed pixels { f ξ = [ f ξ R , f ξ G , f ξ B ] | ξ { 1 , 2 , , | S | } } .
 2:
for  X { R , G , B }  do
 3:
     [ a 1 X , a 2 X , , a | S | X ] = argsort ( f 1 X , f 2 X , , f | S | X )
 4:
    for  ξ { 1 , 2 , , | S | }  do
 5:
         o a ξ X X = ξ
 6:
    end for
 7:
end for
 8:
Return { ( o ξ R , o ξ G , o ξ B ) | ξ { 1 , 2 , , | S | } }
In the 3D order space, an RGB color pixel with an index ξ is represented by a triplet ( o ξ R , o ξ G , o ξ B ) . To define dilation and erosion for an RGB color image, we need to reduce the triplet ( o ξ R , o ξ G , o ξ B ) to a singlet o ξ . If we have o ξ R o ξ R , o ξ G o ξ G and o ξ B o ξ B for two pixels ξ and ξ , then we can assign an order satisfying o ξ o ξ . For example, the following equations for obtaining a singlet o ξ from the triplet ( o ξ R , o ξ G , o ξ B ) satisfy this condition:
o ξ S = o ξ R + o ξ G + o ξ B ,
o ξ P = o ξ R o ξ G o ξ B ,
o ξ M = med o ξ R , o ξ G , o ξ B ,
where ‘med’ means to select the median value from a given set of elements. We chose these equations here for their simplicity and easy implementation. Other choices may include weighted average, mode and nonlinear transformations of the order triplet. For example, let us consider three pixels in 3D order space: a = ( 1 , 2 , 3 ) , b = ( 3 , 1 , 2 ) and c = ( 2 , 3 , 1 ) . Then, the above three Equations (7)–(9) give the same orders o S = 1 + 2 + 3 = 6 , o P = 1 × 2 × 3 = 6 and o M = med { 1 , 2 , 3 } = 2 for a , b and c. To assign different orders to different points in 3D order space, we need more sophisticated equations than the above.
Figure 3 shows the contour lines of o ξ S , o ξ P and o ξ M in their order spaces, where the top, middle and bottom rows correspond to o ξ S , o ξ P and o ξ M , respectively. In each row, the five figures from left to right show cross sections for o B = 1 , 2 , , 5 . In each figure, the horizontal and vertical axes denote o R and o G . For example, in Figure 3a, feasible orders are denoted by color points, and contour lines for fixed values of o S = 6 , 7 , , 10 are denoted by color lines with the corresponding colors. For fixed o S and o B , we have a straight line o G = ( o S o B ) o R with slope 1 . On the other hand, in the middle row of Figure 3, for fixed o P and o B , we have a hyperbola o G = ( o P / o B ) / o R . In the bottom row of Figure 3, we have no analytical expressions for the contour lines. However, we can draw them as shown in this figure. It is interesting that there are contour ‘areas’ as shown in Figure 3l–n with light blue, light orange and light green colors.
Once a function from ( o ξ R , o ξ G , o ξ B ) to o ξ is given like in (7)–(9), we can define the dilation and erosion of F by S as follows:
D ( F , S ) = [ d i j ] , d i j = f ξ max , ξ max = arg max ξ { 1 , 2 , , | S | } o ξ ,
E ( F , S ) = [ e i j ] , e i j = f ξ min , ξ min = arg min ξ { 1 , 2 , , | S | } o ξ .
Next, we combine the above dilation and erosion operations for defining opening and closing operations as follows:
O ( F , S ) = D ( E ( F , S ) , S ) ,
C ( F , S ) = E ( D ( F , S ) , S ) .
Here, we define an image Z = [ z ξ ] whose pixel value z ξ denotes the order o ξ of the corresponding pixel of F. Then, the above morphological operations correspond to the grayscale morphological operations applied to Z. Therefore, idempotence, increasingness and (anti-)extensiveness hold for the application of morphological opening and closing operations to Z as well as the conventional opening and closing operations.
Combining the above opening and closing operations, we can define open–closing and close–opening operations as follows:
O C ( F , S ) = C ( O ( F , S ) , S ) ,
C O ( F , S ) = O ( C ( F , S ) , S ) ,
which are consistent with the definitions of the corresponding operations for binary and grayscale images summarized in the previous section.
We applied the proposed order space-based morphological operations to a color image in Figure 4, and obtained the images in Figure 5, where the top, middle and bottom rows were obtained with o S , o P and o M in (7)–(9), and the six columns from left to right show the results of dilation, erosion, opening, closing, open–closing and close–opening operations, respectively. We observe that the three kinds of ordering, o S , o P and o M , give similar output images to each other.

4. Fuzzy Morphological Operations by Exponentially Weighted Averaging

In this section, we extend the above order space-based morphological operations, which are crisp operations, to fuzzy ones by introducing an exponentially weighted averaging method.
Assume that an order o ξ for ξ { 1 , 2 , , | S | } is obtained from a set of triplets { ( o ξ R , o ξ G , o ξ B ) } . Then, we define a fuzzy dilation by introducing an exponentially weighted averaging to (10) as follows:
D FUZ ( F , S , α ) = d i j FUZ , d i j FUZ = ξ = 1 | S | exp α o ξ f ξ ξ = 1 | S | exp α o ξ ,
where exp denotes the exponential function defined by exp ( x ) = e x , where e is a constant called Euler’s number and α is a positive constant for controlling the fuzziness. Here, we note that the second equation in (16) includes the softmax function [23], which is the gradient of the log-sum-exp function [24]. Therefore, the equation can be rewritten as
d i j FUZ = arg min d ξ = 1 | S | o ξ log ν = 1 | S | exp ( α o ν ) f ξ d 2 ,
which explicitly describes the relationship between the exponentially weighted averaging and the log-sum-exp function, where / o ξ denotes a partial derivative with respect to o ξ and · denotes the Euclidean norm. This expression accepts vectors f ξ and d of any dimension. Therefore, we can fuzzify morphological operations for not only color images but also binary and grayscale images by the proposed method.
Similarly, we can define a fuzzy erosion as follows:
E FUZ ( F , S , α ) = e i j FUZ , e i j FUZ = ξ = 1 | S | exp α o ξ f ξ ξ = 1 | S | exp α o ξ .
Combining these operations, we have fuzzy opening and closing operations as follows:
O FUZ ( F , S , α ) = D FUZ E FUZ F , S , α , S , α ,
C FUZ ( F , S , α ) = E FUZ D FUZ F , S , α , S , α .
From these, we further define fuzzy open–closing and close–opening operations as follows:
O C FUZ ( F , S , α ) = C FUZ O FUZ F , S , α , S , α ,
C O FUZ ( F , S , α ) = O FUZ C FUZ F , S , α , S , α .
The value of α is empirically determined in the following section.

5. Experimental Results

In this section, we show the experimental results of noise removal from color images by the proposed order space-based morphological operations, which are compared with the state-of-the-art method of Wang et al. [19]. Figure 6 shows a noisy input image including 10% impulse noise.
Figure 7 shows the output images by Wang’s hypergraph-based method [19] and the proposed method with ‘Cross’ and ‘Square’ structuring elements in Figure 1a and Figure 1b, respectively, where the order o S in (7) is used. Wang’s method has two parameters, μ and β , which are set as μ = 250 and β = 1 by adjusting for this noise removal task through preliminary experiments. The top row in this figure shows the results of Wang’s method with a structural hypergraph denoted by ‘HG’ as an alternative to structuring elements for the dilation, erosion, opening, closing, open–closing and close–opening operations, the output images of which are arranged from left to right in columns, where we observe that the dilation Figure 7a and erosion Figure 7b tend to enlarge impulse noise, but the following operations Figure 7c–f can suppress the noise effectively. The middle and bottom rows in Figure 7 show the results of the proposed method with ‘Cross’ and ‘Square’ structuring elements shown in Figure 1a and Figure 1b, respectively. The 3 × 3 ‘Square’ structuring element corresponds to the structuring hypergraph with β = 1 in Wang’s method in terms of size.
Table 1 shows the values of the peak signal-to-noise ratio (PSNR) [25] between the output images in Figure 7 and the original noise-free image in Figure 4, where Wang’s method with the ‘HG’ structuring element achieves the highest PSNR 21.59 dB by the close–opening operation. On the other hand, the proposed method with ‘Cross’ and ‘Square’ structuring elements achieves 25.14 and 25.83 dB by open–closing and close–opening, respectively.
Figure 8 shows the noise removal results on the SIDBA image dataset [22], where the top row lists all 12 original color images, which are corrupted by impulse noise as shown in the second row, where the noise density increases from the left to right columns. We adopted open–closing and close–opening operations for removing the noise on the basis of the observation in Table 1, where those operations achieved higher PSNR values than the other morphological operations. In this figure, we compared the proposed method based on the ordering o S , o P and o M in (7)–(9), computed with the 3 × 3 ‘Square’ structuring element in Figure 1b with Wang’s method using the parameters μ = 250 and β = 1 .
The performance of noise removal is evaluated by the mean PSNR among the 12 different images as summarized in Figure 9, where Figure 9a,b show the results of open–closing and close–opening, respectively. In each graph, the vertical and horizontal axes denote the mean PSNR among the 12 images and the density of impulse noise varying from 10% to 60%, respectively, and the line colors, blue, orange, green and red correspond to Wang’s method and the proposed methods with o S , o P and o M , respectively. In both graphs, Wang’s method (blue line) obtains higher values of mean PSNR than the proposed methods with o P and o M (green and red lines), and the proposed method with o S (orange line) outperforms Wang’s method.
We also compared the performance of grayscale and color morphological operations as illustrated in Figure 10, where a color original image (top left box) is corrupted by Gaussian or impulse noise to produce a noisy image (top right box). Both images are converted to grayscale images through the outside clockwise and counterclockwise routes. Then, the standard method for grayscale images is applied to those grayscale images (bottom leftmost and rightmost boxes). On the other hand, color original and noisy images pass through inner routes, where Wang’s and our methods for color images are applied to them. Then, the resultant images are converted to grayscale images (bottom middle two boxes). Finally, we compute PSNR or the structural similarity index measure (SSIM) [26] for the resultant grayscale images processed by the same method. Figure 11 shows the results of Gaussian noise removal with the SIDBA dataset [22], where the vertical axes denote Figure 11a PSNR and Figure 11b SSIM, and the horizontal axes denote the compared methods. In this figure, the grayscale operation achieved the highest PSNR and SSIM values, and the proposed method outperformed Wang’s method.
On the other hand, Figure 12 shows the results of impulse noise removal, where the settings of axes are the same as Figure 11. In Figure 12a, the proposed method achieved the highest PSNR value, while in Figure 12b, the grayscale operation achieved the highest SSIM value. The reason why the grayscale operation achieves higher values than color ones is speculated to be that the conversion from color to gray has a noise-reduction effect. This speculation is investigated in Table 2, where color noisy images are compared with grayscale noisy images by PSNR and SSIM for Gaussian and impulse noises. The values of the image quality measure for R, G and B components are improved by grayscale conversion for all combinations of noises and measures. This result shows that the grayscale conversion has a noise-reduction effect.
In terms of the color morphological operations in this experiment, the proposed method achieved better PSNR and SSIM values than Wang’s method.
For impulse noise removal, it is well known that simple marginal processing based on marginal ordering works well, although it can generate false colors. Thus, we compared the proposed method with the marginal open–closing and Max-tree-based area open–closing proposed by Tushabe and Wilkinson [15], where we adopted an area threshold of T = 150 and a nearest color (NC) approach for image restoration as recommended in their paper. Figure 13 shows the results of noise removal, where 12 color images in the SIDBA dataset [22] were corrupted by 50% impulse noise, and we applied the three open–closing operations to those noisy images. The performance of noise removal was evaluated with PSNR and SSIM, which are shown in Figure 13a and Figure 13b, respectively. In Figure 13a, the proposed method achieved the highest PSNR value among the three methods. On the other hand, in Figure 13b, the simple marginal method achieved the highest SSIM value, which matches the above knowledge that the marginal method removes impulse noise well.
Figure 14 shows the output images computed by the three methods, where the image in Figure 14a given by the simple marginal open–closing operation appears to be the best among three output images. However, the image in Figure 14a includes new colors that do not exist in the input image. This violates a desirable property that color morphological operations should have, i.e., no new colors should be introduced [27].
Next, we show the experimental results for the fuzzy morphological operations described in Section 4. Here, we would like to determine the value of α in the fuzzy operations with the open–closing operation, which outperforms the close–opening operation as shown in Figure 9; that is, the orange line in Figure 9a exceeds that in Figure 9b. Figure 15 shows the PSNR values for different values of α varying from 0.1 to 1.0, where we applied the fuzzy open–closing in (21) to the noisy image in Figure 6. We observe that α = 0.5 achieves the highest PSNR value, and use α = 0.5 below.
Figure 16 shows the results of the proposed fuzzy morphological operations defined in (16)–(22). A visual comparison between Figure 16 and Figure 7 demonstrates the effectiveness of the proposed fuzzification, and Figure 17 shows the effectiveness quantitatively by comparing the mean PSNR values computed with the SIDBA dataset [22] between crisp and fuzzy operations, where the vertical and horizontal axes denote the mean PSNR and noise density as well as the settings from Figure 9, and Figure 17a,b which show the results of open–closing and close–opening operations, respectively. For both operations, the fuzzy ones denoted by purple lines outperform the crisp ones denoted by orange lines.

6. Discussion

In the above experimental results, we demonstrated the effectiveness of the proposed order space-based morphological operations, which are compared with Wang’s method based on hypergraph theory [19]. Generally, color images have three color channels, e.g., red, green and blue channels for RGB color images, and we can sort the pixel values in each channel separately. Therefore, it would be appropriate to consider three orders derived from the three channels in morphological operations for color images. The proposed method is a method by which the obtained three orders, which form a 3D order space, can be unified into a single order of pixels in a suitable manner for a given application. In this paper, we presented three ways of unifying three orders corresponding to three color channels into a single order, i.e., o S , o P and o M defined in (7), (8) and (9), respectively. In the application of morphological operations to noise removal demonstrated in Section 5, Wang’s method [19] achieved better performance than the proposed method with o P and o M , but the remaining option o S outperformed Wang’s method, which shows the potential of the proposed order space-based method. The ways of unifying three orders are not restricted to the three methods presented in this paper. Investigating better ways to unify plural orders into one will be a promising future research direction.
We also extended the proposed order space-based morphological operations to their fuzzy version, where we proposed a method for fuzzifying morphological operations by exponentially weighted averaging. Conventional morphological operations for binary and grayscale images include maximum and minimum selection. The max function for selecting the maximum value from a set of scalar values can be approximated by the log-sum-exp function [24], which has a relationship with fuzzy techniques [28]. However, it is difficult to use the log-sum-exp function directly for fuzzifying morphological operations for color images because of the dimensional discrepancy between scalar and vector data. On the other hand, the proposed exponentially weighted averaging method can be used for both scalar and vector data. Therefore, we can also fuzzify conventional morphological operations for binary and grayscale images by the proposed method. In the above experiments, we demonstrated the effectiveness of the fuzzification of the order space-based morphological operations in the noise-removal application. The applicability of the proposed fuzzification method to any dimensional data will expand its application areas into the area of multidimensional data processing.

7. Conclusions

In this paper, we proposed a method for applying morphological operations to color images. The proposed method is based on a three-dimensional (3D) order space, which has three coordinate axes corresponding to the orders of pixels in three color channels, e.g., R (red), G (green) and B (blue) color channels for RGB color images. That is, a color pixel is represented by a point on the 3D space specified by the set of orders of pixels sorted in R, G and B color channels, separately. Then, the triplet was shrunk to a single order by an appropriate function, e.g., sum, product and median functions were investigated in this paper. We conducted experiments on noise removal with a standard image dataset, and demonstrated that the sum function achieved the best performance among the three functions and a state-of-the-art method based on hypergraph theory by Wang et al. [19]. We can consider other options for the shrinkage functions and the structuring elements in morphological operations that may further improve the performance.
We also proposed an exponentially weighted averaging method for fuzzifying the order space-based morphological operations. As a result, the noise removal performance was further improved by the fuzzification for both open–closing and close–opening operations, both of which achieved better performance than dilation, erosion, opening and closing operations in a conventional crisp situation.
Our future work will include the extension of the proposed method for color image processing to multidimensional data processing, which will also be fuzzified by the proposed exponentially weighted averaging method to improve the performance.

Author Contributions

Conceptualization, K.I.; methodology, S.S., Y.H. and K.I.; software, S.S., Y.H. and K.I.; validation, K.I. and K.H.; formal analysis, K.I.; investigation, S.S., Y.H. and K.I.; resources, K.I. and K.H.; data curation, K.I.; writing—original draft preparation, S.S., Y.H. and K.I.; writing—review and editing, S.S., Y.H. and K.I.; visualization, S.S., Y.H. and K.I.; supervision, K.H.; project administration, K.I.; funding acquisition, K.I. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by JSPS KAKENHI, Grant Number JP21K11964.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

The following abbreviations are used in this manuscript:
RGBRed, green and blue
PSNRPeak signal-to-noise ratio
SSIMStructural similarity index measure
SIDBAStandard Image DataBAse
SEStructuring element

References

  1. Soille, P. Morphological Image Analysis; Springer: Berlin/Heidelberg, Germany, 1999. [Google Scholar] [CrossRef]
  2. Sartor, L.J.; Weeks, A.R. Morphological operations on color images. J. Electron. Imaging 2001, 10, 548–559. [Google Scholar] [CrossRef]
  3. Angulo, J. Morphological colour operators in totally ordered lattices based on distances: Application to image filtering, enhancement and analysis. Comput. Vis. Image Underst. 2007, 107, 56–73. [Google Scholar] [CrossRef]
  4. d’Ornellas, M.C.; da Costa, J.A.T.B. Color Mathematical Morphology Based on Partial Ordering of Spectra. In Proceedings of the XX Brazilian Symposium on Computer Graphics and Image Processing (SIBGRAPI 2007), Minas Gerais, Brazil, 7–10 October 2007; pp. 37–44. [Google Scholar] [CrossRef]
  5. Benavent, X.; Dura, E.; Vegara, F.; Domingo, J. Mathematical Morphology for Color Images: An Image-Dependent Approach. Math. Probl. Eng. 2012, 2012, 678326. [Google Scholar] [CrossRef] [Green Version]
  6. Comer, M.L.; Delp, E.J., III. Empirical study of morphological operators in color image enhancement. Image Process. Algorithms Tech. III 1992, 1657, 314–325. [Google Scholar] [CrossRef]
  7. Zhao, C. A new vectorial ordering for color morphology based on marginal ordering. In Proceedings of the 5th International Conference on Computer Science & Education, Hefei, China, 24–27 August 2010; pp. 1769–1772. [Google Scholar] [CrossRef]
  8. van de Gronde, J.J.; Roerdink, J.B.T.M. Group-Invariant Frames for Colour Morphology. In International Symposium on Mathematical Morphology and Its Applications to Signal and Image Processing; Lecture Notes in Computer Science; Hendriks, C.L.L., Borgefors, G., Strand, R., Eds.; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7883. [Google Scholar] [CrossRef]
  9. Gimenez, D.; Evans, A.N. An evaluation of area morphology scale-spaces for colour images. Comput. Vis. Image Underst. 2008, 110, 32–42. [Google Scholar] [CrossRef]
  10. Gibson, S.; Harvey, R.W.; Finlayson, G.D. Convex Colour Sieves. In Scale Space Methods in Computer Vision; Lecture Notes in Computer Science; Griffin, L.D., Lillholm, M., Eds.; Springer: Berlin/Heidelberg, Germany, 2003; Volume 2695, pp. 550–563. [Google Scholar] [CrossRef]
  11. Evans, A.N. Vector area morphology for motion field smoothing and interpretation. IEEE Proc.-Vis. Image Signal Process. 2003, 150, 219–226. [Google Scholar] [CrossRef]
  12. Evans, A.N. Chapter 2—Color Area Morphology Scale-Spaces. In Advances in Imaging and Electron Physics; Elsevier: Amsterdam, The Netherlands, 2010; Volume 160, pp. 35–74. [Google Scholar] [CrossRef] [Green Version]
  13. Burgeth, B.; Papenberg, N.; Bruhn, A.; Welk, M.; Feddern, C.; Weickert, J. Morphology for Higher-Dimensional Tensor Data Via Loewner Ordering. In Mathematical Morphology: 40 Years On, Proceedings of the 7th International Symposium on Mathematical Morphology, Paris, France, 18–20 April 2005; Ronse, C., Najman, L., Decencière, E., Eds.; Springer: Dordrecht, The Netherlands, 2005. [Google Scholar] [CrossRef] [Green Version]
  14. Naegel, B.; Passat, N. Component-Trees and Multi-value Images: A Comparative Study. In Mathematical Morphology and Its Application to Signal and Image Processing; Lecture Notes in Computer Science; Wilkinson, M.H.F., Roerdink, J.B.T.M., Eds.; Springer: Berlin/Heidelberg, Germany, 2009; Volume 5720. [Google Scholar] [CrossRef] [Green Version]
  15. Tushabe, F.; Wilkinson, M.H.F. Color processing using max-trees: A comparison on image compression. In Proceedings of the 2012 International Conference on Systems and Informatics (ICSAI2012), Yantai, China, 19–20 May 2012; pp. 1374–1380. [Google Scholar] [CrossRef] [Green Version]
  16. Angulo, J. Unified morphological color processing framework in a lum/sat/hue representation. In Mathematical Morphology: 40 Years On, Proceedings of the 7th International Symposium on Mathematical Morphology, Paris, France, 18–20 April 2005; Springer: Dordrecht, The Netherlands, 2005; pp. 387–396. [Google Scholar]
  17. Moroney, N.; Fairchild, M.; Hunt, R.; Li, C.; Luo, M.; Newman, T. The CIECAM02 color appearance model. In Proceedings of the IS&T/SID 10th Color Imaging Conference, Scottsdale, AZ, USA, 12–15 November 2002. [Google Scholar]
  18. Lezoray, O.; Elmoataz, A.; Meurie, C. Mathematical Morphology in Any Color Space. In Proceedings of the 14th International Conference of Image Analysis and Processing—Workshops (ICIAPW 2007), Modena, Italy, 10–13 September 2007; pp. 183–187. [Google Scholar] [CrossRef] [Green Version]
  19. Wang, J.; Liang, G.; Wu, Y.; Li, Y.; Hu, J. New colour morphological operators on hypergraph. IET Image Process. 2018, 12, 690–695. [Google Scholar] [CrossRef]
  20. Sternberg, S.R. Grayscale morphology. Comput. Vis. Graph. Image Process. 1986, 35, 333–355. [Google Scholar] [CrossRef]
  21. Schevenels, M.; Sigmund, O. On the implementation and effectiveness of morphological close-open and open-close filters for topology optimization. Struct. Multidisc. Optim. 2016, 54, 15–21. [Google Scholar] [CrossRef] [Green Version]
  22. Sakauchi, M.; Ohsawa, Y.; Sone, M.; Onoe, M. Management of the Standard Image Database for Image Processing Researches (SIDBA). ITEJ Tech. Rep. 1984, 8, 7–12. (In Japanese) [Google Scholar]
  23. Goodfellow, I.; Bengio, Y.; Courville, A. Deep Learning; MIT Press: Cambridge, MA, USA, 2016; pp. 180–184. Available online: https://www.deeplearningbook.org/ (accessed on 5 July 2023).
  24. Boyd, S.; Vandenberghe, L. Convex Optimization; Cambridge University Press: Cambridge, MA, USA, 2004. [Google Scholar]
  25. Martini, M.G. On the relationship between SSIM and PSNR for DCT-based compressed images and video: SSIM as content-aware PSNR. TechRxiv 2022. [Google Scholar] [CrossRef]
  26. Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Process. 2004, 13, 600–612. [Google Scholar] [CrossRef] [Green Version]
  27. Köppen, M.; Nowack, C.; Rösel, G. Pareto-Morphology for Color Image Processing: A Comparative Study of Multivariate Morphologies. Pattern Recognit. Image Anal. 2000, 10, 478–491. [Google Scholar]
  28. Inoue, K.; Hara, K. An equivalence between log-sum-exp approximation and entropy regularization in K-means clustering. Nonlinear Theory Its Appl. IEICE 2020, 11, 454–465. [Google Scholar] [CrossRef]
Figure 1. The 3 × 3 structuring elements: (a) The 3 × 3 ‘Cross’ structuring element is defined by a set of relative coordinates as S = { ( 1 , 0 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) } . (b) The 3 × 3 ‘Square’ structuring element is defined by a set of relative coordinates as S = { ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) } .
Figure 1. The 3 × 3 structuring elements: (a) The 3 × 3 ‘Cross’ structuring element is defined by a set of relative coordinates as S = { ( 1 , 0 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) } . (b) The 3 × 3 ‘Square’ structuring element is defined by a set of relative coordinates as S = { ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) , ( 0 , 1 ) , ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) } .
Jimaging 09 00139 g001
Figure 2. Illustrations of 1D, 2D and 3D order spaces for RGB color images: (a) Five pixels are arranged in a line (or a one-dimensional order space) according to the ascending order of their R components. For binary and grayscale images, we can consider the similar 1D order space. (b) If we take into account R and G components simultaneously, then we have a two-dimensional order space onto which five pixels are located according to their orders. (c) If we take into account R, G and B components simultaneously, then we have a three-dimensional order space onto which five pixels are located according to their orders.
Figure 2. Illustrations of 1D, 2D and 3D order spaces for RGB color images: (a) Five pixels are arranged in a line (or a one-dimensional order space) according to the ascending order of their R components. For binary and grayscale images, we can consider the similar 1D order space. (b) If we take into account R and G components simultaneously, then we have a two-dimensional order space onto which five pixels are located according to their orders. (c) If we take into account R, G and B components simultaneously, then we have a three-dimensional order space onto which five pixels are located according to their orders.
Jimaging 09 00139 g002
Figure 3. Contour lines in three order spaces corresponding to (7)–(9): (ae) o ξ S given by (7) with fixed o B = 1 , 2 , , 5 , respectively. (fj) o ξ P given by (8) with fixed o B = 1 , 2 , , 5 , respectively. (ko) o ξ M given by (9) with fixed o B = 1 , 2 , , 5 , respectively. In (ln), the contour lines for o M = 2 , 3 and 4 are spread over the plane o B = 2 , 3 and 4 as illustrated by light blue, light orange and light green areas, respectively.
Figure 3. Contour lines in three order spaces corresponding to (7)–(9): (ae) o ξ S given by (7) with fixed o B = 1 , 2 , , 5 , respectively. (fj) o ξ P given by (8) with fixed o B = 1 , 2 , , 5 , respectively. (ko) o ξ M given by (9) with fixed o B = 1 , 2 , , 5 , respectively. In (ln), the contour lines for o M = 2 , 3 and 4 are spread over the plane o B = 2 , 3 and 4 as illustrated by light blue, light orange and light green areas, respectively.
Jimaging 09 00139 g003
Figure 4. Original color image selected from SIDBA [22].
Figure 4. Original color image selected from SIDBA [22].
Jimaging 09 00139 g004
Figure 5. Order space-based morphological operations for a color image in Figure 4: The top, middle and bottom rows show the results with (7)–(9), respectively. The six columns from left to right show the results of dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.) operations, respectively.
Figure 5. Order space-based morphological operations for a color image in Figure 4: The top, middle and bottom rows show the results with (7)–(9), respectively. The six columns from left to right show the results of dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.) operations, respectively.
Jimaging 09 00139 g005
Figure 6. Noisy input image including 10% impulse noise, where 6553 out of 256 × 256 = 65,536 pixels are corrupted with impulse noise.
Figure 6. Noisy input image including 10% impulse noise, where 6553 out of 256 × 256 = 65,536 pixels are corrupted with impulse noise.
Jimaging 09 00139 g006
Figure 7. Noise removal results using Wang’s method (top row) and the proposed order space-based morphological operations (middle and bottom rows) with o S in (7) for a noisy image in Figure 6, where their subcaptions denote the ‘operation/structuring element’ used for computing respective images: The top row shows the results of Wang’s method, where ‘HG’ indicates that the structuring elements are given by hypergraphs. The middle and bottom rows show the results of the proposed method with ‘Cross’ and ‘Square’ structuring elements shown in Figure 1. The six columns from left to right show the results of dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.) operations, respectively.
Figure 7. Noise removal results using Wang’s method (top row) and the proposed order space-based morphological operations (middle and bottom rows) with o S in (7) for a noisy image in Figure 6, where their subcaptions denote the ‘operation/structuring element’ used for computing respective images: The top row shows the results of Wang’s method, where ‘HG’ indicates that the structuring elements are given by hypergraphs. The middle and bottom rows show the results of the proposed method with ‘Cross’ and ‘Square’ structuring elements shown in Figure 1. The six columns from left to right show the results of dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.) operations, respectively.
Jimaging 09 00139 g007
Figure 8. Noise removal results for 12 color images in the SIDBA dataset [22]: The original images in the top row receive impulse noise with densities varying from 10% (the leftmost two columns) to 60% (the rightmost two columns), as shown in the second row. The third and subsequent rows show the corresponding output images from the open–closing and close–opening operations in Wang’s method and the proposed method with o S , o P and o M in (7)–(9), respectively.
Figure 8. Noise removal results for 12 color images in the SIDBA dataset [22]: The original images in the top row receive impulse noise with densities varying from 10% (the leftmost two columns) to 60% (the rightmost two columns), as shown in the second row. The third and subsequent rows show the corresponding output images from the open–closing and close–opening operations in Wang’s method and the proposed method with o S , o P and o M in (7)–(9), respectively.
Jimaging 09 00139 g008
Figure 9. Mean PSNR vs. noise density on SIDBA dataset [22]: (a) Open–closing operations of Wang’s and the proposed methods are compared with each other, where the proposed method with o S (orange line) outperforms Wang’s method (blue line). (b) Similarly, close–opening operations are compared, where the proposed method with o S (orange line) also outperforms Wang’s method (blue line).
Figure 9. Mean PSNR vs. noise density on SIDBA dataset [22]: (a) Open–closing operations of Wang’s and the proposed methods are compared with each other, where the proposed method with o S (orange line) outperforms Wang’s method (blue line). (b) Similarly, close–opening operations are compared, where the proposed method with o S (orange line) also outperforms Wang’s method (blue line).
Jimaging 09 00139 g009
Figure 10. Comparison of grayscale and color morphological operations with Gaussian and impulse noises. In this flow chart, grayscale conversions are followed by grayscale morphological operations (outer routes), and color morphological operations are followed by grayscale conversions (inner routes). Finally, the corresponding grayscale images are compared by computing PSNR or SSIM.
Figure 10. Comparison of grayscale and color morphological operations with Gaussian and impulse noises. In this flow chart, grayscale conversions are followed by grayscale morphological operations (outer routes), and color morphological operations are followed by grayscale conversions (inner routes). Finally, the corresponding grayscale images are compared by computing PSNR or SSIM.
Jimaging 09 00139 g010
Figure 11. Results of Gaussian noise removal, where Gaussian noise with mean 0 and standard deviation 30 are added to the original images in Figure 8: (a) PSNR values are compared for grayscale, Wang’s and our open–closing operations. (b) SSIM values are compared for grayscale, Wang’s and our open–closing operations.
Figure 11. Results of Gaussian noise removal, where Gaussian noise with mean 0 and standard deviation 30 are added to the original images in Figure 8: (a) PSNR values are compared for grayscale, Wang’s and our open–closing operations. (b) SSIM values are compared for grayscale, Wang’s and our open–closing operations.
Jimaging 09 00139 g011
Figure 12. Results of impulse noise removal, where 50% impulse noise is added to the original images in Figure 8: (a) PSNR values are compared for grayscale, Wang’s and our open–closing operations. (b) SSIM values are compared for grayscale, Wang’s and our open–closing operations.
Figure 12. Results of impulse noise removal, where 50% impulse noise is added to the original images in Figure 8: (a) PSNR values are compared for grayscale, Wang’s and our open–closing operations. (b) SSIM values are compared for grayscale, Wang’s and our open–closing operations.
Jimaging 09 00139 g012
Figure 13. Comparison of marginal open–closing, Max-tree-based area open–closing and the proposed order space-based open–closing for impulse noise removal: (a) PSNR values are compared for marginal, Max-tree-based area and the proposed open–closing operations. (b) SSIM values are compared for marginal, Max-tree-based area and the proposed open–closing operations.
Figure 13. Comparison of marginal open–closing, Max-tree-based area open–closing and the proposed order space-based open–closing for impulse noise removal: (a) PSNR values are compared for marginal, Max-tree-based area and the proposed open–closing operations. (b) SSIM values are compared for marginal, Max-tree-based area and the proposed open–closing operations.
Jimaging 09 00139 g013
Figure 14. Output images obtained by (a) marginal open–closing, (b) Max-tree-based area open–closing and (c) the proposed order space-based open–closing.
Figure 14. Output images obtained by (a) marginal open–closing, (b) Max-tree-based area open–closing and (c) the proposed order space-based open–closing.
Jimaging 09 00139 g014
Figure 15. PSNR vs. α for controlling the fuzziness of the proposed fuzzy morphological operations. This figure shows that α = 0.5 gives the highest PSNR value in the proposed fuzzy open–closing operation applied to the noisy image in Figure 6.
Figure 15. PSNR vs. α for controlling the fuzziness of the proposed fuzzy morphological operations. This figure shows that α = 0.5 gives the highest PSNR value in the proposed fuzzy open–closing operation applied to the noisy image in Figure 6.
Jimaging 09 00139 g015
Figure 16. Noise removal results by fuzzy morphological operations with α = 0.5 applied to the noisy image in Figure 6. The order of the output images (af) by six morphological operations, dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.), is the same as that of Figure 7.
Figure 16. Noise removal results by fuzzy morphological operations with α = 0.5 applied to the noisy image in Figure 6. The order of the output images (af) by six morphological operations, dilation (Dilat.), erosion (Eros.), opening (Open.), closing (Clos.), open–closing (O.-c.) and close–opening (C.-o.), is the same as that of Figure 7.
Jimaging 09 00139 g016
Figure 17. Comparison of mean PSNR between crisp and fuzzy morphological operations: (a) Crisp (orange line) and fuzzy (purple line) open–closing operations are compared, where the former is the same as the orange line in Figure 9a. (b) Similarly, crisp (orange line) and fuzzy (purple line) close–opening operations are compared, where the former is the same as the orange line in Figure 9b.
Figure 17. Comparison of mean PSNR between crisp and fuzzy morphological operations: (a) Crisp (orange line) and fuzzy (purple line) open–closing operations are compared, where the former is the same as the orange line in Figure 9a. (b) Similarly, crisp (orange line) and fuzzy (purple line) close–opening operations are compared, where the former is the same as the orange line in Figure 9b.
Jimaging 09 00139 g017
Table 1. PSNR for output images in Figure 7 with ‘HG’, ‘Cross’ and ‘Square’ structuring elements (SEs). In each row, the highest value is boldfaced.
Table 1. PSNR for output images in Figure 7 with ‘HG’, ‘Cross’ and ‘Square’ structuring elements (SEs). In each row, the highest value is boldfaced.
SEDilationErosionOpeningClosingOpen-ClosingClose-Opening
‘HG’ [19]15.3116.2220.1120.5220.8821.59
‘Cross’18.8218.8022.9623.1125.1425.13
‘Square’17.7917.7323.6723.9725.7425.83
Table 2. Comparison of the quality of noisy images used in Figure 10 between color and gray. In each row, the highest value is boldfaced.
Table 2. Comparison of the quality of noisy images used in Figure 10 between color and gray. In each row, the highest value is boldfaced.
NoiseQuality MeasureRGBGray
GaussianPSNR18.9019.0619.0322.71
GaussianSSIM0.3060.3500.3150.417
ImpulsePSNR12.1611.9412.0116.63
ImpulseSSIM0.1180.1440.1220.183
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Sun, S.; Huang, Y.; Inoue, K.; Hara, K. Order Space-Based Morphology for Color Image Processing. J. Imaging 2023, 9, 139. https://doi.org/10.3390/jimaging9070139

AMA Style

Sun S, Huang Y, Inoue K, Hara K. Order Space-Based Morphology for Color Image Processing. Journal of Imaging. 2023; 9(7):139. https://doi.org/10.3390/jimaging9070139

Chicago/Turabian Style

Sun, Shanqian, Yunjia Huang, Kohei Inoue, and Kenji Hara. 2023. "Order Space-Based Morphology for Color Image Processing" Journal of Imaging 9, no. 7: 139. https://doi.org/10.3390/jimaging9070139

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop