원시데이터 수집 시스템
선정목록으로

Image smoothing method based on global gradient sparsity and local relative gradient constraint optimization

관련 필름·전자재료 · (13) 프리즘 필름

기본 정보

저자
  1. Siyuan Li — School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China
  2. Yuan Liu — School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China|||School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China. liuyuan@sdtbu.edu.cn|||Shandong Future Intelligent Financial Engineering Laboratory, Yantai, 264005, China
  3. Jiafu Zeng — School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China
  4. Yepeng Liu — School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China|||School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China. liuyuan@sdtbu.edu.cn|||Shandong Future Intelligent Financial Engineering Laboratory, Yantai, 264005, China
  5. Yue Li — Coal Economy Academy, Shandong Technology and Business University, Yantai, 264005, China|||Yantai Growth Drivers Conversion Research Institute and Yantai Science and Technology Achievement Transfer and Transformation Demonstration Base, Yantai, 264005, China
  6. Qingsong Xie — School of Computer Science and Technology, Shandong Technology and Business University, Yantai, 264005, China
DOI
10.1038/s41598-024-65886-5
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-65886-5
토픽
Color Science and Applications
OpenAlex ID
W4400252489

평가 내용

관련도
관련
사업분야
필름·전자재료 · (13) 프리즘 필름
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 프리즘 필름' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Abstract Removing texture while preserving the main structure of an image is a challenging task. To address this, this paper propose an image smoothing method based on global gradient sparsity and local relative gradient constraints optimization. To reduce the interference of complex texture details, adopting a multi-directional difference constrained global gradient sparsity decomposition method, which provides a guidance image with weaker texture detail gradients. Meanwhile, using the luminance channel as a reference, edge-aware operator is constructed based on local gradient constraints. This operator weakens the gradients of repetitive and similar texture details, enabling it to obtain more accurate structural information for guiding global optimization of the image. By projecting multi-directional differences onto the horizontal and vertical directions, a mapping from multi-directional differences to bi-directional gradients is achieved. Additionally, to ensure the consistency of measurement results, a multi-directional gradient normalization method is designed. Through experiments, we demonstrate that our method exhibits significant advantages in preserving image edges compared to current advanced smoothing methods.

본문 54,792자

