Unsharp Masking Algorithms

Unsharp Masking

  • Process flow:
2759738-dd2a2d642dc94fe2.png

It is simply the input image Laplacian filter (high pass filter) to obtain a high-frequency signal, and to some extent to the original signal obtained by adding the corrected result. Is the result of high-frequency signal thus processed original image is highlighted.

The image frequency signal is typically a Gaussian filter (low pass filter) may be obtained by subtracting the original image. The following is a sample processing:

2759738-26fff2703b19112c.png

It can be seen that the edge (high frequency signal) is enhanced in FIG highlighted.

  • Formula expression:


    2759738-a83abb4ffe83e4ff.png

Which x(n, m)means that the input image, i.e. the image to be corrected; y(n, m)refers to an output image, i.e. corrected image; z(n, m)refers to a correction signal; λis a positive number of the scaling factor.

z(n, m) You can be obtained by the following formula:

2759738-45cc5d5d7ef7a661.png

Adaptive Unsharp Masking

  • Process flow:
2759738-2e724c0f31d055c2.png

On the lower half of FIG flow can be seen to provide a two bilateral filtering operation, respectively horizontal and vertical directions:

2759738-9847a4bb9700b7ff.png

Corresponding output y(n, m)can be expressed as:

2759738-53c767ff3634d20f.png

Where λx(n, m)and λy(n, m)are respectively corresponding to the scaling factor signal.

Goal is to use an adaptive algorithm recursively update these parameters, can enhance the image region smooth little or no enhancement, the contrast medium to enhance the maximum area, and large area contrast is enhanced only moderately.

The following represented by a vector scaling factor and the correlation signal:

2759738-e3f372622e4401e1.png
2759738-98a42996852b6c1d.png

Corresponding output can be expressed as:

2759738-bbd0f3076bb74406.png
  • Cost Function:

For ease of implementation and analysis traceability of adaptive filters, we define a method of measuring local dynamic image (local dynamics) using a simple linear high pass filter g()output, supports 3×3pixel, as shown in FIG.

2759738-a81e213733e1b775.png

Choosing linear operator g()rather than the other metrics, such as the local variance, because the operator using the adaptive algorithm is relatively simple to produce.

Whole metric equation is as follows:

2759738-7526b6ac47bff8a4.png

Algorithm using Gauss-Newton adaptive algorithm to reduce the local dynamic and desired by g()the error between the local dynamic obtained.

First, based on the activity level of the image measured (activity level), each of the pixels of the input image divided into three categories a, the activity level is calculated on a given block of 3 × 3 pixel local variance :

2759738-9907abb60e399afc.png

After one refers to the average luminance level.

Based on this basic principle, define the required level of activity in the output image is:

2759738-d86ecd9d38557be5.png
2759738-df750f911b6f0c39.png

Finally, the cost function is:

2759738-a9ab85d6d3eecf13.png

Reproduced in: https: //www.jianshu.com/p/604eae9d78be

Guess you like

Origin blog.csdn.net/weixin_34408717/article/details/91259798