CN103914811B - A kind of algorithm for image enhancement based on gauss hybrid models - Google Patents

A kind of algorithm for image enhancement based on gauss hybrid models Download PDF

Info

Publication number
CN103914811B
CN103914811B CN201410093657.7A CN201410093657A CN103914811B CN 103914811 B CN103914811 B CN 103914811B CN 201410093657 A CN201410093657 A CN 201410093657A CN 103914811 B CN103914811 B CN 103914811B
Authority
CN
China
Prior art keywords
sigma
image
rectangular histogram
algorithm
formula
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
Application number
CN201410093657.7A
Other languages
Chinese (zh)
Other versions
CN103914811A (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.)
Changchun Institute of Optics Fine Mechanics and Physics of CAS
Original Assignee
Changchun Institute of Optics Fine Mechanics and Physics of CAS
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 Changchun Institute of Optics Fine Mechanics and Physics of CAS filed Critical Changchun Institute of Optics Fine Mechanics and Physics of CAS
Priority to CN201410093657.7A priority Critical patent/CN103914811B/en
Publication of CN103914811A publication Critical patent/CN103914811A/en
Application granted granted Critical
Publication of CN103914811B publication Critical patent/CN103914811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

A kind of algorithm for image enhancement based on gauss hybrid models relates to technical field of image processing, and the method is: first, and the luminance component of coloured image is added up into rectangular histogram, and rectangular histogram is carried out Gaussian modeling;Secondly, the EM algorithm of application enhancements, rectangular histogram is carried out gauss hybrid models estimation, finds the parameter of likelihood function expectation maximization, self adaptation determines optimal number of clusters simultaneously;Then, according to the intersection point of neighboring clusters by rectangular histogram subregion, it is thus achieved that many sub-rectangular histograms;Finally, find the cluster after mapping according to the sub-rectangular histogram area ratio having mapping relations is equal, and apply holding maximum entropy method to tend to human visual system inching mapping function, obtain final enhancing image.The image enhancement technique that the present invention uses, is effectively improved the contrast of image, and improves processing speed.In terms of subjective vision perceptible aspect or objective evaluation, good effect is either all achieved by the enhancing image acquired in the inventive method.

Description

A kind of algorithm for image enhancement based on gauss hybrid models
Technical field
The present invention relates to technical field of image processing, be specifically related to a kind of image based on gauss hybrid models and increase Strong algorithms.
Background technology
Image information is more and more used by people to identify and judge things, solves actual problem.But by In factors such as weather brightness, conditions of exposures, cause brightness of image dark the fuzzyyest, tend not to meet and answer Demand, this can badly influence the identification to target.This class image typically presents gray level and compares Concentrating, the characteristic that the contrast of image is low, therefore, the contrast improving image carries out later stage process to image It is very important.Histogram modification technology receives publicity because of its simple easily realization.Wherein, rectangular histogram Equalize and be used widely in terms of improving picture contrast, but be currently based on the enhancing algorithm of histogram equalization Luminance saturation, loss in detail or the phenomenon of amplification noise easily occur.
Summary of the invention
In order to improve the definition of image, the invention provides a kind of image enhancement technique, can effectively carry The contrast of hi-vision, can keep image detail and prevent the excessive tensile of gray level simultaneously.
It is as follows that the present invention solves the technical scheme that technical problem taked:
A kind of algorithm for image enhancement based on gauss hybrid models includes:
The first step, the luminance component of coloured image is added up into rectangular histogram, rectangular histogram is carried out mixed Gaussian and builds Mould;
Assuming that X is input picture, data are histogram data h (x)={ h (x1),h(x2),...,h(xN), its gray level Probability distribution is p (x), then the rectangular histogram of image utilizes GMM to construct M Gaussian clustering linear hybrid Form, i.e.
p ( x ) = Σ n = 1 M P ( w n ) p ( x | w n ) - - - ( 1 )
In formula (1), and p (x | wn) it is the probability density function of the n-th cluster, P (wn) it is the weighting of the n-th cluster Coefficient;
The EM algorithm that second step, utilization improve carries out gauss hybrid models estimation to rectangular histogram, finds likelihood The parameter of function expectation maximization, self adaptation determines optimal number of clusters simultaneously;
The EM algorithm of above-mentioned improvement is as follows:
1) E step, by data X and current estimationCalculate the expected value of possibility predication, by formula (2) by the condition phase Prestige p (x | wn) obtain p (wn| x), then obtained final expectation function by formula (3):
p ( w n | x ) = p ( x | w n ) P ( w n ) Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 2 )
Q ( θ , θ t ^ ) ) = E [ l ( θ ) | θ ^ ] = Σ x ∈ L Σ n = 1 M p ( w n | x ) h ( x ) log [ P ( w n ) p ( x | w n ) ] - - - ( 3 )
In formula (3), p (wn| x) represent with the t time iteration resultProbability density function as parameter;
2) M step, obtains satisfiedMaximized parameter With P (wn) according to following equation Renewal is tried to achieve
μ w n = Σ x ∈ L h ( x ) p ( w n | x ) x Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 4 )
σ w n 2 = Σ x ∈ L h ( x ) p ( w n | x ) ( x - μ w n ) 2 Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 5 )
P ( w n ) = Σ x ∈ L h ( x ) p ( w n | x ) Σ x ∈ L h ( x ) - - - ( 6 )
In formula, h (x) is the rectangular histogram of statistical pixel number;p(wn| x) by p (x | wn) obtained by Bayesian formula; Application fitting function l (θ | x) state that tends to be steady judgement iteration stopping, choosing before and after's difference here is 10-5For stopping Only condition, selects to make iteration most stable of cluster number gather as final in minimum and maximum number of clusters Class quantity;
l ( θ | x ) = 1 2 Σ n = 1 M log ( nP ( w n ) 12 ) + M 2 log n 12 + M - log p ( w n | x ) - - - ( 7 )
Finally obtaining the rectangular histogram approached, N is image maximum gray scale, and the form of expression is as follows
h ^ ( x ) = N × Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 8 )
3rd step, according to the intersection point of neighboring clusters by rectangular histogram subregion, it is thus achieved that many sub-rectangular histograms;
4th step, according to having that sub-rectangular histogram cumulative probability density CDF of mapping relations is equal and finding mapping after Gaussian clustering parameter, and then by the cumulative probability Density Weighted of Gaussian clustering and the mapping letter trying to achieve gray value Number, and apply holding maximum entropy method to tend to human visual system inching mapping function, obtain final increasing Strong image.
The medicine have the advantages that this algorithm can keep image detail effectively, also prevent gray level simultaneously The luminance saturation phenomenon that overstretching causes, is effectively improved the contrast of image, strengthens image and either exists Subjective vision perceptible aspect or objective evaluation aspect all achieves good effect.
Accompanying drawing explanation
Gauss hybrid models (GMM) when Fig. 1 is k=3 approaches rectangular histogram.
Fig. 2 is the mapping curve as u=0.5 and u=0.2.
Fig. 3 is the experimental result picture before and after using the inventive method to strengthen.
Detailed description of the invention
Below in conjunction with the accompanying drawings the present invention is described in further details.
Present invention algorithm for image enhancement based on gauss hybrid models, its step is as follows:
First, the luminance component of coloured image is added up into rectangular histogram, rectangular histogram is carried out Gaussian modeling, I.e. initialize Gaussian parameter.Gauss hybrid models (GaussianMixtureModeling, GMM) is to have not The Gauss distribution linear hybrid of same parameter, the corresponding class mean of each Gaussian clustering, variance and weight coefficient. Assuming that X is input picture, data are histogram data h (x)={ h (x1),h(x2),...,h(xN), the probability of its gray level Be distributed as p (x), then the rectangular histogram of image can utilize GMM to construct M Gaussian clustering linear hybrid Form, i.e.
p ( x ) = Σ n = 1 M P ( w n ) p ( x | w n ) - - - ( 1 )
In formula (1), and p (x | wn) it is the probability density function of the n-th cluster, P (wn) it is the weight coefficient of the n-th cluster.
Secondly, EM algorithm (Expectation-maximizationalgorithm, the greatest hope of application enhancements Algorithm), rectangular histogram is carried out gauss hybrid models (GMM) and estimates, find likelihood function expectation maximization Parameter, self adaptation determines optimal number of clusters (need not arrange parameter for different images) simultaneously.Change The EM algorithm entered can be directly applied on histogram data, saves storage sky compared to processing image array Between, and improve processing speed.Improve EM algorithm be mainly reflected in M step, add rectangular histogram with Gray-scale information, decreases amount of calculation, constantly updates average, variance and weight coefficient by iteration.EM calculates Method detailed process is as follows:
1) E step, by data X and current estimationCalculate the expected value of possibility predication, by formula (2) by the condition phase Prestige p (x | wn) obtain p (wn| x), then obtained final expectation function by formula (3):
p ( w n | x ) = p ( x | w n ) P ( w n ) Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 2 )
Q ( θ , θ t ^ ) ) = E [ l ( θ ) | θ ^ ] = Σ x ∈ L Σ n = 1 M p ( w n | x ) h ( x ) log [ P ( w n ) p ( x | w n ) ] - - - ( 3 )
In formula (3), p (wn| x) represent with the t time iteration resultProbability density function as parameter.
2) M step, obtains satisfiedMaximized parameter With P (wn) according to following public affairs Formula updates tries to achieve
μ w n = Σ x ∈ L h ( x ) p ( w n | x ) x Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 4 )
σ w n 2 = Σ x ∈ L h ( x ) p ( w n | x ) ( x - μ w n ) 2 Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 5 )
P ( w n ) = Σ x ∈ L h ( x ) p ( w n | x ) Σ x ∈ L h ( x ) - - - ( 6 )
In formula, h (x) is the rectangular histogram of statistical pixel number.p(wn| x) by p (x | wn) obtained by Bayesian formula. Application fitting function l (θ | x) state that tends to be steady judgement iteration stopping, choosing before and after's difference here is 10-5For stopping Only condition, selects to make iteration most stable of cluster number gather as final in minimum and maximum number of clusters Class quantity.
l ( θ | x ) = 1 2 Σ n = 1 M log ( nP ( w n ) 12 ) + M 2 log n 12 + M - log p ( w n | x ) - - - ( 7 )
Finally obtaining the rectangular histogram approached, N is image maximum gray scale, and the form of expression is as follows
h ^ ( x ) = N × Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 8 )
Then, according to the intersection point of neighboring clusters by rectangular histogram subregion, it is thus achieved that many sub-rectangular histograms.Such as Fig. 1 institute Showing, optimum cluster number M=3, the hollow small circle of Lycoperdon polymorphum Vitt represents the significant intersection point of Gaussian clustering, i.e. subregion Point.The solid small circle of Lycoperdon polymorphum Vitt represents the end points of rectangular histogram dynamic range.According to intersection point and end points, rectangular histogram is divided It is four parts, it is ensured that each subinterval has a Gaussian clustering to occupy an leading position.
Finally, gathering after finding mapping according to sub-rectangular histogram accumulated probability density CDF having mapping relations is equal Gaussian parameter corresponding in class, i.e. output image, wherein, weight coefficient is constant, and formula is as follows
μ w k ′ = ( x s ( k ) - μ w k x s ( k + 1 ) - μ w k y ( k + 1 ) - y ( k ) ) ( x s ( k ) - μ w k x s ( k + 1 ) - μ w k - 1 ) - - - ( 9 )
σ w k ′ = ( y ( k ) - μ w k ′ ) x s ( k + 1 ) - μ w k σ w k - - - ( 10 )
Mapping function is tried to achieve by cluster weighted sums all in GMM, will not be answered by original equalization algorithm here Crossing enhancing phenomenon with what accumulated probability density caused, formula is as follows
y = Σ i = 1 N ( ( x - μ w k σ w k ) σ w k ′ + μ w k ′ ) P ( w i ) - - - ( 11 )
Final mapping function application holding maximum entropy method tends to human visual system and is adjusted, and is increased Image after Qiang.To asking entropy formula derivation, obtain extreme point, i.e. maximum entropy point.Application Lagrange multiplier Method finds brightness of image uySolution, i.e.
u y = λ e λ - e λ + 1 λ ( e λ - 1 ) - - - ( 12 )
It is thus known that uyAfter, there is a unique λ the most corresponding, it is possible to found finally by formula (10) Mapping relations.
c ( y ) = ∫ 0 y f ( t ) = y , if u y = 0.5 e λy - 1 e λ - 1 , if u y ∈ ( 0,0.5 ) ∪ ( 0.5,1 ) - - - ( 13 )
According to the visual characteristic of human eye, human eye is relatively strong, to high grade grey level identification energy to low gray level identification ability Power is more weak.As in figure 2 it is shown, during u=0.5, c (y) function is linearly;During u=0.2, c (y) is a concave function. By being adjusted function after mapping, low gray level is suitably compressed, and high grade grey level suitably stretches so that it is more Level off to human visual system, and then improve the recognizable ability of image.
Fig. 3 is three groups of experimental result pictures after using present invention algorithm for image enhancement based on gauss hybrid models.

Claims (1)

1. an algorithm for image enhancement based on gauss hybrid models, it is characterised in that this algorithm includes as follows Step:
The first step, the luminance component of coloured image is added up into rectangular histogram, rectangular histogram is carried out mixed Gaussian and builds Mould;
Assuming that X is input picture, data are histogram data h (x)={ h (x1),h(x2),...,h(xN), its gray level Probability distribution is p (x), then the rectangular histogram of image utilizes GMM to construct M Gaussian clustering linear hybrid Form, i.e.
p ( x ) = Σ n = 1 M P ( w n ) p ( x | w n ) - - - ( 1 )
In formula (1), and p (x | wn) it is the probability density function of the n-th cluster, P (wn) it is the weighting of the n-th cluster Coefficient;
The EM algorithm that second step, utilization improve carries out gauss hybrid models estimation to rectangular histogram, finds likelihood The parameter of function expectation maximization, self adaptation determines optimal number of clusters simultaneously;
The EM algorithm of above-mentioned improvement is as follows:
1) E step, by data X and current estimationCalculate the expected value of possibility predication, by formula (2) by the condition phase Prestige p (x | wn) obtain p (wn| x), then obtained final expectation function by formula (3):
p ( w n | x ) = p ( x | w n ) P ( w n ) Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 2 )
Q ( θ , θ t ^ ) ) = E [ l ( θ ) | θ ^ ] = Σ x ∈ L Σ n = 1 M p ( w n | x ) h ( x ) log [ P ( w n ) p ( x | w n ) ] - - - ( 3 )
In formula (3), p (wn| x) represent with the t time iteration resultProbability density function as parameter;
2) M step, obtains satisfiedMaximized parameter With P (wn) according to following equation Renewal is tried to achieve
μ w n = Σ x ∈ L h ( x ) p ( w n | x ) x Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 4 )
σ w n 2 = Σ x ∈ L h ( x ) p ( w n | x ) ( x - μ w n ) 2 Σ x ∈ L h ( x ) p ( w n | x ) - - - ( 5 )
P ( w n ) = Σ x ∈ L h ( x ) p ( w n | x ) Σ x ∈ L h ( x ) - - - ( 6 )
In formula, h (x) is the rectangular histogram of statistical pixel number;p(wn| x) by p (x | wn) obtained by Bayesian formula; Application fitting function l (θ | x) state that tends to be steady judgement iteration stopping, choosing before and after's difference here is 10-5For stopping Only condition, selects to make iteration most stable of cluster number gather as final in minimum and maximum number of clusters Class quantity;
l ( θ | x ) = 1 2 Σ n = 1 M log ( nP ( w n ) 12 ) + M 2 log n 12 + M - log p ( w n | x ) - - - ( 7 )
Finally obtaining the rectangular histogram approached, N is image maximum gray scale, and the form of expression is as follows
h ^ ( x ) = N × Σ n = 1 M p ( x | w n ) P ( w n ) - - - ( 8 )
3rd step, according to the intersection point of neighboring clusters by rectangular histogram subregion, it is thus achieved that many sub-rectangular histograms;
4th step, according to having that sub-rectangular histogram cumulative probability density CDF of mapping relations is equal and finding mapping after Gaussian clustering parameter, and then by the cumulative probability Density Weighted of Gaussian clustering and the mapping letter trying to achieve gray value Number, and apply holding maximum entropy method to tend to human visual system inching mapping function, obtain final increasing Strong image.
CN201410093657.7A 2014-03-13 2014-03-13 A kind of algorithm for image enhancement based on gauss hybrid models Active CN103914811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410093657.7A CN103914811B (en) 2014-03-13 2014-03-13 A kind of algorithm for image enhancement based on gauss hybrid models

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410093657.7A CN103914811B (en) 2014-03-13 2014-03-13 A kind of algorithm for image enhancement based on gauss hybrid models

Publications (2)

Publication Number Publication Date
CN103914811A CN103914811A (en) 2014-07-09
CN103914811B true CN103914811B (en) 2016-10-19

Family

ID=51040469

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410093657.7A Active CN103914811B (en) 2014-03-13 2014-03-13 A kind of algorithm for image enhancement based on gauss hybrid models

Country Status (1)

Country Link
CN (1) CN103914811B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105701780B (en) * 2016-01-12 2018-09-28 中国科学院深圳先进技术研究院 a kind of remote sensing image processing method and system
CN106161984B (en) * 2016-08-31 2020-03-31 钧捷智能(深圳)有限公司 Video image highlight suppression, contour and detail enhancement processing method and system
JP7072765B2 (en) * 2017-01-31 2022-05-23 株式会社アイシン Image processing device, image recognition device, image processing program, and image recognition program
CN110400260B (en) * 2018-04-25 2022-07-29 展讯通信(上海)有限公司 Image processing method and device
CN109740638B (en) * 2018-12-14 2023-02-17 广东水利电力职业技术学院(广东省水利电力技工学校) Method and device for clustering two-dimensional histogram of EM algorithm
CN109712146B (en) * 2018-12-14 2023-06-09 广东水利电力职业技术学院(广东省水利电力技工学校) EM multi-threshold image segmentation method and device based on histogram
CN110956593A (en) * 2019-11-20 2020-04-03 南京拓控信息科技股份有限公司 Gauss mixed gray level train wheel tread image enhancement method based on gray wolf optimization
CN111050211B (en) * 2019-12-13 2021-10-26 广州酷狗计算机科技有限公司 Video processing method, device and storage medium
CN111709344B (en) * 2020-06-09 2023-10-17 上海海事大学 EPLL image illumination removal recognition processing method based on Gaussian mixture model
CN112446841B (en) * 2020-12-14 2022-05-31 中国科学院长春光学精密机械与物理研究所 Self-adaptive image recovery method
CN112700383A (en) * 2020-12-30 2021-04-23 南京齿贝犀科技有限公司 Tooth image enhancement method based on Bayesian estimation filtering
CN113436103A (en) * 2021-06-28 2021-09-24 扆亮海 Tone and contrast mapping method based on optimal human vision
CN113971796A (en) * 2021-09-27 2022-01-25 上海赫千电子科技有限公司 Intelligent vehicle-mounted box and driving fatigue monitoring method
CN115170507B (en) * 2022-07-06 2022-11-08 鄄城鑫磊交通工程材料有限公司 Grouting pipe surface defect detection method and system based on image data
CN115082507B (en) * 2022-07-22 2022-11-18 聊城扬帆田一机械有限公司 Intelligent regulation and control system of pavement cutting machine
CN117392038B (en) * 2023-12-05 2024-03-08 北京智源人工智能研究院 Medical image histogram equalization method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310429A (en) * 2013-03-06 2013-09-18 西安电子科技大学 Image enhancement method based on hidden Markov tree (HMT) model in directionlet domain

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9240034B2 (en) * 2012-06-08 2016-01-19 Advanced Micro Devices, Inc. Biomedical data analysis on heterogeneous platform

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103310429A (en) * 2013-03-06 2013-09-18 西安电子科技大学 Image enhancement method based on hidden Markov tree (HMT) model in directionlet domain

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Automatic Image Equalization and Contrast Enhancement Using Gaussian Mixture Modeling;Turgay Celik等;《IEEE TRANSACTIONS ON IMAGE PROCESSING》;20120131;第21卷(第1期);第145-156页 *
一种基于高斯混合模型的改进EM算法研究;宋磊 等;《应用光学》;20131130;第34卷(第6期);第985-989页 *
基于多尺度Retinex理论的遥感图像增强算法;李建存;《西安工业大学学报》;20140131;第34卷(第1期);第27-33页 *

Also Published As

Publication number Publication date
CN103914811A (en) 2014-07-09

Similar Documents

Publication Publication Date Title
CN103914811B (en) A kind of algorithm for image enhancement based on gauss hybrid models
Naidu et al. Shannon and fuzzy entropy based evolutionary image thresholding for image segmentation
CN108986050B (en) Image and video enhancement method based on multi-branch convolutional neural network
CN113313657B (en) Unsupervised learning method and system for low-illumination image enhancement
CN101882304B (en) Self-adaptive de-noising and characteristic enhancing method of SAR (Synthetic Aperture Radar) image
CN110349185B (en) RGBT target tracking model training method and device
CN110288550B (en) Single-image defogging method for generating countermeasure network based on priori knowledge guiding condition
CN109919880A (en) A kind of infrared image enhancing method based on particle group optimizing
CN102567973A (en) Image denoising method based on improved shape self-adaptive window
CN111047543A (en) Image enhancement method, device and storage medium
CN111047603A (en) Aerial image hybrid segmentation algorithm based on novel Markov random field and region combination
CN109377464A (en) A kind of Double plateaus histogram equalization method and its application system of infrared image
CN110827299B (en) Image segmentation method based on Harris eagle optimization algorithm
CN104636497A (en) Intelligent video data retrieval method
CN103700077A (en) Human visual characteristic-based adaptive image enhancement method
Mishra et al. A multilevel image thresholding using particle swarm optimization
CN104915933B (en) A kind of Misty Image Enhancement Method based on APSO-BP coupling algorithm
CN103530866A (en) Image processing method and device based on Gaussian cloud transformation
CN109285171A (en) A kind of insulator hydrophobicity image segmentation device and method
CN116341650B (en) Noise self-training-based railway wagon bolt loss detection method
Irie et al. Robust learning for deep monocular depth estimation
CN107045713A (en) Enhancement method of low-illumination image based on census Stereo matchings
Pal Visibility enhancement of fog degraded image sequences on SAMEER TU dataset using dark channel strategy
CN105335978A (en) Image edge detection method and system
CN114078138A (en) Image significance detection method and device

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