CN1633159A - A method for removing image noise - Google Patents

A method for removing image noise Download PDF

Info

Publication number
CN1633159A
CN1633159A CN 200510002941 CN200510002941A CN1633159A CN 1633159 A CN1633159 A CN 1633159A CN 200510002941 CN200510002941 CN 200510002941 CN 200510002941 A CN200510002941 A CN 200510002941A CN 1633159 A CN1633159 A CN 1633159A
Authority
CN
China
Prior art keywords
gray
gray value
value
pixel
average
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.)
Granted
Application number
CN 200510002941
Other languages
Chinese (zh)
Other versions
CN1328901C (en
Inventor
孙丰强
高占东
刘延波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mid Star Technology Ltd By Share Ltd
Original Assignee
Vimicro Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Vimicro Corp filed Critical Vimicro Corp
Priority to CNB200510002941XA priority Critical patent/CN1328901C/en
Publication of CN1633159A publication Critical patent/CN1633159A/en
Application granted granted Critical
Publication of CN1328901C publication Critical patent/CN1328901C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

This invention discloses a method for removing image noise including the following steps: A, acquiring the pixel data of the image B, using all gray values of said image to compute the mean gray value and its variance value, C, fetching the gray values of all pixels and judging if the gray value of each pixel is in the sphere of three times variance one by one, if so, the value of said pixel is not corrected, otherwise, the pixel is the noise removed by revising the gray value of said pixel.

Description

A kind of method of removing picture noise
Technical field
The present invention relates to image processing techniques, particularly a kind of method of removing picture noise.
Background technology
One of purpose that image processing is the most basic is exactly to improve picture quality, for follow-up processing operation provides the good premise environment.Removing picture noise is a kind of relatively effective method that improves picture quality.The reason that noise forms has multiple, may produce in imaging process, also may produce in transmission course, and the existence of noise is handled operation to successive image and brought very big inconvenience, therefore, removes noise and can be described as the step that all images processing must be gone.
At present, the method for removal picture noise has multiple.The mean filter smoothed image is a kind of method of removal picture noise commonly used, and this method is mainly by means of the template operator, substitutes self value with the average of a certain pixel neighboring pixel value, to reach the purpose of removing noise, smoothed image.
Referring to Fig. 1, Fig. 1 is a prior art mean filter principle schematic.Wherein, just by four pixel B, C, D, the E of its periphery, promptly the average of four pixels on the round edge substitutes the pixel value of pixel A among Fig. 1.Its concrete processing procedure is referring to Fig. 2, and Fig. 2 removes the flow chart of picture noise for prior art with the mean filter mode, and this flow process may further comprise the steps:
Step 201, the coordinate figure of each pixel of reading images and gray value data store function f (x into, y) in, wherein stored the horizontal ordinate of each pixel, represented with x, y, also stored the gray value (being also referred to as pixel value usually) of each pixel, by f (x, value representation y).
Step 202, the whole sub-picture of traversal calculates the new gray value of each pixel with formula (1), and stores.
f ′ ( x , y ) = 1 2 * n + 1 Σ b + n i = ( a - n ) a + n j = ( b - n ) f ( i , j ) - - - - - - - - ( 1 )
Wherein, a, b are that (x, y) horizontal ordinate, n are step-length to pixel.
Step 203, function reading f (according to the coordinate of each pixel, replace the gray value of each pixel with new gray value, promptly use f (x, the f of value y) (x, value replacement y) of each pixel by x, the y) gray value of each pixel of middle storage.
Because it is exactly the pixel value that substitutes noise with the average of noise surrounding pixel point that the mean filter mode of prior art is removed the essence of picture noise method, though like this can be effectively with noise remove, but image is through after such processing, the gray value of neighbor may be more approaching, the difference of gray scale that is to say neighbor is reduced, therefore also just may cause image blurring phenomenon.
In addition, the method for above-mentioned removal picture noise, owing to be to adopt the template operator that image is carried out point by point scanning, so amount of calculation is bigger, and need pointwise to calculate, and to open the temporary intermediate data of memory space in addition, wasted system resource.At present, the step-length n=1 that chooses usually, i.e. computation of mean values in the window of a 3*3, if step-length increases, amount of calculation also can rise by straight line.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of method of removing picture noise, and this method not only can be removed picture noise effectively, and can reduce because of removing picture noise and handle the image blurring phenomenon that causes.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of method of removing picture noise, this method may further comprise the steps:
A, obtain each pixel data of image;
B, use the gray value of these all pixels of image, calculate the gray average and the gray variance value thereof of this image;
Whether the gray value of C, all pixels of reading images, the gray value of judging each pixel one by one drop on average up and down in 3 times of variances; If then do not revise the gray value of this pixel; Otherwise this pixel is a noise, removes noise by the gray value of revising this pixel.
Wherein, described image can be a zone in whole sub-picture or the image.
The method of the gray average of described this image of calculating of step B can for:
After the gray value summation to all pixels, ask its mean value.
The method of this gradation of image variance yields of the described calculating of step B can comprise:
B1, to all pixels, ask the gray scale difference value of its gray value and gray average, and obtain this gray scale difference value square;
After B2, square summation, obtain mean value, this mean value is carried out evolution, obtain the gray variance value of this image the gray scale difference value of all pixels.
Step C described by revise this gray value remove picture noise method can for:
Gray value is added the pixel of 3 times of variances greater than gray average, its gray value is reduced;
Gray value is subtracted the pixel of 3 times of variances less than gray average, its gray value is increased.
Step C is described to be specifically as follows by the method for revising this gray value removal picture noise:
The gray value that gray value is added the pixel of 3 times of variances greater than gray average is revised as gray average and adds 3 times of variances;
The gray value that gray value is subtracted the pixel of 3 times of variances less than gray average is revised as gray average and subtracts 3 times of variances.
Step C described by revise this gray value remove picture noise method can also for:
Adjust gray value for predetermined one;
The gray value that gray value is added the pixel of 3 times of variances greater than gray average is revised as former gray value and subtracts predetermined adjustment gray value;
The gray value that gray value is subtracted the pixel of 3 times of variances less than gray average is revised as former gray value and adds predetermined adjustment gray value.
As seen from the above technical solutions, the method of this removal picture noise of the present invention, owing to utilized 3 θ principles in the probability statistics opinion, with gray value drop on average up and down 3 times of outer pixels of variances regard noise as and remove, therefore can remove picture noise effectively.
And, because only gray value is dropped on extraneous pixel revises its gray value in the present invention, rather than as prior art, all use the average of calculating separately to substitute to all pixels, the present invention has just guaranteed that the gray value that gray value drops on the pixel in this scope is not modified like this, handle the image blurring phenomenon that causes thereby reduced because of removing picture noise, operand is little, can save system resource.
Description of drawings
Fig. 1 is a prior art mean filter principle schematic;
Fig. 2 removes the flow chart of picture noise with the mean filter mode for prior art;
Fig. 3 removes the process chart of a preferred embodiment of picture noise method for the present invention.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The method of this removal picture noise of the present invention has been utilized 3 θ principles in the probability statistics opinion, and it has characterized the overall big number information of determining and has been present in average up and down in 3 times of variances.Based on this theory, image is regarded as an overall calculation the publish picture gray average and the variance of picture, by the point by point scanning pixel relatively, with gray value drop on average up and down 3 times of outer pixels of variances regard noise as, its gray value is revised as average adds/subtract 3 times of variances, can get rid of noise.
Referring to Fig. 3, Fig. 3 removes the process chart of a preferred embodiment of picture noise method for the present invention.This flow process may further comprise the steps:
Step 301, data such as the gray value of each pixel of reading images, coordinate figure and storage.
In this step, the method for storage can be same as the prior art, promptly store into function f (x, y) in.Certainly adopt other modes to store, as long as can be with the gray value and the coordinate figure corresponding stored of each pixel.
Step 302 reads the gray value of all pixels of this image, calculates gray average μ.By formula (2) calculate gray average μ:
u = 1 n Σ i = 1 n x i - - - - - - - - - - ( 2 )
Step 303 is calculated variance θ with gray average.By formula calculate earlier (3):
θ 2 = 1 n Σ i = 1 n ( x i - x ‾ ) 2 - - - - - - - - - - ( 3 )
Wherein, the mean value of x is exactly μ.
Calculate the value of variance θ then by extracting operation.
Step 304 reads the gray value of a pixel.
In the step 305, [μ-3 θ, the μ+3 θ] scope of judging whether this gray value drops on, if then carry out
Step 307; Otherwise execution in step 306.
Step 306 is if gray value less than μ-3 θ, then substitutes gray value with μ-3 θ; If gray value greater than μ+3 θ, then substitutes this gray value with μ+3 θ.
The processing procedure of step 305~306 can be represented with formula (4).
p = &mu; - 3 &theta; p < &mu; - 3 &theta; p &mu; - 3 &theta; &le; p &le; &mu; + 3 &theta; &mu; + 3 &theta; p > &mu; + 3 &theta; - - - - - - - - - - ( 4 )
Wherein p represents the gray value of each pixel.
The essence of step 305~306 is exactly: to the pixel of gray value greater than μ+3 θ, its gray value is reduced; To the pixel of gray value, its gray value is increased less than μ-3 θ.Therefore, can also there be other modes to realize.
Such as: adjust gray value for predetermined one; Gray value is revised as former gray value greater than the gray value of the pixel of μ+3 θ subtracts predetermined adjustment gray value; Gray value is revised as former gray value less than the gray value of the pixel of μ-3 θ adds predetermined adjustment gray value.
Step 307 judges whether the pixel that do not read in addition, if having, then returns step 304, reads next pixel; Otherwise end process flow process.
The present invention can implement denoising to whole sub-picture, also can select certain zone in the image to implement denoising as required.If whole sub-picture is implemented denoising, the image described in the then above-mentioned flow process is whole sub-picture; If denoising is implemented in certain zone, the image described in the then above-mentioned flow process is selected certain image-region.Processing procedure is identical, is that handled range size is not quite similar.
By the above embodiments as seen, the method of this removal picture noise of the present invention, owing to utilized 3 θ principles in the probability statistics opinion, with gray value drop on average up and down 3 times of outer pixels of variances regard noise as and remove, therefore can remove picture noise effectively.
And, because the present invention only drops on [μ-3 θ to gray value, μ+3 θ] extraneous pixel revises its gray value, rather than as prior art, all use the average of calculating separately to substitute to all pixels, the present invention has just guaranteed that the gray value that gray value drops on the pixel in this scope is not modified, and handles the image blurring phenomenon that causes thereby reduced because of removing picture noise like this.
In addition, the present invention only carries out formula (2) and (3) twice computing to all pixels of image, carry out formula (4) by mode relatively, amount of calculation is little, processing method is easy, and can directly make amendment to the gray value of original image, do not need extra memory space, saved system resource.

Claims (7)

1, a kind of method of removing picture noise is characterized in that, this method may further comprise the steps:
A, obtain each pixel data of image;
B, use the gray value of these all pixels of image, calculate the gray average and the gray variance value thereof of this image;
Whether the gray value of C, all pixels of reading images, the gray value of judging each pixel one by one drop on average up and down in 3 times of variances; If then do not revise the gray value of this pixel; Otherwise this pixel is a noise, removes noise by the gray value of revising this pixel.
2, the method for claim 1 is characterized in that: described image is a zone in whole sub-picture or the image.
3, the method for claim 1 is characterized in that, the method for the gray average of described this image of calculating of step B is:
After the gray value summation to all pixels, ask its mean value.
As claim 1 or 3 described methods, it is characterized in that 4, the method for this gradation of image variance yields of the described calculating of step B comprises:
B1, to all pixels, ask the gray scale difference value of its gray value and gray average, and obtain this gray scale difference value square;
After B2, square summation, obtain mean value, this mean value is carried out evolution, obtain the gray variance value of this image the gray scale difference value of all pixels.
5, the method for claim 1 is characterized in that, step C is described by the method for revising this gray value removal picture noise to be:
Gray value is added the pixel of 3 times of variances greater than gray average, its gray value is reduced;
Gray value is subtracted the pixel of 3 times of variances less than gray average, its gray value is increased.
6, method as claimed in claim 5 is characterized in that, step C is described by the method for revising this gray value removal picture noise to be:
The gray value that gray value is added the pixel of 3 times of variances greater than gray average is revised as gray average and adds 3 times of variances;
The gray value that gray value is subtracted the pixel of 3 times of variances less than gray average is revised as gray average and subtracts 3 times of variances.
7, method as claimed in claim 5 is characterized in that, step C is described by the method for revising this gray value removal picture noise to be:
Adjust gray value for predetermined one;
The gray value that gray value is added the pixel of 3 times of variances greater than gray average is revised as former gray value and subtracts predetermined adjustment gray value;
The gray value that gray value is subtracted the pixel of 3 times of variances less than gray average is revised as former gray value and adds predetermined adjustment gray value.
CNB200510002941XA 2005-01-26 2005-01-26 A method for removing image noise Active CN1328901C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB200510002941XA CN1328901C (en) 2005-01-26 2005-01-26 A method for removing image noise

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB200510002941XA CN1328901C (en) 2005-01-26 2005-01-26 A method for removing image noise

Publications (2)

Publication Number Publication Date
CN1633159A true CN1633159A (en) 2005-06-29
CN1328901C CN1328901C (en) 2007-07-25

Family

ID=34852992

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB200510002941XA Active CN1328901C (en) 2005-01-26 2005-01-26 A method for removing image noise

Country Status (1)

Country Link
CN (1) CN1328901C (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454970C (en) * 2006-09-30 2009-01-21 四川长虹电器股份有限公司 Spatial domain pixel data processing method
CN100505832C (en) * 2006-03-21 2009-06-24 中国科学院计算技术研究所 Image de-noising process of multi-template mixed filtering
CN101360187B (en) * 2007-08-03 2010-06-02 鸿富锦精密工业(深圳)有限公司 Image processing method and apparatus thereof
CN101370081B (en) * 2007-08-15 2010-08-25 鸿富锦精密工业(深圳)有限公司 Image processing method and apparatus thereof
CN102118547A (en) * 2011-03-29 2011-07-06 四川长虹电器股份有限公司 Image weighted filtering method
CN101115132B (en) * 2006-07-24 2011-08-03 致伸科技股份有限公司 Method for obtaining high signal-to-noise ratio image
CN102157000A (en) * 2010-11-30 2011-08-17 方正国际软件有限公司 Method and system for adjusting gradation of layout
CN101273623B (en) * 2005-09-28 2012-07-04 奥林巴斯株式会社 Imaging device, image process device and image process method
CN102890819A (en) * 2012-09-07 2013-01-23 浙江工业大学 Image denoising method based on pixel spatial relativity judgment
CN103795943A (en) * 2012-11-01 2014-05-14 富士通株式会社 Image processing apparatus and image processing method
CN104036471A (en) * 2013-03-05 2014-09-10 腾讯科技(深圳)有限公司 Image noise estimation method and image noise estimation device
WO2017028742A1 (en) * 2015-08-17 2017-02-23 比亚迪股份有限公司 Image denoising system and image denoising method
CN108093182A (en) * 2018-01-26 2018-05-29 广东欧珀移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN110136085A (en) * 2019-05-17 2019-08-16 凌云光技术集团有限责任公司 A kind of noise-reduction method and device of image
CN110334731A (en) * 2019-05-09 2019-10-15 云南大学 A kind of the extraction of spatial information method, apparatus and electronic equipment of spectrum picture

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07225834A (en) * 1994-02-10 1995-08-22 Matsushita Electric Ind Co Ltd Picture noise detector
US5764307A (en) * 1995-07-24 1998-06-09 Motorola, Inc. Method and apparatus for spatially adaptive filtering for video encoding
JPH10327315A (en) * 1997-05-26 1998-12-08 Fuji Xerox Co Ltd Image processing unit
JP2001144964A (en) * 1999-11-15 2001-05-25 Fuji Photo Film Co Ltd Noise eliminating method and unit, and scanner
JP4090671B2 (en) * 2000-06-19 2008-05-28 ジーイー・メディカル・システムズ・グローバル・テクノロジー・カンパニー・エルエルシー Image processing method, image processing apparatus, and image photographing apparatus
JP4069581B2 (en) * 2000-12-11 2008-04-02 セイコーエプソン株式会社 Image processing method, computer-readable recording medium on which image processing program is recorded, and image processing apparatus
JP4413504B2 (en) * 2003-02-13 2010-02-10 株式会社東芝 Medical image processing apparatus, medical image processing method, and medical image processing program

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101273623B (en) * 2005-09-28 2012-07-04 奥林巴斯株式会社 Imaging device, image process device and image process method
CN100505832C (en) * 2006-03-21 2009-06-24 中国科学院计算技术研究所 Image de-noising process of multi-template mixed filtering
CN101115132B (en) * 2006-07-24 2011-08-03 致伸科技股份有限公司 Method for obtaining high signal-to-noise ratio image
CN100454970C (en) * 2006-09-30 2009-01-21 四川长虹电器股份有限公司 Spatial domain pixel data processing method
CN101360187B (en) * 2007-08-03 2010-06-02 鸿富锦精密工业(深圳)有限公司 Image processing method and apparatus thereof
CN101370081B (en) * 2007-08-15 2010-08-25 鸿富锦精密工业(深圳)有限公司 Image processing method and apparatus thereof
CN102157000A (en) * 2010-11-30 2011-08-17 方正国际软件有限公司 Method and system for adjusting gradation of layout
CN102118547A (en) * 2011-03-29 2011-07-06 四川长虹电器股份有限公司 Image weighted filtering method
CN102890819A (en) * 2012-09-07 2013-01-23 浙江工业大学 Image denoising method based on pixel spatial relativity judgment
CN102890819B (en) * 2012-09-07 2015-03-04 浙江工业大学 Image denoising method based on pixel spatial relativity judgment
CN103795943A (en) * 2012-11-01 2014-05-14 富士通株式会社 Image processing apparatus and image processing method
CN103795943B (en) * 2012-11-01 2017-05-17 富士通株式会社 Image processing apparatus and image processing method
CN104036471A (en) * 2013-03-05 2014-09-10 腾讯科技(深圳)有限公司 Image noise estimation method and image noise estimation device
CN104036471B (en) * 2013-03-05 2017-07-25 腾讯科技(深圳)有限公司 A kind of picture noise estimation method and picture noise valuation device
WO2017028742A1 (en) * 2015-08-17 2017-02-23 比亚迪股份有限公司 Image denoising system and image denoising method
CN108093182A (en) * 2018-01-26 2018-05-29 广东欧珀移动通信有限公司 Image processing method and device, electronic equipment, computer readable storage medium
CN110334731A (en) * 2019-05-09 2019-10-15 云南大学 A kind of the extraction of spatial information method, apparatus and electronic equipment of spectrum picture
CN110334731B (en) * 2019-05-09 2022-04-12 云南大学 Spectral image spatial information extraction method and device and electronic equipment
CN110136085A (en) * 2019-05-17 2019-08-16 凌云光技术集团有限责任公司 A kind of noise-reduction method and device of image

Also Published As

Publication number Publication date
CN1328901C (en) 2007-07-25

Similar Documents

Publication Publication Date Title
CN1633159A (en) A method for removing image noise
CN1223181C (en) Noise reduction
CN1240024C (en) Image processor, image processing method and recording medium recording the same
CN1761309A (en) Signal processing apparatus and signal processing method for image data
CN1250012C (en) Method and appts. of removing blocking artifact of MPEG signal
CN1512450A (en) Image processing device and image processing method and its program
CN1806257A (en) Image processor, image processing method, program for image processing method and recording medium with its program recorded thereon
CN1308891C (en) Apparatus and method for intensifying edge in picture processing
CN1260949C (en) Method and apparatus for improving picture sharpness
CN1774030A (en) Method for reducing noise in images
CN1615029A (en) Method and apparatus for enhancing local luminance of image, and recording medium
CN1218561C (en) Noise filtering image sequence
CN1649388A (en) Resolution conversion method and device
CN1668108A (en) Resolution changing method and apparatus
CN1929552A (en) Spatial domain pixel data processing method
CN100342710C (en) Structure method for enhancing image
CN1531329A (en) Image reader
CN1728182A (en) Image edge filtering
CN1229986C (en) Marginal correcting method and device
CN1741617A (en) Handle the equipment and the method for the shoot artifacts of picture signal
CN1213600C (en) N-dimensional filter and method for N-dimensionally filtering an original image
CN1193618C (en) Pre-processing method for motion estimation
CN1595433A (en) Recursion denoising method based on motion detecting image
CN1317884C (en) A method for realizing integral multiple amplification of image
CN1232926C (en) Apparatus for conducting binary coding to image and using method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171222

Address after: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee after: Zhongxing Technology Co., Ltd.

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Beijing Vimicro Corporation

TR01 Transfer of patent right
CP01 Change in the name or title of a patent holder

Address after: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee after: Mid Star Technology Limited by Share Ltd

Address before: 100083, Haidian District, Xueyuan Road, Beijing No. 35, Nanjing Ning building, 15 Floor

Patentee before: Zhongxing Technology Co., Ltd.

CP01 Change in the name or title of a patent holder