본문 펼치기
## OPEN # Image smoothing method based on global gradient sparsity and local relative gradient constraint optimization Siyuan Li <sup>1</sup> , Yuan Liu <sup>1</sup> <sup>*</sup> , Jiafu Zeng <sup>1</sup> , Yepeng Liu <sup>1,2</sup> , Yue Li <sup>3,4</sup> & Qingsong Xie <sup>1</sup> Removing texture while preserving the main structure of an image is a challenging task. To address this, this paper propose an image smoothing method based on global gradient sparsity and local relative gradient constraints optimization. To reduce the interference of complex texture details, adopting a multi-directional difference constrained global gradient sparsity decomposition method, which provides a guidance image with weaker texture detail gradients. Meanwhile, using the luminance channel as a reference, edge-aware operator is constructed based on local gradient constraints. This operator weakens the gradients of repetitive and similar texture details, enabling it to obtain more accurate structural information for guiding global optimization of the image. By projecting multi-directional differences onto the horizontal and vertical directions, a mapping from multi-directional differences to bi-directional gradients is achieved. Additionally, to ensure the consistency of measurement results, a multi-directional gradient normalization method is designed. Through experiments, we demonstrate that our method exhibits significant advantages in preserving image edges compared to current advanced smoothing methods. Natural images typically encompass intricate texture details. The human visual system adeptly mitigates the influence of textures, prioritizing the extraction of crucial structural edge information from images for rapid comprehension. Similarly, the objective of image smoothing research is to attenuate texture details while retaining image structure edges to the greatest extent feasible. Smoothing constitutes a pivotal component in numerous image processing techniques, including image structure extraction, edge enhancement, and image recognition. Furthermore, the textures can be repurposed, for instance, in applications like image detail enhancement. Presently, diverse methods exist for achieving image smoothing. Based on distinct approaches to texture removal, image smoothing methods can be categorized into local filtering methods, global optimization methods, and deep learning methods. Local filtering methods typically utilize sliding window techniques to achieve smoothing by recalculating the central pixel value of the window using the positional and value relationships among pixels within a local spatial neighborhood. Mean filtering accomplishes smoothing by substituting the central pixel with the average of the pixels in the local region. Although this method is straightforward, it often yields blurred edges in the smoothed image and escalates computational complexity with larger filter windows. Gaussian filtering enhances mean filtering by assigning varying weights to pixels in the filter window based on their distance from the central pixel and a Gaussian function equation. Pixels closer to the central pixel carry higher weights, while those farther away bear lower weights. Nonetheless, directly applying Gaussian filtering to images can also induce blurring of structural edges because Gaussian filtering treats all pixels in the image uniformly without discerning between structure and texture. Bilateral ­filtering <sup>1–4</sup> advances Gaussian filtering by incorporating both pixel value disparities and spatial offset distances between the central pixel and its neighboring pixels to determine filter weights. This methodology enables the preservation of edges while smoothing the image. However, images frequently contain pronounced gradient texture information, and solely incorporating pixel value domain variation may struggle to effectively 1School of Computer Science and Technology, Shandong Technology and Business University, Yantai 264005, China. 2Shandong Future Intelligent Financial Engineering Laboratory, Yantai 264005, China. 3Yantai Growth Drivers Conversion Research Institute and Yantai Science and Technology Achievement Transfer and Transformation Demonstration Base, Yantai 264005, China. <sup>4</sup> Coal Economy Academy, Shandong Technology and Business University, Yantai 264005, China. <sup>*</sup> email: liuyuan@sdtbu.edu.cn address such images. The selection of parameters for bilateral filtering poses a challenge too. Augmenting the range weight might prove insufficient in mitigating strong gradient textures, while reducing it could result in edge blurring, thereby complicating the attainment of a harmonious balance between edge preservation and smoothing. Guided ­filtering <sup>5–8</sup> employs the fundamental concept of utilizing information from a guided image to adapt the filtering process and regulate the extent of image smoothing. The guided image can alternatively be the original input image itself. The relationship between the smoothed image and the guided image remains linear. This technique minimizes structural disparities between the local output image and the input image, thereby attaining optimal local results. Unlike the aforementioned local filtering methods, the size of the local window does not impact the algorithmic complexity of guided filtering, indicating substantial computational efficiency relative to other local filtering methods. While this filter excels at preserving edges during image smoothing, it may induce halos when confronted with intricate textures and details. Additionally, there exist ­methods <sup>9–11</sup> that differentiate between the two by formulating metrics based on features observed in texture and edge regions, with the aim of achieving image smoothing objectives. In comparison to local filtering methods, globally optimized methods founded on regularization constraints can simultaneously account for global variations in image gradients, thereby facilitating better preservation of overall consistency in smoothed images. Global optimization methods achieve smoothing by minimizing an energy equation, the equation typically comprising two components. One component ensures structural fidelity between the output and input images, quantified by the sum of pixel differences between corresponding pixels in the input and output images. The other component encompasses a regularization term, with various regularization terms employed by different methods. Nevertheless, the purpose of the regularization term is to categorize input pixels based on specified criteria and subsequently apply varying degrees of constraint to different pixels to achieve smoothing. Energy equations typically incorporate a smoothing parameter to modulate the influence of fidelity and regularization terms on the total energy of the equation. Meyer et al. <sup>12</sup> introduced a global optimization method based on total variation ( _TV_ ) regularization. This approach solely relies on pixel gradients to differentiate textures from structural edges, often resulting in blurred edges or residual textures in the smoothed image. Furthermore, there exist methods that employ _L_ -norm constraints to optimize images, such as L0 <sup>13</sup>, L1 <sup>14</sup>, and L2 <sup>15</sup> . Additionally, Du et al. <sup>16</sup> proposed a texture-filtering method developed by integrating local Laplacian filters into joint filtering, thereby inheriting the advantages of joint bilateral filtering. Zhou et al. <sup>17</sup> introduced a filtering technique via iterative global optimization, demonstrating commendable scale-awareness and edge-preservation capabilities. Liu et al. <sup>18</sup> proposed a novel global approach by embedding a bilateral filter into a least squares model, facilitating efficient edge-preserving smoothing. Golshan and ­Hasanzadeh <sup>19</sup> devised a novel hysteresis smoothing method based on fuzzy norms. Wang et al. <sup>20</sup> introduced a multi-matrix low-rank decomposition method for image denoising. Additionally, Liu et al. <sup>21</sup> proposed a new iterative least squares method based on global optimization for efficient image edge preservation. Moreover, Liu et al. <sup>22</sup> proposed image magnification techniques based on patch fitting. Building upon these advancements, Liu et al. <sup>23</sup> presented an image smoothing method termed Histogram Equalization Content-Aware Patching and Direction-Constrained Sparse Gradient (HCDG). However, this method may produce seams in smoothed images with complex textures. Furthermore, Liu et al. <sup>24</sup> introduced an algorithm that obtains texture information through user-clicked regions. Subsequently, Liu et al. <sup>25</sup> proposed an image amplification method grounded on low-rank sparsity. Additionally, Liu et al. <sup>26</sup> devised a non-convex and non-smooth optimization framework capable of achieving diverse and even contradictory smoothing behaviors via different parameter settings. Despite these advancements, the fixed pattern employed for texture removal and the absence of local region features may lead to artifacts or aliasing in the smoothed image. In addressing this, Sun et al. <sup>27</sup> not only proposed an edgeguided filtering method but also designed post-processing techniques to optimize the filtered images. With the advancement of neural network technology, numerous ­applications <sup>28–30</sup> have undergone rapid development. However, the absence of a strict definition of smooth images has hindered the progress of image smoothing techniques using neural networks. It wasn’t until Convolutional Neural Networks (CNNs) <sup>31</sup> became widely adopted that researchers began leveraging CNNs to learn filter kernels for enhancing the quality of image smoothing. Xu et al. <sup>32</sup> introduced a deep edge-aware filter that trained the gradient domain of images within a deep CNN framework, learning a plethora of crucial edge-aware operators from data. This method provided a potent tool for approximating various filters without necessitating knowledge of the original model and details, achieving nearly a 200-fold acceleration compared to traditional filters. Lu et al. <sup>33</sup> curated a large dataset by blending natural textures with pure structural images, utilized to train a Texture Prediction Network (TPN) combined with a Structure Prediction Network (SPN) to identify both components effectively. Zhu et al. <sup>34</sup> constructed a dataset comprising 500 representative visual object categories and devised new loss functions on deep convolutional network architectures, yielding leading smoothing effects. Zhu et al. <sup>35</sup> captured a multitude of image patches and extracted multimodal visual features to describe each patch. By training to capture edge block features and subsequently constructing a Gaussian mixture model for image smoothing, they achieved notable results. Xu et al. <sup>36</sup> curated the Nankai Smoothing dataset (NKS), comprising 200 mixed structural-texture images generated by blending highly realistic vector images and images with natural textures. This process resembled the generation of noisy images in the field of image denoising. Liu et al. <sup>26</sup> proposed a generalized framework for structure-preserving image smoothing. This framework utilized a truncated Huber penalty function, demonstrating strong flexibility under various parameter settings and achieving diverse smoothing properties. As shown in the Fig. 1, Fig. 1a is the input image, Fig. 1b is the image smoothed by relative total variation (RTV) ­method <sup>15</sup>, RTV method needs calculate the relative total variation to obtain the structural weight of the image, but the calculation of the relative total variation needs to use a large Gaussian filter, which will smooth out the edges with smaller gradients of the image, resulting in inaccurate structural weight. This eventually Figure 1. Comparison of advantages and disadvantages of different methods. leads to the texture in region where strong gradient textures and edges cross is preserved as a structural edge, and jagged edges of the generated image, the red square in Fig. 1b. Figure 1c shows the result after smoothing using the HCDG ­method <sup>23</sup> . In this method, the image is divided into different regions according to the density of structural edge and texture detail in the image, different regions are processed separately, and then, smooth the overall image. As shown in Fig. 1c, the advantage of this is that the interference of the strong gradient texture on the whole image can be avoided, so that more structural edges with smaller gradients can be retained. The disadvantage is that when the texture of different regions in the image is quite different, there are some seams in the smoothed image due to the inconsistent smoothness of the method for different regions, shown in green square in Fig. 1c. To address these issues, this paper proposes a smoothing method based on global gradient sparsity and relative gradient constraint optimization. The method is built upon texture gradient suppression for global optimization smoothing, utilizing the L2 norm as a regularization constraint. The L2 norm of an image can be understood as the square root of the sum of squares of all pixels in the image. The L2 norm possesses favorable mathematical properties such as differentiability, which facilitates solving optimization problems with the L2 norm as a regularization term, often leading to global or near-global optimal solutions. Additionally, the L2 norm preserves more image details and avoids producing step-like color transitions, as seen with the L0 norm. This motivates the use of the L2 norm as a regularization to constrain image optimization. This paper’s approach adopts a multi-directional difference constraint global gradient sparsity decomposition method, which obtains a smoothing component with weaker texture detail gradients through gradient sparsity. Meanwhile, it constructs an edge-aware operator using the gradient of the input image’s luminance channel as a reference. Compared to the aforementioned methods, this operator can more accurately capture image structural information, leading to excellent smoothing effects when employed as a constraint for guiding global image optimization. The main innovations are as follows: 1. By employing global image gradient sparse techniques, we diminish the high-frequency texture gradients in the image to obtain its smooth component. 2. Utilizing the log-luminance channel of the image combined with its smooth component to capture the structural weight of the image. 3. Designing a mapping relationship that incorporates multi-directional differences into two-directional gradient components. 4. Through the utilization of pixel structural weights to guide image optimization, suppressing pixel gradients in texture regions, thereby achieving the objective of smoothing the image. Methods The method’s flowchart is illustrated in Fig. 2. Firstly, this method specifies the input image to obtain its smoothing component, denoted as Is . In represents the texture gradient removed from the image through gradient sparsity, which can be obtained by pixel-wise subtraction of _I_ and Is . Then, it calculates the luminance channel of both the input image and its smoothing component. Based on these two luminance channels, the horizontal and vertical structural weights of the image can be computed. In regions of the input image characterized by edges, corresponding weights are smaller; conversely, in texture regions, weights are larger. Utilizing this information, we formulate a global optimization energy equation aimed at suppressing pixel gradients in texture regions, thereby achieving the objective of image smoothing. The subsequent sections of this chapter will systematically present our approach. Image gradient sparsity The texture patches in the image exhibit similar and repetitive features. Utilizing gradient sparsity can remove the pixel gradient of the texture regions with high frequency while preserving the pixel gradient of the edge regions Figure 2. Flowchart of our method. with low frequency as much as possible. The image after gradient sparsity is referred as the smooth component of the image. Therefore, it can be considered that the image _I_ consists of two parts, can be expressed as: I = Is + In (1) where Is represents the smooth component of the image, and In corresponds to the texture gradients that has been removed. Is can be solved using multi-directional difference constraints, denoted as: 2 2 ��� arg minIs 21 <sup>�I −</sup> <sup>Is�2</sup> d ∂d 2 <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> (2) <u>1</u> 2 <sup>�I −</sup> <sup>Is�2</sup> d σ2 <sup>+ β · �</sup> ∂d ��� <u>∂(Is/gσ )</u> 2 <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> where gσ represents a mean filter of size σ where all its values equal to 1. The smaller the value of σ, the sparser the resulting gradient, the symbol (/) represents the deconvolution operation, β is the weight parameter used to control the smoothness of Is, as the value of β increases, the gradient matrix becomes sparser, leading to a smoother outcome. The regularization term <sup><u>∂(Is</u></sup> ∂ <sup><u>/</u></sup> d <sup><u>gσ )</u></sup> consists of the first differences in 0 <sup>◦</sup>, 45 <sup>◦</sup>, 90 <sup>◦</sup> and 135 <sup>◦</sup> direc smoother outcome. The regularization term <sup><u>∂(Is</u></sup> ∂ <sup><u>/</u></sup> d <sup><u>gσ )</u></sup> consists of the first differences in 0 <sup>◦</sup>, 45 <sup>◦</sup>, 90 <sup>◦</sup> and 135 <sup>◦</sup> direc tions, which are {∂x, ∂x+y, ∂y, ∂y−x} . Let’s set Is/gσ = Il, then Is = gσ ⊗ Il, symbol ⊗ represents the convolution operation. Eq. (2)can be converted to the solution for Il: 2 2 ��� arg minIl �I − gσ ⊗ Il� <sup>2</sup> d ∂d 2 <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> (3) - <sup>2</sup> d 2 <sup>+ β · �</sup> ∂d ��� <u>∂Il</u> 2 <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> Applying the matrix derivative formula to the above expression and setting it to zero yields: −2 ∗ gσ ⊗ I − gσ ⊗ Il d <sup>∂</sup> d <sup>2Il</sup> <sup>= 0,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> (4) �I − gσ ⊗ Il <u>�</u> + 2β <sup><u>�</u></sup> d <sup>∂</sup> d <sup>2</sup> d <sup>2Il</sup> <sup>= 0,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> by rearranging terms, Il represents as: <u>gσ ⊗I</u> Il = d <sup>∂</sup> d <sup>2</sup> <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> (5) Is . In order to speed up the operation, this paper use the Fast Fourier Transform gσ ⊗gσ +β <sup><u>�</u></sup> d <sup>2</sup> <sup>,</sup> <sup>d</sup> <sup>∈{x, x + y, y, y −</sup> <sup>x}</sup> d <sup>∂</sup> d <sup>2</sup> Given Is/gσ = Il, we can solve for Is . In order to speed up the operation, this paper use the Fast Fourier Transform (FFT) to accelerate it, which is expressed as: F <u>(gσ ) ∗</u> F <u>(I)</u> Is = gσ ⊗ F <sup>−1</sup> ( d <sup>F</sup> <sup>(∂d) ∗</sup> <sup>F</sup> <sup>(∂d))</sup> (6) F <sup>−1</sup> (·) represents the inverse FFT, ∗ denotes a complex conjugate operation, F (gσ ) ∗ F (gσ ) + β <sup><u>�</u></sup> <sup>∂d represents the difference operator in the</sup> <sup>_d_</sup> <sup>direction, the difference operators cor-</sup> d <sup>F</sup> <sup>(∂d) ∗</sup> <sup>F</sup> <sup>(∂d))</sup> where F (·) represents the FFT, F <sup>−1</sup> (·) represents the inverse FFT, ∗ denotes a complex conjugate operation, F (gσ ) ∗ F (gσ ) + β <sup><u>�</u></sup> division <sup><u>·</u></sup> - <sup>is element-wise, ∂d represents the difference operator in the</sup> <sup>_d_</sup> <sup>direction, the difference operators cor-</sup> division <sup><u>·</u></sup> - <sup>is element-wise, ∂d represents the difference operator in the</sup> <sup>_d_</sup> <sup>direction, the difference operators cor-</sup> responding to {x, x + y, y, y − x} are {{1, −1}, {0, 1; −1, 0}, {1; −1}, {1, 0; 0, −1}}. Log‑luminance channel of the image Many smoothing methods utilize the pixel means of the RGB channels as the image luminance. This paper opts for the luminance channel ( _V_ ) in the HSV color space for the following reasons: Firstly, the _V_ channel directly reflects the brightness level of the image, providing a more intuitive representation of the luminance information. Secondly, the _V_ channel is color-independent, thus exhibiting higher stability and immunity to variations across different color channels. Moreover, the _V_ channel facilitates a clearer distinction between luminance and color, enhancing effectiveness in image processing tasks. Lastly, the _V_ channel demonstrates greater adaptability, effectively handling variations in illumination across different scenes. Therefore, employing the _V_ channel as luminance contributes to improving the effectiveness and stability of image processing. In the HSV color space, the _V_ channel is used to represent the brightness information of the image. If we denote the pixel values of the three channels in the RGB space as R, G, and B, then the pixel values in the _V_ channel can be calculated as follows: V (I)p = max{Rp, Gp, Bp} (7) where _I_ is the input image, p denote each pixel. Human perception of brightness is nonlinear, meaning that adding the same amount of light does not result in the same perceived increase in brightness. Therefore, to better represent changes in brightness, a logarithmic transformation can be used to map linear brightness changes into a nonlinear space. Logarithmic transformation ensures a more uniform distribution of brightness changes across the entire brightness range, resulting in more visually consistent brightness variations. Additionally, logarithmic transformation amplifies smaller brightness changes, thereby enhancing details in low-brightness areas of the image and reducing discontinuities in brightness changes caused by noise. This approach improves image contrast and visual quality. performing a logarithmic transformation on the _V_ channel, the log-luminance channel of _I_ can be represented as: L(I) = ln (1 + k ∗ V (I)) (8) Where the constant 1 is introduced to prevent the presence of zero values in the input data, ensuring the transform function is defined across its entire domain. The parameter _k_ is the contrast adjustment parameter, controlling the slope of the logarithmic transformation. A larger value of _k_ results in a steeper slope of the logarithmic transformation, leading to more pronounced brightness changes and increased image contrast. Conversely, a smaller value of _k_ yields a gentler slope of the logarithmic transformation, resulting in smoother brightness changes and reduced image contrast. Edge‑aware operator First, we simulate pixel gradients using multi-directional differences. As shown in Fig. 3, we abstract the pixels in the green and red regions of the image Fig. 3a into matrix representation, Fig. 3b. The gray and white colors in the matrix represent two different pixel values. We first calculate the differences in four directions: x, x + y, y and y − x . In the figure, blue and orange colors represent these differences. Since the y − x difference is 0 in green box, it is not shown in the figure, but its principle is the same as the x + y difference, shown in the red box. Then, projecting the x + y difference (orange line) onto the _x_ and _y_ directions (blue lines), respectively. Finally, using the sum of the _x_ and _y_ direction vectors to simulate the gradient of that pixel. Taking the horizontal direction as an example, a similar approach can be applied to the vertical direction as well. The horizontal gradient component of image _I_ can be represented as: | ∂ <sup><u>∂</u></sup> x <sup><u>I</u></sup> ∂ <sup><u>∂</u></sup> x <sup><u>I</u></sup> <sup>| + cos 45◦</sup> <sup>·</sup> | ∂(x∂+I y) <sup>| + |</sup> ∂(y∂−I x) <sup>|</sup> <u>�</u> <sup>◦</sup> + cos 45 <sup>◦</sup> ∂x <sup>| + cos 45◦</sup> <sup>·</sup> | ∂(x+y) <sup>| + |</sup> ∂(y−x) <sup>|</sup> ∇xI = (9) <u>�</u> <u>�</u> 1 + cos 45 <sup>◦</sup> + cos 45 <sup>◦</sup> <u>�</u> where _x_ represents the horizontal direction, _y_ represents the vertical direction, and the division is performed to ensure that the result is in the same range as the result obtained by directly using the difference in the _x_ direction. Similarly, the vertical gradient component can be expressed as: Figure 3. Multi-directional differential simulation of gradients. ( a ) Input. ( b ) Pixel gradient calculation. | ∂ <sup><u>∂</u></sup> y <sup><u>I</u></sup> ∂ <sup><u>∂</u></sup> y <sup><u>I</u></sup> <sup>| + cos 45◦</sup> <sup>·</sup> | ∂(x∂+I y) <sup>| + |</sup> ∂(y∂−I x) <sup>|</sup> <u>�</u> <sup>◦</sup> + cos 45 <sup>◦</sup> ∂y <sup>| + cos 45◦</sup> <sup>·</sup> | ∂(x+y) <sup>| + |</sup> ∂(y−x) <sup>|</sup> ∇yI = (10) <u>�</u> <u>�</u> 1 + cos 45 <sup>◦</sup> + cos 45 <sup>◦</sup> <u>�</u> The edge-aware operator can be expressed as: ωd(I) = (∇dL(Is) · ∇dL(I) + ε) <sup>−1</sup> (11) where Is represents the smoothed component of _I_ after gradient sparsity, L(Is) is its log-luminance channel. _L_ ( _I_ ) represents the log-luminance channel of _I_, ∇d represents the gradient component of the image in the _d_ direction, ε is a very small value introduced to prevent division by zero, the division and multiplication operation is performed element-wise. This operator is capable of accurately recognizing the edge structures in the input image and serves as weight parameters to guide optimization. The flowchart is shown in Fig. 4. After obtaining ∇dL(Is) · ∇dL(I), it needs to be inverted. To prevent division by zero, a small constant ε is added to it. Besides its role in preventing division by zero, ε also impacts the sharpness of the final smoothed image. The scheme of global optimization Our method is based on the idea of gradient suppression, which can obtain the smooth effect by limiting the gradient of the pixels in the non-edge region of the image. This method achieve smoothing by minimizing our energy equation, which can be expressed as follows: p �2 p �2 �S − I� <sup>2</sup> 2 <sup>+ �</sup> S p arg min �S − I� <sup>2</sup> 2 <sup>+ �</sup> ωx,p(I) + ωy,p(I) (12) S ∂x ∂y ωx,p(I) ∂x - <u>∂S</u> + ωy,p(I) ) ∂y - <u>∂S</u> p p p p �2 This equation is divided into two parts, fidelity term �S − I� <sup>2</sup> 2 <sup>2</sup> 2 <sup>and constraint term ωx,p(I)</sup> ∂x _I_ - <u>∂S</u> p <sup>+ ωy,p(I)</sup> and a smoothed output �2 <u>∂S</u> ∂y p <sup>.</sup> 2 _p_ represents each pixel. The fidelity term measures the similarity between an input image _I_ and a smoothed output image _S_ by computing the difference between the pixels in the two images. ω(I) is the edge-aware operator we designed. The parameter � serves as the global smoothing parameter, controlling the balance between the two components of the equation. When the � is small, the fidelity term will get a large weight in minimizing this energy equation, which forces the output image _S_ to be more similar to the input image _I_ . Conversely, when the - is large, the constraint term gets more weight and the output image will be smoother. It is worth noting that we express Eq. (12) in pixels for the sake of understanding the principle of image smoothing. However, in practical calculations, we perform computations on a image basis for ease of operation and to improve computational speed. Figure 4. Flowchart of edge-aware, _L_ ( _I_ ) and L(Is) are the log-luminance channels of the input image and its smooth component, respectively. Algorithm 1. Smooth method Based on the previous description, Is(I) and _L_ ( _I_ ) can be solved using Eqs. (6) and (8). Then, wx and wy can be solved using Eq. (11). Therefore, Eq. (12) can be represented as follows: min �S − I� <sup>2</sup> 2 <sup>+ �</sup> S d∈{x,y arg minS �S − I� <sup>2</sup> 2 <sup>+ �</sup> ∂d <sup>·</sup> ∂ <sup><u>∂</u></sup> d <sup><u>S</u></sup> (13) 1 ���� d∈{x,y} ∂d <sup>·</sup> ∂ <sup><u>∂</u></sup> d <sup><u>S</u></sup> ����ωd(I) · <u>∂S</u> ∂d where the operation (·) denotes matrix element-wise multiplication. Like many other methods, our method also requires multiple iterations to obtain the satisfactory result. Here is our iterative scheme, rewritten in matrix form: vSt - vSt−1 �T - + �    d∈{x,y  <sup>�</sup> d <sup>T</sup> <sup>WdC</sup> d <sup>T</sup> <sup>C</sup> d <sup>T</sup> <sup>v</sup> S <sup>Tt</sup> S <sup>Tt</sup> vSt - vSt−1 vSt - vSt−1 + � vS <sup>Tt</sup> <sup>C</sup> d <sup>T</sup> <sup>WdC</sup> d <sup>T</sup> <sup>v</sup> S <sup>Tt</sup> (14)   d∈{x,y} - �T - -  <sup>�</sup>  vS <sup>Tt</sup> S <sup>Tt</sup> <sup>C</sup> d <sup>T</sup>   d∈{x,y} where S <sup>t−1</sup> is input image, S <sup>t</sup> is output image, vSt−1 and vSt denote their respective vector representations. _t_ is an integer greater than or equal to 1, S <sup>0</sup> = I, _T_ represents the matrix transpose operation, Wx and Wy are diagonal matrices that incorporate the edge-aware operators ωx and ωy, Cx and Cy are the Toeplitz matrices from the discrete gradient operators with forward difference. The vector vSt that minimizes Eq. (14) is uniquely defined as the solution of the linear system, Taking the derivative of Eq. (14) with respect to vSt and setting the result to zero, represent as follows:  d∈{x,y} −1 vSt = Cd <sup>T</sup> <sup>WdCd</sup> vSt−1 (15)   ∈{x,y Cd <sup>T</sup> d <sup>T</sup> <sup>WdCd</sup> vSt−1 where 1 is an identity matrix and Cx <sup>T</sup> <sup>WxCx</sup> <sup>+ C</sup> y <sup>T</sup> <sup>WyCy is the weight matrix computed based on the input image</sup> vS <sup>t−1</sup> d∈{x,y} <sup>C</sup> d <sup>T</sup> <sup>WdCd) is the symmetric positive definite Laplacian matrix. The optimized result is used</sup> where 1 is an identity matrix and Cx <sup>T</sup>  1 + � vS <sup>t−1</sup> d∈{x,y} <sup>C</sup> d <sup>T</sup> <sup>WdCd) is the symmetric positive definite Laplacian matrix. The optimized result is used</sup> as the input for subsequent calculations, leading to satisfactory smoothing effects after multiple iterations. The , (1 + � <sup>�</sup> complete algorithm flow is summarized in Algorithm 1. Result and discussion In order to prove the effectiveness of our method, we conducted comparative experiments with the following methods. Global optimization methods are ­TV <sup>37</sup>, ­RTV <sup>15</sup>, ­DSG <sup>38</sup>, ­ILS <sup>21</sup>, ­muGIF <sup>8</sup>, and ­HCDG <sup>23</sup>, deep learning method are ­VDCNN <sup>34</sup> and ­ResNet <sup>34</sup> . These methods have gained widespread recognition in the field of image smoothing, representing the direction of development in image smooth area. Ablation experiment To demonstrate the superiority of our method in edge detection, we compared the gradients of the smoothed component after sparsifying image gradients with those of the original image. Compared to previous methods such as TV method, our approach overcomes interference from strong gradient textures, thus emphasizing the prominent structural edges in the image. We perform gradient sparsity on image _I_ with parameter β = 150, σ = 4, as shown in Fig. 5. Where, Fig. 5a represents the input image _I_, while Fig. 5b represents the smooth component of _I_ . Figure 5c represents the highfrequency texture gradient information that has been removed. By comparing the gradient images of _I_ and Is, i.e. Fig. 5d and e, it is evident that Is can better highlight the structural information in the image. For example, in the green box region, it is difficult to discern the boundary area of the harp strings in Fig. 5d, but it is clearly visible in Fig. 5e. Texture Images with artificial blending In order to verify that our method can preserve the edges of the image as much as possible while removing the textures. We conduct experiments using the Nankai Smoothing (NKS) dataset proposed by Xu et al. <sup>36</sup> . The author selected 20 highly realistic vector images from thousands of vector images containing free structures. For example, the images depicted in Fig. 6a. Additionally, 10 natural texture images were chosen such as Fig. 6b. S <sup>t−1</sup> , (1 + � <sup>�</sup> x <sup>T</sup> <sup>WxCx</sup> <sup>+ C</sup> y <sup>T</sup> d∈{x,y} <sup>C</sup> d <sup>T</sup> Figure 5. Gradient sparsity. ( a ) I. ( b ) Is. ( c ) In. ( d ) gradient of I. ( e ) gradient of Is. Figure 6. ( a ) Smooth vector images from ­NKS <sup>36</sup> . ( b ) Texture images from ­NKS <sup>36</sup> . ( c ) Artificially blended texture-structure images from ­NKS <sup>36</sup> . These two sets were blended according to a structural ratio ranging from 0.7 to 0.85, resulting in visually natural texture-structure composite images, Fig. 6c. Compared to other image smoothing datasets, NKS comes with a ground truth. As the ground truth are smooth images, it becomes easier to identify structural edges, making it possible for the smoothed images to closely match the ground truth without texture residue. Therefore, the better the edge-preserving smoothing effect, the closer the structural edges of the smoothed images align with the ground truth. As shown in Figs. 7, 8, we picked two images, Figs. 7a and 8a, with texture from the NKS. Through experiments we found that the comparison methods selected have excellent texture removal effects, but there are some problems with edge preservation. The TV method removes some fine structural edges, such as the beach chair in Fig. 7b and the creases on the ground in Fig. 8b. RTV method, Figs. 7c and 8c, removed part of the edges exist in ground truth, such as the edges of the cloud in Fig. 7c and the shadow of the beach in Fig. 8c. The images, Figs. 7d and 8d, smoothed by method DSG also has a loss of details compared with ground truth. The image smoothed by ILS method removed many structure edges, as shown in Figs. 7e and 8e. muGIF method, Figs. 7f and 8f, has the same problem, the image smoothed by muGIF removed many edges of the cloud and white stripes of the beach chair in in Fig. 7f. HCDG method, Figs. 7g and 8g lose a lot of structural edge information. Our method can still preserve complete edge details after removing artificially added textures, as shown in Figs. 7h and 8h, edges of the clouds and white streaks of the beach chair in Fig. 7h and shadow of the beach in Fig. 8h have been preserved. Images with strong gradient textures In this subsection, we will verify the texture removal ability of our method. The images we selected in this subsection contain a lot of strong gradient textures, as shown in Figs. 9, 10, 11 and 12, These strong gradient textures are very similar to the image structure edges, which tests the method’s ability to recognize the image structure edges. The smoothed images, Figs. 9b and 10b, by TV method removed most of the texture, but the smoothed image has color cast compared with the input image, such as the harp strings in Fig. 9b. As shown in Figs. 9c and 10c, the smoothed image by RTV method not only removes the texture but also removes some weak gradient edges, such as the overlap region between the harp and the harp strings in Fig. 9c and the eye of the little fish in Fig. 10c. The image, Fig. 9c, smoothed by DSG method preserved the weak gradient edge, but the structural edges are not sharp enough and some textures remains. In Fig. 10d, the DSG method still fails to preserve the eye contour of the little fish. ILS method needs to use small scale Gaussian filter to pre-smooth the image with strong gradient texture, which will undoubtedly reduce the gradient of the structural edges. As shown in Fig. 9e and 10e, the Figure 7. ( a ) Input image from ­NKS <sup>36</sup> ; ( b ) TV ( � = 0.2 ; ( c ) RTV ( � = 0.004, σ = 3 ); ( d ) DSG ( � = 0.008, k = 50 ); ( e ) ILS ( � = 8, γ = 6/255 ) ( f ) muGIF ( � = 0.015 ); ( g ) HCDG(�d = 38, - = 0.08 ); ( h ) ours ( β = 100, g = 4, - = 0.005). Figure 8. ( a ) Input image from ­NKS <sup>36</sup> ; ( b ) TV ( � = 0.15 ); ( c ) RTV ( � = 0.002, σ = 3 ); ( d ) DSG ( � = 0.005, k = 50 ); ( e ) ILS ( � = 10, γ = 5/255 ) ( f ) muGIF ( � = 0.005 ); ( g ) HCDG ( �d = 38, - = 0.05 ); ( h ) ours ( β = 100, g = 4, - = 0.0015). edges of the processed image will be blurred and have color difference. The problem with the muGIF method is that it can’t accurately distinguish between image structure edges and strong gradient textures, as shown in Fig. 9f, some structural edges in the overlap region between the harp and harp strings are removed, while some texture remains on the walls, in Fig. 10f, this method preserved the eye contour of the little fish, and there is still more textures in the blue water. The HCDG method, Figs. 9g and 10g, has a better performance, however, in the smoothed image, Figure 9(g), there is texture remaining and the eye contour of the fish is blurred. As shown in Figs. 9h and 10h, our method has ability to remove most texture, only a few texture remains, and on this basis, our method can preserve most of the structural edges. In Figs. 11 and 12, our method effectively removes the texture from the images while preserving weak gradient edges and small-scale structural edges in the smoothed images. For example, the teeth of the fish in Fig. 11h and the facial features of the pumpkin in Fig. 12h are retained. We have zoomed in on these areas for ease of observation. Comparison with deep learning methods In this section, we compare our method with deep learning methods, specifically ­ResNet <sup>34</sup> and ­VDCNN <sup>34</sup> . We retrain the models based on their papers and fine-tune the hyper parameters according to the actual performance of the models. The experimental results are presented in Figs. 13 and 14. Figure 9. ( a ) Input; ( b ) TV ( � = 0.4 ); ( c ) RTV ( � = 0.015, σ = 3 ); ( d ) DSG ( � = 0.015, k = 50 ); ( e ) ILS ( � = 10, γ = 4/255 ) ( f ) muGIF ( � = 0.04 ); ( g ) HCDG ( �d = 38 � = 0.04 ); ( h ) ours ( β = 200 g = 4, - = 0.015). Figure 10. ( a ) Input; ( b ) TV ( � = 0.5 ); ( c ) RTV ( � = 0.02, σ = 5 ); ( d ) DSG ( � = 0.03, k = 200 ); ( e ) ILS ( � = 10, γ = 4/255 ) ( f ) muGIF ( � = 0.08 ); ( g ) HCDG ( �d = 55, - = 0.2 ); ( h ) ours(β = 200, g = 5, - = 0.03 ). Figure 11. ( a ) Input; ( b ) TV ( � = 0.2 ); ( c ) RTV(� = 0.015, σ = 3 ); ( d ) DSG ( � = 0.01, k = 100 ); ( e ) ILS ( � = 5, γ = 4/255 ) ( f ) muGIF ( � = 0.02 ); ( g ) HCDG ( �d = 38, - = 0.03 ); ( h ) ours ( β = 30, g = 4, - = 0.015). Figure 12. ( a ) Input; ( b ) TV ( � = 0.35 ); ( c ) RTV ( � = 0.02, σ = 3 ); ( d ) DSG ( � = 0.015, k = 200 ); ( e ) ILS ( � = 10, γ = 8/255 ) ( f ) muGIF ( � = 0.02 ); ( g ) HCDG ( �d = 38, - = 0.1 ); ( h ) ours ( β = 160, g = 4, - = 0.015). Figure 13. ( a ) Input; ( b ) ResNet; ( c ) VDCNN; ( d ) ours ( β = 150, g = 5, - = 0.005). Figure 14. ( a ) Input; ( b ) ResNet; ( c ) VDCNN; ( d ) ours ( β = 150, g = 5, - = 0.001). From Fig. 13, it is evident that both the ResNet model and the VDCNN model, Figs. 13b and c, fail to smooth out the yellow flower center. While our method effectively smooths the flower center, it also preserves weak edges in the image, such as the overlapping edges of the petals. In Fig. 14, the results of the ResNet model and VDCNN model both exhibit color shifts, as shown in Fig. 14b and c respectively. Compared to the input image, there is a noticeable increase in brightness in their outputs. The results produced by deep learning methods are uncontrollable, and thus, this issue cannot be addressed by adjusting hyper parameters. Our method generates more stable results, as shown in Fig. 14d, where the smoothed result closely matches the input image in terms of color. Additionally, the texture pattern on the vase is preserved during smoothing, demonstrating excellent smoothing results. Numerical verification To further validate the effectiveness of our method, we conducted an analysis of the experimental results using Structural Similarity (SSIM), Peak Signal-to-Noise Ratio (PSNR), and Information Entropy (IEP). PSNR and SSIM are commonly used in papers related to image enlargement and denoising, they can measure the similarity between two images from different perspectives. Unlike these image processing techniques, image smoothing lack a ground truth for comparison. Therefore, in most articles, people compare textured input images with smoothed images. However, the problem is that if some texture that should have been removed is still present, this can similarly lead to an increase in PSNR and SSIM, and therefore needs to be combined with a visual image as a reference. In the case where the visual texture is completely obliterated, a higher PSNR and SSIM means that the image retains a more complete edge structure. We calculated the PSNR and SSIM values between the input images and the smoothed images, and the results are summarized in Table 1. In the rows corresponding to SSIM and PSNR, the values in bold represent the maximum values in each row. From the Table 1, it can be seen that our method performs excellently in most cases. Figure 7 Figure 8 Figure 9 Figure 10 Figure 11 Figure 12 <u>Input</u> <u>TV</u> <u>RTV</u> <u>DSG</u> <u>ILS</u> <u>muGIF</u> <u>HCDG</u> <u>Ours</u> <u>PSNR</u> <u>–</u> <u>31.412</u> <u>31.6454</u> <u>30.9223</u> <u>30.8071</u> <u>31.2419</u> <u>30.3627</u> <u>31.6592</u> <u>SSIM</u> <u>–</u> <u>0.8888</u> <u>0.8951</u> <u>0.8747</u> <u>0.8709</u> <u>0.8858</u> <u>0.861</u> <u>0.8953</u> <u>IEP</u> <u>7.1441</u> <u>6.2687</u> <u>6.3032</u> <u>6.3101</u> <u>6.7182</u> <u>6.6101</u> <u>6.4965</u> _<u>6.2389</u>_ <u>PSNR</u> <u>–</u> <u>32.7837</u> <u>33.285</u> <u>32.6398</u> <u>33.5445</u> <u>33.3602</u> <u>31.2363</u> <u>34.0748</u> <u>SSIM</u> <u>–</u> <u>0.8221</u> <u>0.8371</u> <u>0.8163</u> <u>0.853</u> <u>0.8388</u> <u>0.7921</u> <u>0.8538</u> <u>IEP</u> <u>7.2339</u> <u>6.471</u> _<u>6.2478</u>_ <u>6.3749</u> <u>6.7208</u> <u>6.766</u> <u>6.4513</u> <u>6.6747</u> <u>PSNR</u> <u>–</u> <u>28.6172</u> <u>28.7358</u> <u>28.6396</u> <u>28.4113</u> <u>28.5329</u> <u>28.5645</u> <u>28.7356</u> <u>SSIM</u> <u>–</u> <u>0.6568</u> <u>0.6773</u> <u>0.6715</u> <u>0.6314</u> <u>0.6708</u> <u>0.6585</u> <u>0.6841</u> <u>IEP</u> <u>7.9342</u> <u>7.4907</u> <u>7.6095</u> <u>7.4854</u> <u>7.6057</u> <u>7.556</u> <u>7.5258</u> _<u>7.4178</u>_ <u>PSNR</u> <u>–</u> <u>28.5379</u> <u>28.9524</u> <u>28.2194</u> <u>28.3572</u> <u>28.4469</u> <u>28.329</u> <u>28.6159</u> <u>SSIM</u> <u>–</u> <u>0.4177</u> <u>0.4322</u> <u>0.3828</u> <u>0.3797</u> <u>0.45</u> <u>0.3762</u> <u>0.4125</u> <u>IEP</u> <u>7.7544</u> <u>7.0585</u> <u>7.0894</u> <u>6.8253</u> <u>7.2843</u> <u>7.0162</u> <u>6.9766</u> _<u>6.6345</u>_ <u>PSNR</u> <u>–</u> <u>29.5525</u> <u>29.3251</u> <u>29.2062</u> <u>29.1356</u> <u>29.121</u> <u>29.1267</u> <u>29.4273</u> <u>SSIM</u> <u>–</u> <u>0.5522</u> <u>0.5146</u> <u>0.4872</u> <u>0.4989</u> <u>0.5136</u> <u>0.4754</u> <u>0.5327</u> <u>IEP</u> <u>7.8756</u> <u>7.3857</u> <u>7.3517</u> _<u>7.1447</u>_ <u>7.4718</u> <u>7.3656</u> <u>7.2429</u> <u>7.3428</u> <u>PSNR</u> <u>–</u> <u>28.9776</u> <u>29.0562</u> <u>29.0026</u> <u>28.8574</u> <u>29.0278</u> <u>28.8472</u> <u>29.1012</u> <u>SSIM</u> <u>–</u> <u>0.492</u> <u>0.4915</u> <u>0.4794</u> <u>0.4826</u> <u>0.499</u> <u>0.4408</u> <u>0.506</u> <u>IEP</u> <u>7.3097</u> <u>6.3323</u> <u>6.2479</u> _<u>5.424</u>_ <u>6.4593</u> <u>6.2646</u> <u>5.866</u> <u>6.3496</u> Table 1. PSNR, SSIM and IEP compare. The information entropy of an image reflects the complexity and uncertainty of information within the image. For similar images, a lower information entropy typically indicates that the information in the image is more concentrated and straightforward. The formula for calculating _IEP_ is as follows: 255 0 IE = − Pi log2 Pi, (16) Pi log2 Pi, 0 where Pi represents the probability of gray value _i_ appearing in the image. Similar to the use of PSNR and SSIM to measure image quality, when using information entropy to assess the quality of image smoothing, it is important to pay attention not only to the decrease in information entropy, but also to the preservation of the major edges in the original image after smoothing, as the elimination of the edge structure that should have been preserved also results in a decrease in information entropy, and thus the same need to incorporate the visual image as a reference. We separately calculated the information entropy of the images, and the results are summarized in Table 1. The values in italics in the row corresponding to IEP indicate the minimum values in the row. Combining the smoothing results with the data in the table, it can be observed that our method significantly reduces the entropy of the image while effectively preserving the structural edges of the image. Conclusion To conclude, this paper propose an image smoothing method This method combine global gradient sparsity and local relative gradient to obtain more accurate image structure edges. On this basis, this method use the global optimization to smooth the image, avoiding the shortcomings of the local filtering method while retaining the weak edges. We demonstrate the effectiveness of our method for multiple texture styles. Our method does have some limitations. Compared to some classical methods, our method first decomposes the input image to accurately distinguish between texture and edge. This can achieve a satisfactory smoothing effect, but at the same time, it also increases the algorithm’s running time. The application scenario of our method lies in the pre-processing or post-processing process which does not have strong real-time requirements and has higher requirements for the results. Our work will continue to expand in two directions. Firstly, we aim to further improve the overall computational speed of our method to accommodate tasks with stricter timing requirements. Secondly, we plan to conduct research on parameter selection to enhance the generality of our method. Data availability The datasets used and analysed during the current study available from the corresponding author on reasonable request. Code availability The Matlab code of this method available from the corresponding author on reasonable request. Received: 19 January 2024; Accepted: 25 June 2024 References 1. Tomasi, C. & Manduchi, R. Bilateral filtering for gray and color images. In _Sixth International Conference on Computer Vision_ _(IEEE Cat. No. 98CH36271)_, 839–846 (IEEE, 1998). 2. Paris, S. & Durand, F. A fast approximation of the bilateral filter using a signal processing approach. In _Computer Vision–ECCV_ _2006: 9th European Conference on Computer Vision, Graz, Austria, May 7–13, 2006, Proceedings, Part IV 9_, 568–580 (Springer, 2006). 3. Yang, Q. Recursive bilateral filtering. In _Computer Vision–ECCV 2012: 12th European Conference on Computer Vision, Florence,_ _Italy, October 7–13, 2012, Proceedings, Part I 12_, 399–413 (Springer, 2012). 4. Cho, H., Lee, H., Kang, H. & Lee, S. Bilateral texture filtering. _ACM Trans. Gr._ 33, 1–8 (2014). 5. He, K., Sun, J. & Tang, X. Guided image filtering. _IEEE Trans. Pattern Anal. Mach. Intell._ 35, 1397–1409 (2012). 6. Zhang, Q., Shen, X., Xu, L. & Jia, J. Rolling guidance filter. In _Computer Vision–ECCV 2014: 13th European Conference, Zurich,_ _Switzerland, September 6–12, 2014, Proceedings, Part III 13_, 815–830 (Springer, 2014). 7. Ham, B., Cho, M. & Ponce, J. Robust image filtering using joint static and dynamic guidance. In _Proceedings of the IEEE Conference_ _on Computer Vision and Pattern Recognition_, 4823–4831 (2015). 8. Guo, X., Li, Y., Ma, J. & Ling, H. Mutually guided image filtering. _IEEE Trans. Pattern Anal. Mach. Intell._ 42, 694–707 (2020). 9. Subr, K., Soler, C. & Durand, F. Edge-preserving multiscale image decomposition based on local extrema. _ACM Trans. Gr._ 28, 1–9 (2009). 10. Buades, A., Le, T. M., Morel, J.-M. & Vese, L. A. Fast cartoon+ texture image filters. _IEEE Trans. Image Process._ 19, 1978–1986 (2010). 11. Bao, L., Song, Y., Yang, Q., Yuan, H. & Wang, G. Tree filtering: Efficient structure-preserving smoothing with a minimum spanning tree. _IEEE Trans. Image Process._ 23, 555–569 (2013). 12. Meyer, Y. _Oscillating patterns in image processing and nonlinear evolution equations: The fifteenth Dean Jacqueline B. Lewis memorial_ _lectures_, vol. 22 (American Mathematical Soc., 2001). 13. Xu, L., Lu, C., Xu, Y. & Jia, J. Image smoothing via l 0 gradient minimization. In _Proceedings of the 2011 SIGGRAPH Asia conference_, 1–12 (2011). 14. Bi, S., Han, X. & Yu, Y. An l 1 image transform for edge-preserving smoothing and scene-level intrinsic decomposition. _ACM_ _Trans. Gr._ 34, 1–12 (2015). 15. Xu, L., Yan, Q., Xia, Y. & Jia, J. Structure extraction from texture via relative total variation. _ACM Trans. Gr._ 31, 1–10 (2012). 16. Du, H., Jin, X. & Willis, P. J. Two-level joint local Laplacian texture filtering. _Vis. Comput._ 32, 1537–1548 (2016). 17. Zhou, Z., Wang, B. & Ma, J. Scale-aware edge-preserving image filtering via iterative global optimization. _IEEE Trans. Multimedia_ 20, 1392–1405 (2017). 18. Liu, W. _et al._ Embedding bilateral filter in least squares for efficient edge-preserving image smoothing. _IEEE Trans. Circuits Syst._ _Video Technol._ 30, 23–35 (2018). 19. Golshan, H. & Hasanzadeh, R. P. Fuzzy hysteresis smoothing: A new approach for image denoising. _IEEE Trans. Fuzzy Syst._ 29, 686–697 (2019). 20. Wang, H., Li, Y., Cen, Y. & He, Z. Multi-matrices low-rank decomposition with structural smoothness for image denoising. _IEEE_ _Trans. Circuits Syst. Video Technol._ 30, 349–361 (2019). 21. Liu, W. _et al._ Real-time image smoothing via iterative least squares. _ACM Trans. Gr._ 39, 1–24 (2020). 22. Liu, Y., Li, X., Zhang, X. & Zhang, C. Image enlargement method based on cubic surfaces with local features as constraints. _Signal_ _Process._ 166, 107266 (2020). 23. Liu, Y., Zhang, F., Zhang, Y., Li, X. & Zhang, C. Image smoothing based on histogram equalized content-aware patches and direction-constrained sparse gradients. _Signal Process._ 183, 108037 (2021). 24. Liu, C., Feng, Y., Yang, C., Wei, M. & Wang, J. Multi-scale selective image texture smoothing via intuitive single clicks. _Signal_ _Process. Image Commun._ 97, 116357 (2021). 25. Liu, J. _et al._ Single image super-resolution using feature adaptive learning and global structure sparsity. _Signal Process._ 188, 108184 (2021). 26. Liu, W. _et al._ A generalized framework for edge-preserving and structure-preserving image smoothing. _IEEE Trans. Pattern Anal._ _Mach. Intell._ 44, 6631–6648 (2021). 27. Sun, B., Qi, Y., Zhang, G. & Liu, Y. Edge guidance filtering for structure extraction. _Vis. Comput._ 39 (11), 5327–5342 (2023). 28. Liu, Y. _et al._ A stock series prediction model based on variational mode decomposition and dual-channel attention network. _Expert_ _Syst. Appl._ 238, 121708 (2024). 29. Huang, S. _et al._ Crosswavenet: A dual-channel network with deep cross-decomposition for long-term time series forecasting. _Expert Syst. Appl._ 238, 121642 (2024). 30. Liu, H., Xu, Y. & Chen, F. Sketch2photo: Synthesizing photo-realistic images from sketches via global contexts. _Eng. Appl. Artif._ _Intell._ 117, 105608 (2023). 31. Krizhevsky, A., Sutskever, I. & Hinton, G. E. Imagenet classification with deep convolutional neural networks. _Advances in neural_ _information processing systems_ 25 (2012). 32. Xu, L., Ren, J., Yan, Q., Liao, R. & Jia, J. Deep edge-aware filters. In _International Conference on Machine Learning_, 1669–1678 (PMLR, 2015). 33. Lu, K., You, S. & Barnes, N. Deep texture and structure aware filtering network for image smoothing. In _Proceedings of the European_ _Conference on Computer Vision (ECCV)_, 217–233 (2018). 34. Zhu, F., Liang, Z., Jia, X., Zhang, L. & Yu, Y. A benchmark for edge-preserving image smoothing. _IEEE Trans. Image Process._ 28, 3556–3570 (2019). 35. Zhu, H. & Huang, T. A novel deep quality-aware CNN for image edge smoothening. _Futur. Gener. Comput. Syst._ 113, 468–473 (2020). 36. Xu, J. _et al._ Pixel-level non-local image smoothing with objective evaluation. _IEEE Trans. Multimedia_ 23, 4065–4078 (2020). 37. Rudin, L. I., Osher, S. & Fatemi, E. Nonlinear total variation based noise removal algorithms. _Physica D_ 60, 259–268 (1992). 38. Ma, G.-H., Zhang, M.-L., Li, X.-M. & Zhang, C.-M. Image smoothing based on image decomposition and sparse high frequency gradient. _J. Comput. Sci. Technol._ 33, 502–510 (2018). Author contributions S.L. conducted experiments, wrote the main manuscript text and prepared all figures. Y.L. contributed to writing of the text and Figs. 2 and 4. All authors reviewed the manuscript. Funding This research was supported by the National Natural Science Foundation of China (62002200, 62202268, 62272281, 62341605); Shandong Provincial Natural Science Foundation (ZR2020QF012, ZR2021QF134, ZR2022QG015, ZR2023MF084). Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to Y.L. Reprints and permissions information is available at www.nature.com/reprints. Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from [the copyright holder. To view a copy of this licence, visit http://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 60문단 · 29,771자

(제목 없음)

1Removing texture while preserving the main structure of an image is a challenging task.To address this, this paper propose an image smoothing method based on global gradient sparsity and local relative gradient constraints optimization.To reduce the interference of complex texture details, adopting a multi-directional difference constrained global gradient sparsity decomposition method, which provides a guidance image with weaker texture detail gradients.Meanwhile, using the luminance channel as a reference, edge-aware operator is constructed based on local gradient constraints.This operator weakens the gradients of repetitive and similar texture details, enabling it to obtain more accurate structural information for guiding global optimization of the image.By projecting multi-directional differences onto the horizontal and vertical directions, a mapping from multi-directional differences to bi-directional gradients is achieved.Additionally, to ensure the consistency of measurement results, a multi-directional gradient normalization method is designed.Through experiments, we demonstrate that our method exhibits significant advantages in preserving image edges compared to current advanced smoothing methods.Natural images typically encompass intricate texture details.The human visual system adeptly mitigates the influence of textures, prioritizing the extraction of crucial structural edge information from images for rapid comprehension.Similarly, the objective of image smoothing research is to attenuate texture details while retaining image structure edges to the greatest extent feasible.Smoothing constitutes a pivotal component in numerous image processing techniques, including image structure extraction, edge enhancement, and image recognition.Furthermore, the textures can be repurposed, for instance, in applications like image detail enhancement.Presently, diverse methods exist for achieving image smoothing.Based on distinct approaches to texture removal, image smoothing methods can be categorized into local filtering methods, global optimization methods, and deep learning methods.Local filtering methods typically utilize sliding window techniques to achieve smoothing by recalculating the central pixel value of the window using the positional and value relationships among pixels within a local spatial neighborhood.Mean filtering accomplishes smoothing by substituting the central pixel with the average of the pixels in the local region.Although this method is straightforward, it often yields blurred edges in the smoothed image and escalates computational complexity with larger filter windows.Gaussian filtering enhances mean filtering by assigning varying weights to pixels in the filter window based on their distance from the central pixel and a Gaussian function equation.Pixels closer to the central pixel carry higher weights, while those farther away bear lower weights.Nonetheless, directly applying Gaussian filtering to images can also induce blurring of structural edges because Gaussian filtering treats all pixels in the image uniformly without discerning between structure and texture.Bilateral filtering 1-4 advances Gaussian filtering by incorporating both pixel value disparities and spatial offset distances between the central pixel and its neighboring pixels to determine filter weights.This methodology enables the preservation of edges while smoothing the image.However, images frequently contain pronounced gradient texture information, and solely incorporating pixel value domain variation may struggle to effectively

