CN113628118B - Method for denoising and filtering in flat area - Google Patents
Method for denoising and filtering in flat area Download PDFInfo
- Publication number
- CN113628118B CN113628118B CN202010371888.5A CN202010371888A CN113628118B CN 113628118 B CN113628118 B CN 113628118B CN 202010371888 A CN202010371888 A CN 202010371888A CN 113628118 B CN113628118 B CN 113628118B
- Authority
- CN
- China
- Prior art keywords
- filtering
- gray
- probability
- small probability
- denoising
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001914 filtration Methods 0.000 title claims abstract description 53
- 238000000034 method Methods 0.000 title claims abstract description 21
- 239000011159 matrix material Substances 0.000 claims abstract description 10
- 230000008030 elimination Effects 0.000 claims abstract description 5
- 238000003379 elimination reaction Methods 0.000 claims abstract description 5
- 230000009466 transformation Effects 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 3
- 230000009286 beneficial effect Effects 0.000 description 4
- 230000008859 change Effects 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 238000013139 quantization Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20024—Filtering details
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20076—Probabilistic image processing
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
- Image Processing (AREA)
Abstract
The application provides a flat area denoising filtering method, which comprises the following steps: s1, determining a block to be filtered, wherein the following two conditions are required to be met: 1) The number of the gray values is 2, and the difference between the two gray values is 1; 2) One gray value number is larger than a set threshold value, and the other gray value number is smaller than the set threshold value, which are respectively called a large probability gray b and a small probability gray s; s2, denoising and filtering: s2.1, when the pixel point distance is set to be 1, calculating a gray level co-occurrence matrix of the block to be filtered, judging the distribution condition of small probability gray levels, wherein the smaller the number of adjacent small probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small probability points are; otherwise, the thicker the texture of the small probability point is; reducing the filtering strength for the small probability gray scale blocks of the coarse texture; increasing the filtering intensity for the discrete small probability gray scale blocks; s2.2, blurring or elimination of coarse textures is reduced. The method filters strong noise in a flat area, reduces the information quantity of prediction residual errors, and further reduces the consumption of code streams on noise.
Description
Technical Field
The application relates to the technical field of images, in particular to a flat area denoising filtering method.
Background
And image filtering, namely suppressing noise of the target image under the condition of retaining the detail characteristics of the image as much as possible. Most filtering algorithms are smooth filtering, i.e. low frequency enhanced spatial filtering techniques. The smoothing filtering algorithm generally adopts a window containing weighting coefficients as a filter, and the window is moved to each pixel point of the image, and the filtered pixel value is obtained through a weighting calculation method.
However, the defects in the prior art are that: the small probability points in the block to be filtered are uneven factors, which are unfavorable for predicting the concentration of energy after transformation. In addition, the smoothing filter algorithm has the problems of large calculated amount, more change of image pixel values, blurred image detail edges and the like, and is not suitable for real-time encoding and subjective viewing of images.
Furthermore, the common terminology in the prior art is as follows:
gray level co-occurrence matrix: a common method for describing textures by researching gray space correlation characteristics is that the textures are formed by repeatedly appearing gray distribution at space positions, so that a certain gray relation exists between two pixels which are separated by a certain distance in an image space. If the image is made up of blocks of pixels with similar gray values, the diagonal elements of the gray co-occurrence matrix will have relatively large values; if the gray values of the pixels of the image vary locally, then the elements that deviate from the diagonal will have a relatively large value.
Disclosure of Invention
In order to solve the above problems, an object of the present application is to: the small probability points in the block to be filtered are uneven factors, which are not beneficial to predicting the concentration of energy after transformation, and the large probability gray scale is required to be close by a filtering algorithm. Meanwhile, the true brightness layering sense of the original pixel value corresponding to the large-probability gray level is protected.
Specifically, the application provides a flat region denoising filtering method, which comprises the following steps:
s1, determining a block to be filtered, wherein the following two conditions are required to be met:
1) The number of the gray values is 2, and the difference between the two gray values is 1;
2) One gray value number is larger than a set threshold value, and the other gray value number is smaller than the set threshold value, which are respectively called a large probability gray b and a small probability gray s;
s2, denoising and filtering:
s2.1, when the pixel point distance is set to be 1, calculating a gray level co-occurrence matrix of the block to be filtered, judging the distribution condition of small probability gray levels, wherein the smaller the number of adjacent small probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small probability points are; otherwise, the thicker the texture of the small probability point is; reducing the filtering strength for the small probability gray scale blocks of the coarse texture; increasing the filtering intensity for the discrete small probability gray scale blocks;
s2.2, blurring or elimination of coarse textures is reduced.
The threshold in S1 is set to 220.
The small probability points in the block to be filtered in the S1 are uneven factors, which are unfavorable for the concentration of the energy after the prediction transformation, and the large probability gray scale is required to be close by a filtering algorithm.
The gray level co-occurrence matrix in the S2.1 is
The processing of the S2 denoising filter further comprises:
(1) Traversing each small-probability gray scale point to be filtered by taking 3x3 as a filtering window, wherein when the number of the large-probability gray scale points around the filtering point is larger, the filtering weight is larger, and the filtered value is closer to the large-probability gray scale;
(2) Denoising and filtering calculation:
1) When the filter block contains coarser texture, the filter strength is reduced
2) When the filter block is a noise discrete block, the filter strength increases
Wherein the pixel old And pixel new Respectively the pixel values before and after filtering, cnt max Pixels are the number of the large probability gray points in the window min And pixel avg Is the minimum pixel value and average value in the large probability gray scale in the window.
Thus, the present application has the advantages that: through analysis, only stronger noise in the flat area can be better identified, so that the method filters the stronger noise in the flat area, reduces the information quantity of prediction residual errors, is more beneficial to the concentration of residual error energy and the reduction of high-frequency components in the transformation process, and further reduces the consumption of code streams on noise.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate and together with the description serve to explain the application.
FIG. 1 is a schematic flow chart of the method of the present application.
Detailed Description
In order that the technical content and advantages of the present application may be more clearly understood, a further detailed description of the present application will now be made with reference to the accompanying drawings.
As shown in fig. 1, the present application relates to a method for denoising and filtering a flat region, which comprises the following steps:
s1, determining a block to be filtered, wherein the following two conditions are required to be met:
1) The number of the gray values is 2, and the difference between the two gray values is 1;
2) One gray value number is larger than a set threshold value, and the other gray value number is smaller than the set threshold value, which are respectively called a large probability gray b and a small probability gray s;
s2, denoising and filtering:
s2.1, when the pixel point distance is set to be 1, calculating a gray level co-occurrence matrix of the block to be filtered, judging the distribution condition of small probability gray levels, wherein the smaller the number of adjacent small probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small probability points are; otherwise, the thicker the texture of the small probability point is; reducing the filtering strength for the small probability gray scale blocks of the coarse texture; increasing the filtering intensity for the discrete small probability gray scale blocks;
s2.2, blurring or elimination of coarse textures is reduced.
In particular, since the stronger noise of the flat area is easier to identify and remove, in order to reduce the change of the pixel value of the image less, the application only filters the stronger noise of the flat area so as to preserve the brightness layering sense formed by rich gray levels.
1. Determining a block to be filtered
The blocks satisfying the following two conditions are blocks to be filtered:
1) The number of the gray values is 2, and the difference between the two gray values is 1
2) One number of gray values is greater than the set threshold while the other number of gray values is less than the set threshold. Respectively referred to as a large probability gray scale b and a small probability gray scale s. The proposal threshold is set to 220.
The general small probability gray scale is in the following distribution:
40 | 40 | 40 | 40 | 40 | 39 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 39 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 39 | 39 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 39 | 39 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 39 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 39 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 39 | 39 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 9 | 40 | 40 | 40 | 40 | 40 | 39 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 9 | 40 | 40 | 40 | 40 | 40 | 40 | 39 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 39 |
40 | 40 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 39 | 39 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 9 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 | 40 |
the small probability points in the block to be filtered are uneven factors, which are not beneficial to predicting the concentration of energy after transformation, and the compression rate is improved on the premise of not influencing the image content by approaching the large probability gray scale through a filtering algorithm. Meanwhile, the true brightness layering sense of the original pixel value corresponding to the large-probability gray level is protected.
2. Denoising filter
When the pixel point distance is set to be 1, calculating a gray level co-occurrence matrix of the block to be filtered, judging the distribution condition of the small probability gray level, wherein the smaller the number of adjacent small probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small probability points are; whereas the coarser the texture of the low probability points. Reducing the filtering strength for the small probability gray scale blocks of coarser textures; the filter strength is increased for discrete small probability gray blocks. Reducing blurring or elimination of coarser textures. Let the threshold gray_thr=220.
Gray scale co-occurrence matrix
And traversing each small-probability gray scale point to be filtered by taking 3x3 as a filtering window, wherein when the number of the large-probability gray scale points around the filtering point is larger, the filtering weight is larger, and the filtered value is closer to the large-probability gray scale. The specific denoising processing method comprises the following steps:
1) When the filter block contains coarser texture, the filter strength is reduced
2) When the filter block is a noise discrete block, the filter strength increases
Wherein the pixel old And pixel new Respectively the pixel values before and after filtering, cnt max Is the big probability ash in the windowThe number of points, pixel min And pixel avg Is the minimum pixel value and average value in the large probability gray scale in the window.
After the image denoised by the method is subjected to predictive transformation, residual energy is more easily concentrated to low-frequency components, and the coefficient value of high-frequency residues is reduced or quantized to 0 in the quantization process, so that the consumption of noise in a code stream is reduced. The smaller the quantization parameter, the more the code stream is reduced. The application has small calculated amount, and is more beneficial to image compression on the premise of not blurring image details and retaining brightness layering sense of a flat area.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, and various modifications and variations can be made to the embodiments of the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (7)
1. A method of flat region denoising filtering, comprising the steps of:
s1, determining a block to be filtered, wherein the following two conditions are required to be met:
1) The number of the gray values is 2, and the difference between the two gray values is 1;
2) One gray value number is larger than a set threshold value, and the other gray value number is smaller than the set threshold value, which are respectively called a large probability gray b and a small probability gray s;
s2, denoising and filtering:
s2.1, when the pixel point distance is set to be 1, calculating a gray level co-occurrence matrix of the block to be filtered, judging the distribution condition of small probability gray levels, wherein the smaller the number of adjacent small probability gray levels is, the larger the sum of diagonal lines is, and the more discrete the small probability points are; otherwise, the thicker the texture of the small probability point is; reducing the filtering strength for the small probability gray scale blocks of the coarse texture; increasing the filtering intensity for the discrete small probability gray scale blocks;
s2.2, blurring or elimination of coarse textures is reduced.
2. The method of flat region denoising filtering according to claim 1, wherein the threshold in S1 is set to 220.
3. The method for denoising and filtering a flat area according to claim 1, wherein the small probability points in the block to be filtered in S1 are uneven factors, which are unfavorable for the concentration of the energy after the prediction transformation, and require the approach to the large probability gray scale by a filtering algorithm.
4. The method of flat region denoising and filtering according to claim 1, wherein the gray level co-occurrence matrix in S2.1 is
5. The method of flat region denoising filtering according to claim 1, wherein the processing of S2 denoising filtering further comprises:
(1) Traversing each small-probability gray scale point to be filtered by taking 3x3 as a filtering window, wherein when the number of the large-probability gray scale points around the filtering point is larger, the filtering weight is larger, and the filtered value is closer to the large-probability gray scale;
(2) Denoising and filtering calculation:
1) When the filter block contains coarser texture, the filter strength is reduced
2) When the filter block is a noise discrete block, the filter strength increases
Wherein the pixel old And pixel new Respectively the pixel values before and after filtering, cnt max Pixels are the number of the large probability gray points in the window min And pixel avg Is the minimum pixel value and average value in the large probability gray scale in the window.
6. The method of flat region denoising filtering according to claim 5, wherein 1) when the filter block contains coarser texture, the filtering strength is reduced:
7. the method of flat region denoising filtering according to claim 5, wherein 2) when the filtering block is a noise discrete block, the filtering strength increases:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010371888.5A CN113628118B (en) | 2020-05-06 | 2020-05-06 | Method for denoising and filtering in flat area |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010371888.5A CN113628118B (en) | 2020-05-06 | 2020-05-06 | Method for denoising and filtering in flat area |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113628118A CN113628118A (en) | 2021-11-09 |
CN113628118B true CN113628118B (en) | 2023-12-08 |
Family
ID=78376497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010371888.5A Active CN113628118B (en) | 2020-05-06 | 2020-05-06 | Method for denoising and filtering in flat area |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113628118B (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938824A (en) * | 2012-06-05 | 2013-02-20 | 李英明 | Video denoising method based on improved self-adaptive bilateral filter |
CN106169181A (en) * | 2016-06-30 | 2016-11-30 | 北京奇艺世纪科技有限公司 | A kind of image processing method and system |
CN106373098A (en) * | 2016-08-30 | 2017-02-01 | 天津大学 | Random pulse noise removal method based on non-similar pixel statistics |
CN107644210A (en) * | 2017-09-22 | 2018-01-30 | 哈尔滨工业大学(威海) | Micro organism quantity evaluation method based on image procossing |
CN107967471A (en) * | 2017-09-20 | 2018-04-27 | 北京工业大学 | A kind of table tool automatic identifying method based on machine vision |
CN108765335A (en) * | 2018-05-25 | 2018-11-06 | 电子科技大学 | A kind of forest fire detection method based on remote sensing images |
CN109767400A (en) * | 2019-01-14 | 2019-05-17 | 三峡大学 | A kind of ultrasound image speckle noise minimizing technology of three sides of guiding filtering |
CN110533047A (en) * | 2019-08-30 | 2019-12-03 | 西南大学 | A kind of denoising and binarization method for ancient books picture |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8731323B2 (en) * | 2011-11-23 | 2014-05-20 | Stmicroelectronics Asia Pacific Pte Ltd. | General banding and codec banding artifact removal |
-
2020
- 2020-05-06 CN CN202010371888.5A patent/CN113628118B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102938824A (en) * | 2012-06-05 | 2013-02-20 | 李英明 | Video denoising method based on improved self-adaptive bilateral filter |
CN106169181A (en) * | 2016-06-30 | 2016-11-30 | 北京奇艺世纪科技有限公司 | A kind of image processing method and system |
CN106373098A (en) * | 2016-08-30 | 2017-02-01 | 天津大学 | Random pulse noise removal method based on non-similar pixel statistics |
CN107967471A (en) * | 2017-09-20 | 2018-04-27 | 北京工业大学 | A kind of table tool automatic identifying method based on machine vision |
CN107644210A (en) * | 2017-09-22 | 2018-01-30 | 哈尔滨工业大学(威海) | Micro organism quantity evaluation method based on image procossing |
CN108765335A (en) * | 2018-05-25 | 2018-11-06 | 电子科技大学 | A kind of forest fire detection method based on remote sensing images |
CN109767400A (en) * | 2019-01-14 | 2019-05-17 | 三峡大学 | A kind of ultrasound image speckle noise minimizing technology of three sides of guiding filtering |
CN110533047A (en) * | 2019-08-30 | 2019-12-03 | 西南大学 | A kind of denoising and binarization method for ancient books picture |
Non-Patent Citations (1)
Title |
---|
消除椒盐噪声的基于纹理特征的决策滤波;陈家益;战荫伟;曹会英;董梦艺;;电子测量与仪器学报(03);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN113628118A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8615042B2 (en) | Pre-processing method and system for data reduction of video sequences and bit rate reduction of compressed video sequences using spatial filtering | |
US8208565B2 (en) | Pre-processing method and system for data reduction of video sequences and bit rate reduction of compressed video sequences using temporal filtering | |
US7916965B2 (en) | Detection of artifacts resulting from image signal decompression | |
US20080279279A1 (en) | Content adaptive motion compensated temporal filter for video pre-processing | |
CN1281617A (en) | Image data post-processing method and device for reducing quantization effect | |
CN101267560A (en) | Block-removal filtering method and device | |
CN1761286A (en) | Method for detecting movement detection by using edge detection, and for removing ripple noise through medium filtering | |
CN104992419A (en) | Super pixel Gaussian filtering pre-processing method based on JND factor | |
CN101321276B (en) | Method and apparatus for removing block effect | |
CN115829967A (en) | Industrial metal surface defect image denoising and enhancing method | |
CN117635611A (en) | Traffic construction pavement quality monitoring method and system | |
CN113628118B (en) | Method for denoising and filtering in flat area | |
CN113628120B (en) | Simple denoising coding method | |
JP4065287B2 (en) | Method and apparatus for removing noise from image data | |
JP2005318614A (en) | Method for reducing artifact in input image | |
CN113628119B (en) | Method for identifying block to be denoised in image denoising process | |
CN110647843B (en) | Face image processing method | |
Do et al. | A new adaptive image post-treatment for deblocking and deringing based on total variation method | |
Zhang et al. | SSIM-based optimal non-local means image denoising with improved weighted Kernel function | |
CN101389019B (en) | Video processing method | |
CN1450497A (en) | Video coding method based on video content | |
Nikitin et al. | Adaptive bilateral filter for JPEG 2000 deringing | |
CN113038144B (en) | Method, device and computer readable storage medium for removing blocking effect | |
JPH09116905A (en) | Picture decoding method | |
JP2005191865A (en) | Image processing apparatus, image processing program and image processing method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |