Image denoising algorithm based on Demons algorithms
Technical field
The present invention relates to image processing field, is that, based on the Image denoising algorithm of partial differential equation, the algorithm is based on
Demons algorithm improvements.
Background technology
Digital picture is the source that many ambits obtain information, but image in gatherer process often because each side
Face reason introduces noise.Therefore, in image procossing and computer realm, image denoising is one of most basic problem.Nearly tens
Year, Partial Differential Equation method starts to be widely used in image procossing, the aspect such as denoising, segmentation, rim detection, enhancing in image
Research all make remarkable progress.
So far, researcher has been proposed for many anisotropy parameter algorithms, wherein most classical is order conduction
Coefficient depends on the Second Order Partial differential algorithm of image gradient, i.e. PM algorithms.With deepening continuously to the technical research, Hen Duoshi
Test result to show, PM algorithm existing defects:First, it cannot correctly distinguish edge and noise sometimes, thus process little yardstick
The noise effects in space are undesirable;Second, the correctness of diffusion coefficient function is verified without theory.Therefore, many scholars couple
Diffusion coefficient is improved in PM algorithms, attempts to set up and more effectively protect edge smoothing filter, and achieve some
Exhibition.But most of modified hydrothermal process is all built upon on classic algorithm, without the defect for fundamentally solving PM algorithms.
The content of the invention
It is contemplated that the image for becoming apparent from is processed out, to be close to original image.Because traditional algorithm is ageing low, answer
Miscellaneous degree is higher, and often occurs excess smoothness and smooth insufficient phenomenon in processing procedure, and this algorithm is calculated in Demons
It is improved on the basis of method, makes image anisotropy denoising process simplification into process of image registration, it is not necessary to considers design diffusion
Function, Grads threshold and the problems such as distinguish edge, reduce algorithm complex and to improve algorithm ageing, therefore simplify
Image denoising problem, efficiently make use of overall structure function to control picture structure.Denoising performance aspect, Y-PSNR and clear
Clear degree is greatly improved.
The present invention is employed the following technical solutions:A kind of Image denoising algorithm based on Demons algorithms, it is characterised in that bag
Include following steps:
Step one, noise image is carried out Gauss filtering, remove larger noise;
Step 2, using Demons algorithm principles, set up based on the Image denoising algorithm of Demons algorithms
Wherein div, ▽ are respectively divergence operator and gradient operator, I I0It is respectively
Initial pictures and plus make an uproar image, | ▽ I | are gradient modulus value;
Step 3, by level set curvatureDemons is incorporated into as correction driven factor
In image denoising model, structure function is set upFinally setting up Dual Drive Denoising Algorithm isWherein | ▽ I |, | ▽ f | are gradient modulus value, α
It is coherent coefficient with β, is determined by curve matching;
Step 4, with half implicit expression additive operator division numerical algorithm discretization is carried out to Dual Drive Denoising Algorithm in step 3
Process, obtain image after denoising, process is as follows:
Jing abbreviations,
WithRepresent I (xi,yj;tn),f(xi,yj;tn), its implied format is
Wherein Δ t be time step, Ax、AyThe corresponding coefficient matrix of difference is respectively carried out to x and y directions,
Solve In+1, fn+1:
Deformation can be obtained
1) work as i=1 ..., during N, calculateWithElement on three diagonal: With And solved using chasing methodObtain
2) j=1 ... is worked as, it is same to calculate during MWithThree diagonal on element, ask
SolutionObtain
3) calculate
4) repeatedly 1)~3), through successive ignition, obtain picture rich in detail.
Above-mentioned Demons algorithms areWherein F is reference picture, and M is floating image,Displacement needed for (x, y) place from from floating image to reference picture deformation, div, ▽ be respectively divergence operator and
Gradient operator.
The beneficial effect that the present invention reaches:1. in terms of the complexity of algorithm, the information content of needs is few, and method is simple, no
The local detail information of analysis of the image emphatically is needed, only need to be considered from the overall structure of image, set up overall structure function to control
Imaged structure, realizes image denoising, makes contaminated image closer to original image;2. at the ageing aspect of algorithm, because
The information content that the present invention needs is few, and the complexity of enforcement is low, so as to reduce the process time of algorithm;3. in the denoising of algorithm
Can aspect, the Y-PSNR and definition of image greatly improve, by noise pollution image Jing after this algorithm process more
Close original image.
Description of the drawings
Fig. 1 is to set up the flow chart based on the Image denoising algorithm of Demons algorithms.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
As shown in figure 1, noise image is pre-processed, that is, Gauss filtering is carried out, remove larger noise, next sentenced
Whether disconnected picture structure deforms, that is, consider gradient | the ▽ I | of noisy image when doing rim detection, due to by noise jamming so that
Detection to image border, texture is not accurate enough, and the detailed information such as the Edge texture of image itself are destroyed during denoising, and
The structure for making image deforms.
(1) in the case where picture structure does not deform, then whether all pixels of detection image lead directly to, if all
Pixel leads directly to, then obtain and export clearly image;It is straight-through if not all pixels, then return to noise image pretreatment stage
Processed.
(2) picture structure have deformation in the case of, due to image level set curvature in the presence of noise, can
The detailed information such as the Edge texture of effective detection image, therefore the structure control function of level set curvature is set up, for maintaining image
Structure, be allowed to not deform.By level set curvatureIntroduce as correction driven factor
To Demons image denoising modelsIn, set up structure function
Finally setting up Dual Drive Denoising Algorithm is
Next discretization is carried out to Dual Drive Denoising Algorithm with half implicit expression additive operator division numerical algorithm (AOS algorithms)
Process.Jing abbreviations, obtainWith
WithRepresent I (xi,yj;tn),f(xi,
yj;tn), its implied format is respectivelyWherein Δ t is
Time step, Ax、AyThe corresponding coefficient matrix of difference is respectively carried out to x and y directions.
Solve In+1, fn+1:
Deformation can be obtained
1) work as i=1 ..., during N, calculateWithElement on three diagonal: With SolveObtain
2) j=1 ... is worked as, it is same to calculate during MWithThree diagonal on element,
SolveObtain
3) calculate
4) repeatedly 1)~3), through successive ignition, until obtaining picture rich in detail.
Whether all pixels lead directly in last detection image, are to export picture rich in detail, otherwise return noise image pre-
Process step.
Not only denoising performance is superior for the present invention, and the overall structure of image is remained intact, the signal noise ratio (snr) of image after denoising
Compared with Demons denoisings, other algorithms improve 15dB or so, and compared with PM algorithms 25dB or so is improve, and definition is also significantly lifted.
It is more than the better embodiment of the present invention, but protection scope of the present invention not limited to this.It is any to be familiar with this area
Technical staff disclosed herein technical scope in, the conversion expected without creative work or replacement all should be covered
Within protection scope of the present invention.Therefore the protection domain that protection scope of the present invention should be limited by claim is defined.