2leads to the texture in region where strong gradient textures and edges cross is preserved as a structural edge, and jagged edges of the generated image, the red square in Fig. 1b. Figure 1c shows the result after smoothing using the HCDG method 23 .In this method, the image is divided into different regions according to the density of structural edge and texture detail in the image, different regions are processed separately, and then, smooth the overall image.As shown in Fig. 1c, the advantage of this is that the interference of the strong gradient texture on the whole image can be avoided, so that more structural edges with smaller gradients can be retained.The disadvantage is that when the texture of different regions in the image is quite different, there are some seams in the smoothed image due to the inconsistent smoothness of the method for different regions, shown in green square in Fig. 1c.

3To address these issues, this paper proposes a smoothing method based on global gradient sparsity and relative gradient constraint optimization.The method is built upon texture gradient suppression for global optimization smoothing, utilizing the L 2 norm as a regularization constraint.The L 2 norm of an image can be understood as the square root of the sum of squares of all pixels in the image.The L 2 norm possesses favorable mathematical properties such as differentiability, which facilitates solving optimization problems with the L 2 norm as a regularization term, often leading to global or near-global optimal solutions.Additionally, the L 2 norm preserves more image details and avoids producing step-like color transitions, as seen with the L 0 norm.This motivates the use of the L 2 norm as a regularization to constrain image optimization.This paper's approach adopts a multi-directional difference constraint global gradient sparsity decomposition method, which obtains a smoothing component with weaker texture detail gradients through gradient sparsity.Meanwhile, it constructs an edge-aware operator using the gradient of the input image's luminance channel as a reference.Compared to the aforementioned methods, this operator can more accurately capture image structural information, leading to excellent smoothing effects when employed as a constraint for guiding global image optimization.The main innovations are as follows:

41.By employing global image gradient sparse techniques, we diminish the high-frequency texture gradients in the image to obtain its smooth component.2. Utilizing the log-luminance channel of the image combined with its smooth component to capture the structural weight of the image.3. Designing a mapping relationship that incorporates multi-directional differences into two-directional gradient components.4. Through the utilization of pixel structural weights to guide image optimization, suppressing pixel gradients in texture regions, thereby achieving the objective of smoothing the image.

Methods

5The method's flowchart is illustrated in Fig. 2. Firstly, this method specifies the input image to obtain its smoothing component, denoted as I s .I n represents the texture gradient removed from the image through gradient sparsity, which can be obtained by pixel-wise subtraction of I and I s .Then, it calculates the luminance channel of both the input image and its smoothing component.Based on these two luminance channels, the horizontal and vertical structural weights of the image can be computed.In regions of the input image characterized by edges, corresponding weights are smaller; conversely, in texture regions, weights are larger.Utilizing this information, we formulate a global optimization energy equation aimed at suppressing pixel gradients in texture regions, thereby achieving the objective of image smoothing.The subsequent sections of this chapter will systematically present our approach.

Image gradient sparsity

6The texture patches in the image exhibit similar and repetitive features.Utilizing gradient sparsity can remove the pixel gradient of the texture regions with high frequency while preserving the pixel gradient of the edge regions with low frequency as much as possible.The image after gradient sparsity is referred as the smooth component of the image.Therefore, it can be considered that the image I consists of two parts, can be expressed as:

7where I s represents the smooth component of the image, and I n corresponds to the texture gradients that has been removed.I s can be solved using multi-directional difference constraints, denoted as:

8where g σ represents a mean filter of size σ where all its values equal to 1.The smaller the value of σ , the sparser the resulting gradient, the symbol (/) represents the deconvolution operation, β is the weight parameter used to control the smoothness of I s , as the value of β increases, the gradient matrix becomes sparser, leading to a smoother outcome.The regularization term

9consists of the first differences in 0 • , 45 • , 90 • and 135 • direc- tions, which are {∂ x , ∂ x+y , ∂ y , ∂ y−x } .Let's set I s /g σ = I l , then I s = g σ ⊗ I l , symbol ⊗ represents the convolution operation.Eq. ( 2)can be converted to the solution for I l :

10Applying the matrix derivative formula to the above expression and setting it to zero yields: by rearranging terms, I l represents as: Given I s /g σ = I l , we can solve for I s .In order to speed up the operation, this paper use the Fast Fourier Transform (FFT) to accelerate it, which is expressed as:

11where F (•) represents the FFT, F −1 (•) represents the inverse FFT, * denotes a complex conjugate operation, division •

12• is element-wise, ∂ d represents the difference operator in the d direction, the difference operators cor- responding to {x, x + y, y, y − x} are {{1, −1}, {0, 1; −1, 0}, {1; −1}, {1, 0; 0, −1}}.

Log-luminance channel of the image

13Many smoothing methods utilize the pixel means of the RGB channels as the image luminance.This paper opts for the luminance channel (V) in the HSV color space for the following reasons: Firstly, the V channel directly reflects the brightness level of the image, providing a more intuitive representation of the luminance information.Secondly, the V channel is color-independent, thus exhibiting higher stability and immunity to variations across different color channels.Moreover, the V channel facilitates a clearer distinction between luminance and color, enhancing effectiveness in image processing tasks.Lastly, the V channel demonstrates greater adaptability, (1) www.nature.com/scientificreports/effectively handling variations in illumination across different scenes.Therefore, employing the V channel as luminance contributes to improving the effectiveness and stability of image processing.

14In the HSV color space, the V channel is used to represent the brightness information of the image.If we denote the pixel values of the three channels in the RGB space as R, G, and B, then the pixel values in the V channel can be calculated as follows:

15where I is the input image, p denote each pixel.

16Human perception of brightness is nonlinear, meaning that adding the same amount of light does not result in the same perceived increase in brightness.Therefore, to better represent changes in brightness, a logarithmic transformation can be used to map linear brightness changes into a nonlinear space.Logarithmic transformation ensures a more uniform distribution of brightness changes across the entire brightness range, resulting in more visually consistent brightness variations.Additionally, logarithmic transformation amplifies smaller brightness changes, thereby enhancing details in low-brightness areas of the image and reducing discontinuities in brightness changes caused by noise.This approach improves image contrast and visual quality.performing a logarithmic transformation on the V channel, the log-luminance channel of I can be represented as:

17Where the constant 1 is introduced to prevent the presence of zero values in the input data, ensuring the transform function is defined across its entire domain.The parameter k is the contrast adjustment parameter, controlling the slope of the logarithmic transformation.A larger value of k results in a steeper slope of the logarithmic transformation, leading to more pronounced brightness changes and increased image contrast.Conversely, a smaller value of k yields a gentler slope of the logarithmic transformation, resulting in smoother brightness changes and reduced image contrast.

Edge-aware operator

18First, we simulate pixel gradients using multi-directional differences.As shown in Fig. 3, we abstract the pixels in the green and red regions of the image Fig. 3a into matrix representation, Fig. 3b.The gray and white colors in the matrix represent two different pixel values.We first calculate the differences in four directions: x, x + y, y and y − x .In the figure, blue and orange colors represent these differences.Since the y − x difference is 0 in green box, it is not shown in the figure, but its principle is the same as the x + y difference, shown in the red box.Then, projecting the x + y difference (orange line) onto the x and y directions (blue lines), respectively.Finally, using the sum of the x and y direction vectors to simulate the gradient of that pixel.

19Taking the horizontal direction as an example, a similar approach can be applied to the vertical direction as well.The horizontal gradient component of image I can be represented as: where x represents the horizontal direction, y represents the vertical direction, and the division is performed to ensure that the result is in the same range as the result obtained by directly using the difference in the x direction.Similarly, the vertical gradient component can be expressed as: www.nature.com/scientificreports/

20The edge-aware operator can be expressed as:

21where I s represents the smoothed component of I after gradient sparsity, L(I s ) is its log-luminance channel.L(I) represents the log-luminance channel of I, ∇ d represents the gradient component of the image in the d direc- tion, ε is a very small value introduced to prevent division by zero, the division and multiplication operation is performed element-wise.This operator is capable of accurately recognizing the edge structures in the input image and serves as weight parameters to guide optimization.The flowchart is shown in Fig. 4.

22After obtaining ∇ d L(I s ) • ∇ d L(I) , it needs to be inverted.To prevent division by zero, a small constant ε is added to it.Besides its role in preventing division by zero, ε also impacts the sharpness of the final smoothed image.

The scheme of global optimization

23Our method is based on the idea of gradient suppression, which can obtain the smooth effect by limiting the gradient of the pixels in the non-edge region of the image.This method achieve smoothing by minimizing our energy equation, which can be expressed as follows:

24This equation is divided into two parts, fidelity term �S − I� p represents each pixel.The fidelity term measures the similarity between an input image I and a smoothed output image S by computing the difference between the pixels in the two images.ω(I) is the edge-aware operator we designed.The parameter serves as the global smoothing parameter, controlling the balance between the two components of the equation.When the is small, the fidelity term will get a large weight in minimizing this energy equation, which forces the output image S to be more similar to the input image I. Conversely, when the is large, the constraint term gets more weight and the output image will be smoother.It is worth noting that we express Eq. ( 12) in pixels for the sake of understanding the principle of image smoothing.However, in practical calculations, we perform computations on a image basis for ease of operation and to improve computational speed.

25(10) www.nature.com/scientificreports/Algorithm 1. Smooth method Based on the previous description, I s (I) and L(I) can be solved using Eqs. ( 6 and ( 8).Then, w x and w y can be solved using Eq.(11).Therefore, Eq. ( 12) can be represented as follows:

26where the operation (•) denotes matrix element-wise multiplication.

27Like many other methods, our method also requires multiple iterations to obtain the satisfactory result.Here is our iterative scheme, rewritten in matrix form: where S t−1 is input image, S t is output image, v S t−1 and v S t denote their respective vector representations.t is an integer greater than or equal to 1, S 0 = I , T represents the matrix transpose operation, W x and W y are diagonal matrices that incorporate the edge-aware operators ω x and ω y , C x and C y are the Toeplitz matrices from the discrete gradient operators with forward difference.The vector v S t that minimizes Eq. ( 14) is uniquely defined as the solution of the linear system, Taking the derivative of Eq. ( 14) with respect to v S t and setting the result to zero, represent as follows:

28where 1 is an identity matrix and C T x W x C x + C T y W y C y is the weight matrix computed based on the input image

29is the symmetric positive definite Laplacian matrix.The optimized result is used as the input for subsequent calculations, leading to satisfactory smoothing effects after multiple iterations.The complete algorithm flow is summarized in Algorithm 1.

Result and discussion

30In order to prove the effectiveness of our method, we conducted comparative experiments with the following methods.Global optimization methods are TV 37 , RTV 15 , DSG 38 , ILS 21 , muGIF 8 , and HCDG 23 , deep learning method are VDCNN 34 and ResNet 34 .These methods have gained widespread recognition in the field of image smoothing, representing the direction of development in image smooth area.

Ablation experiment

31To demonstrate the superiority of our method in edge detection, we compared the gradients of the smoothed component after sparsifying image gradients with those of the original image.Compared to previous methods such as TV method, our approach overcomes interference from strong gradient textures, thus emphasizing the prominent structural edges in the image.

32We perform gradient sparsity on image I with parameter β = 150, σ = 4 , as shown in Fig. 5. Where, Fig. 5a represents the input image I, while Fig. 5b represents the smooth component of I. Figure 5c represents the highfrequency texture gradient information that has been removed.By comparing the gradient images of I and I s , i.e.Fig. 5d and e, it is evident that I s can better highlight the structural information in the image.For example, in the green box region, it is difficult to discern the boundary area of the harp strings in Fig. 5d, but it is clearly visible in Fig. 5e.

Texture Images with artificial blending

33In order to verify that our method can preserve the edges of the image as much as possible while removing the textures.We conduct experiments using the Nankai Smoothing (NKS) dataset proposed by Xu et al. 36 .The author selected 20 highly realistic vector images from thousands of vector images containing free structures.For example, the images depicted in Fig. 6a.Additionally, 10 natural texture images were chosen such as Fig. 6b.

34These two sets were blended according to a structural ratio ranging from 0.7 to 0.85, resulting in visually natural texture-structure composite images, Fig. 6c.Compared to other image smoothing datasets, NKS comes with a ground truth.As the ground truth are smooth images, it becomes easier to identify structural edges, making it possible for the smoothed images to closely match the ground truth without texture residue.Therefore, the better the edge-preserving smoothing effect, the closer the structural edges of the smoothed images align with the ground truth.

35As shown in Figs. 7, 8, we picked two images , Figs. 7a and 8a, with texture from the NKS.Through experiments we found that the comparison methods selected have excellent texture removal effects, but there are some problems with edge preservation.The TV method removes some fine structural edges, such as the beach chair in Fig. 7b and the creases on the ground in Fig. 8b.RTV method, Figs.7c and 8c, removed part of the edges exist in ground truth, such as the edges of the cloud in Fig. 7c and the shadow of the beach in Fig. 8c.The images, Figs.7d and 8d, smoothed by method DSG also has a loss of details compared with ground truth.The image smoothed by ILS method removed many structure edges, as shown in Figs.7e and 8e.muGIF method , Figs. 7f and 8f, has the same problem, the image smoothed by muGIF removed many edges of the cloud and white stripes of the beach chair in in Fig. 7f.HCDG method, Figs.7g and 8g lose a lot of structural edge information.Our method can still preserve complete edge details after removing artificially added textures, as shown in Figs.7h and 8h, edges of the clouds and white streaks of the beach chair in Fig. 7h and shadow of the beach in Fig. 8h have been preserved.

Images with strong gradient textures

36In this subsection, we will verify the texture removal ability of our method.The images we selected in this subsection contain a lot of strong gradient textures, as shown in Figs. 9, 10, 11 and 12, These strong gradient textures are very similar to the image structure edges, which tests the method's ability to recognize the image structure edges.

37The smoothed images, Figs.9b and 10b, by TV method removed most of the texture, but the smoothed image has color cast compared with the input image, such as the harp strings in Fig. 9b.As shown in Figs.9c and 10c, the smoothed image by RTV method not only removes the texture but also removes some weak gradient edges, such as the overlap region between the harp and the harp strings in Fig. 9c and the eye of the little fish in Fig. 10c.The image, Fig. 9c, smoothed by DSG method preserved the weak gradient edge, but the structural edges are not sharp enough and some textures remains.In Fig. 10d, the DSG method still fails to preserve the eye contour of the little fish.ILS method needs to use small scale Gaussian filter to pre-smooth the image with strong gradient texture, which will undoubtedly reduce the gradient of the structural edges.As shown in Fig. 9e and 10e, the edges of the processed image will be blurred and have color difference.The problem with the muGIF method is that it can't accurately distinguish between image structure edges and strong gradient textures, as shown in Fig. 9f, some structural edges in the overlap region between the harp and harp strings are removed, while some texture remains on the walls, in Fig. 10f, this method preserved the eye contour of the little fish, and there is still more textures in the blue water.The HCDG method, Figs.9g and 10g, has a better performance, however, in the smoothed image, Figure 9(g), there is texture remaining and the eye contour of the fish is blurred.As shown in Figs.9h and 10h, our method has ability to remove most texture, only a few texture remains, and on this basis, our method can preserve most of the structural edges.In Figs.11 and 12, our method effectively removes the texture from the images while preserving weak gradient edges and small-scale structural edges in the smoothed images.For example, the teeth of the fish in Fig. 11h and the facial features of the pumpkin in Fig. 12h are retained.We have zoomed in on these areas for ease of observation.

Comparison with deep learning methods

38In this section, we compare our method with deep learning methods, specifically ResNet 34 and VDCNN 34 .We retrain the models based on their papers and fine-tune the hyper parameters according to the actual performance of the models.The experimental results are presented in Figs. 13 and 14.From Fig. 13, it is evident that both the ResNet model and the VDCNN model, Figs.13b and c, fail to smooth out the yellow flower center.While our method effectively smooths the flower center, it also preserves weak edges in the image, such as the overlapping edges of the petals.In Fig. 14, the results of the ResNet model and VDCNN model both exhibit color shifts, as shown in Fig. 14b and c respectively.Compared to the input image, there is a noticeable increase in brightness in their outputs.The results produced by deep learning methods are uncontrollable, and thus, this issue cannot be addressed by adjusting hyper parameters.Our method generates more stable results, as shown in Fig. 14d, where the smoothed result closely matches the input image in terms of color.Additionally, the texture pattern on the vase is preserved during smoothing, demonstrating excellent smoothing results.

Numerical verification

39To further validate the effectiveness of our method, we conducted an analysis of the experimental results using Structural Similarity (SSIM), Peak Signal-to-Noise Ratio (PSNR), and Information Entropy (IEP).PSNR and SSIM are commonly used in papers related to image enlargement and denoising, they can measure the similarity between two images from different perspectives.Unlike these image processing techniques, image smoothing lack a ground truth for comparison.Therefore, in most articles, people compare textured input images with smoothed images.However, the problem is that if some texture that should have been removed is still present, this can similarly lead to an increase in PSNR and SSIM, and therefore needs to be combined with a visual image as a reference.In the case where the visual texture is completely obliterated, a higher PSNR and SSIM means that the image retains a more complete edge structure.We calculated the PSNR and SSIM values between the input images and the smoothed images, and the results are summarized in Table 1.In the rows corresponding to SSIM and PSNR, the values in bold represent the maximum values in each row.From the Table 1, it can be seen that our method performs excellently in most cases.www.nature.com/scientificreports/

40The information entropy of an image reflects the complexity and uncertainty of information within the image.For similar images, a lower information entropy typically indicates that the information in the image is more concentrated and straightforward.The formula for calculating IEP is as follows:

41where P i represents the probability of gray value i appearing in the image.Similar to the use of PSNR and SSIM to measure image quality, when using information entropy to assess the quality of image smoothing, it is important to pay attention not only to the decrease in information entropy, but also to the preservation of the major edges in the original image after smoothing, as the elimination of the edge structure that should have been preserved also results in a decrease in information entropy, and thus the same need to incorporate the visual image as a reference.We separately calculated the information entropy of the images, and the results are summarized in Table 1.The values in italics in the row corresponding to IEP indicate the minimum values in the row.Combining the smoothing results with the data in the table, it can be observed that our method significantly reduces the entropy of the image while effectively preserving the structural edges of the image.

Conclusion

42To conclude, this paper propose an image smoothing method This method combine global gradient sparsity and local relative gradient to obtain more accurate image structure edges.On this basis, this method use the global optimization to smooth the image, avoiding the shortcomings of the local filtering method while retaining the weak edges.We demonstrate the effectiveness of our method for multiple texture styles.

43Our method does have some limitations.Compared to some classical methods, our method first decomposes the input image to accurately distinguish between texture and edge.This can achieve a satisfactory smoothing effect, but at the same time, it also increases the algorithm's running time.The application scenario of our method lies in the pre-processing or post-processing process which does not have strong real-time requirements and has higher requirements for the results.

44Our work will continue to expand in two directions.Firstly, we aim to further improve the overall computational speed of our method to accommodate tasks with stricter timing requirements.Secondly, we plan to conduct research on parameter selection to enhance the generality of our method.(

Figure 1 .

45Figure 1.Comparison of advantages and disadvantages of different methods.

Figure 2 .

46Figure 2. Flowchart of our method.

( 9 )Figure 3 .

47Figure 3. Multi-directional differential simulation of gradients.(a) Input.(b) Pixel gradient calculation.

2 p

482 2 and constraint term ω x,p (I) ∂S ∂x + ω y,p (I) ∂S ∂y 2 p .

I) ∂S ∂x 2 p 2 pFigure 4 .

49Figure 4. Flowchart of edge-aware, L(I) and L(I s ) are the log-luminance channels of the input image and its smooth component, respectively.

Figure 5 .

50Figure 5. Gradient sparsity.(a) I. (b) Is.(c) In.(d) gradient of I. (e) gradient of Is.

Figure 6 .

51Figure 6.(a) Smooth vector images from NKS 36 .(b) Texture images from NKS 36 .(c) Artificially blended texture-structure images from NKS 36 .

Figure 7 .

52Figure 7. (a) Input image from NKS 36 ; (b) TV ( = 0.2 ; (c) RTV ( = 0.004, σ = 3 ); (d) DSG ( = 0.008, k = 50 ); (e) ILS ( = 8, γ = 6/255 ) (f) muGIF ( = 0.015 ); (g) HCDG( d = 38, = 0.08 ); (h) ours ( β = 100, g = 4, = 0.005).

Figure 8 .

53Figure 8.(a) Input image from NKS 36 ; (b) TV ( = 0.15 ); (c) RTV ( = 0.002, σ = 3 ); (d) DSG ( = 0.005, k = 50 ); (e) ILS ( = 10, γ = 5/255 ) (f) muGIF ( = 0.005 ); (g) HCDG ( d = 38, = 0.05 ); (h) ours ( β = 100, g = 4, = 0.0015).

Figure 9 .

54Figure 9. (a) Input; (b) TV ( = 0.4 ); (c) RTV ( = 0.015, σ = 3 ); (d) DSG ( = 0.015, k = 50 ); (e) ILS ( = 10, γ = 4/255 ) (f) muGIF ( = 0.04 ); (g) HCDG ( d = 38 = 0.04 ); (h) ours ( β = 200 g = 4, = 0.015).

Figure 10 .

55Figure 10.(a) Input; (b) TV ( = 0.5 ); (c) RTV ( = 0.02, σ = 5 ); (d) DSG ( = 0.03, k = 200 ); (e) ILS ( = 10, γ = 4/255 ) (f) muGIF ( = 0.08 ); (g) HCDG ( d = 55, = 0.2 ); (h) ours(β = 200, g = 5, = 0.03 ).

Figure 11 .

56Figure 11.(a) Input; (b) TV ( = 0.2 ); (c) RTV( = 0.015, σ = 3 ); (d) DSG ( = 0.01, k = 100 ); (e) ILS ( = 5, γ = 4/255 ) (f) muGIF ( = 0.02 ); (g) HCDG ( d = 38, = 0.03 ); (h) ours ( β = 30, g = 4, = 0.015).

Figure 12 .

57Figure 12.(a) Input; (b) TV ( = 0.35 ); (c) RTV ( = 0.02, σ = 3 ); (d) DSG ( = 0.015, k = 200 ); (e) ILS ( = 10, γ = 8/255 ) (f) muGIF ( = 0.02 ); (g) HCDG ( d = 38, = 0.1 ); (h) ours ( β = 160, g = 4, = 0.015).

Figure 13 .

58Figure 13.(a) Input; (b) ResNet; (c) VDCNN; (d) ours ( β = 150, g = 5, = 0.005).

Figure 14 .

59Figure 14.(a) Input; (b) ResNet; (c) VDCNN; (d) ours ( β = 150, g = 5, = 0.001).

Table 1 .

60PSNR, SSIM and IEP compare.

참고문헌 37건

  1. Recursive Bilateral Filtering Lecture notes in computer science · Springer Science+Business Media · 2012 10.1007/978-3-642-33718-5_29
  2. Oscillating Patterns in Image Processing and Nonlinear Evolution Equations University lecture series · American Mathematical Society · 2001 10.1090/ulect/022
  3. A Fast Approximation of the Bilateral Filter Using a Signal Processing Approach Lecture notes in computer science · Springer Science+Business Media · 2006 10.1007/11744085_44
  4. Robust image filtering using joint static and dynamic guidance 2015 10.1109/cvpr.2015.7299115
  5. Two-level joint local laplacian texture filtering The Visual Computer · Springer Science+Business Media · 2015 10.1007/s00371-015-1138-3
  6. Advances in neural information processing systems 7 Neurocomputing · Elsevier BV · 1997 10.1016/s0925-2312(97)90018-7
  7. Tree Filtering: Efficient Structure-Preserving Smoothing With a Minimum Spanning Tree IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2013 10.1109/tip.2013.2291328
  8. Edge-preserving multiscale image decomposition based on local extrema ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1618452.1618493
  9. An <i>L</i> <sub>1</sub> image transform for edge-preserving smoothing and scene-level intrinsic decomposition ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766946
  10. Bilateral filtering for gray and color images 2002 10.1109/iccv.1998.710815
  11. Nonlinear total variation based noise removal algorithms Physica D Nonlinear Phenomena · Elsevier BV · 1992 10.1016/0167-2789(92)90242-f
  12. Bilateral texture filtering ACM Transactions on Graphics · Association for Computing Machinery · 2014 10.1145/2601097.2601188
  13. Fast Cartoon + Texture Image Filters IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2010 10.1109/tip.2010.2046605
  14. Guided Image Filtering IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2012 10.1109/tpami.2012.213
  15. Rolling Guidance Filter Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-10578-9_53
  16. Scale-Aware Edge-Preserving Image Filtering via Iterative Global Optimization IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2017 10.1109/tmm.2017.2772438
  17. Deep Texture and Structure Aware Filtering Network for Image Smoothing Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-030-01225-0_14
  18. Image Smoothing Based on Image Decomposition and Sparse High Frequency Gradient Journal of Computer Science and Technology · Springer Science+Business Media · 2018 10.1007/s11390-018-1834-3
  19. Mutually Guided Image Filtering IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2018 10.1109/tpami.2018.2883553
  20. Embedding Bilateral Filter in Least Squares for Efficient Edge-Preserving Image Smoothing IEEE Transactions on Circuits and Systems for Video Technology · Institute of Electrical and Electronics Engineers · 2018 10.1109/tcsvt.2018.2890202
  21. Multi-Matrices Low-Rank Decomposition With Structural Smoothness for Image Denoising IEEE Transactions on Circuits and Systems for Video Technology · Institute of Electrical and Electronics Engineers · 2019 10.1109/tcsvt.2019.2890880
  22. A Benchmark for Edge-Preserving Image Smoothing IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2908778
  23. Image enlargement method based on cubic surfaces with local features as constraints Signal Processing · Elsevier BV · 2019 10.1016/j.sigpro.2019.107266
  24. Image smoothing via <i>L</i> <sub>0</sub> gradient minimization ACM Transactions on Graphics · Association for Computing Machinery · 2011 10.1145/2070781.2024208
  25. Fuzzy Hysteresis Smoothing: A New Approach for Image Denoising IEEE Transactions on Fuzzy Systems · Institute of Electrical and Electronics Engineers · 2019 10.1109/tfuzz.2019.2961336
  26. Real-time Image Smoothing via Iterative Least Squares ACM Transactions on Graphics · Association for Computing Machinery · 2020 10.1145/3388887
  27. A novel deep quality-aware CNN for image edge smoothening Future Generation Computer Systems · Elsevier BV · 2020 10.1016/j.future.2020.07.019
  28. Pixel-Level Non-local Image Smoothing With Objective Evaluation IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2020 10.1109/tmm.2020.3037535
  29. A Benchmark for Edge-Preserving Image Smoothing IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2019 10.1109/tip.2019.2908778
  30. Image smoothing based on histogram equalized content-aware patches and direction-constrained sparse gradients Signal Processing · Elsevier BV · 2021 10.1016/j.sigpro.2021.108037
  31. Single image super-resolution using feature adaptive learning and global structure sparsity Signal Processing · Elsevier BV · 2021 10.1016/j.sigpro.2021.108184
  32. Multi-scale selective image texture smoothing via intuitive single clicks Signal Processing Image Communication · Elsevier BV · 2021 10.1016/j.image.2021.116357
  33. A Generalized Framework for Edge-Preserving and Structure-Preserving Image Smoothing IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2021 10.1109/tpami.2021.3097891
  34. Edge guidance filtering for structure extraction The Visual Computer · Springer Science+Business Media · 2022 10.1007/s00371-022-02662-4
  35. Sketch2Photo: Synthesizing photo-realistic images from sketches via global contexts Engineering Applications of Artificial Intelligence · Elsevier BV · 2022 10.1016/j.engappai.2022.105608
  36. A stock series prediction model based on variational mode decomposition and dual-channel attention network Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.121708
  37. CrossWaveNet: A dual-channel network with deep cross-decomposition for Long-term Time Series Forecasting Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.121642