CN105118029A - Medical image enhancement method based on human eye visual characteristic - Google Patents
Medical image enhancement method based on human eye visual characteristic Download PDFInfo
- Publication number
- CN105118029A CN105118029A CN201510489275.0A CN201510489275A CN105118029A CN 105118029 A CN105118029 A CN 105118029A CN 201510489275 A CN201510489275 A CN 201510489275A CN 105118029 A CN105118029 A CN 105118029A
- Authority
- CN
- China
- Prior art keywords
- medical image
- image
- visual characteristic
- enhancement method
- method based
- 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.)
- Pending
Links
Landscapes
- Image Analysis (AREA)
Abstract
The present invention provides a medical image enhancement method based on a human eye visual characteristic, belonging to the field of digital image processing. The method comprises the steps of (S1) inputting a medical image needed to be enhanced, converting the medical image to an HSV space from an RGB space, and obtaining a brightness component v (x, y), a hue component h (x, y) and a saturation component s (x, y), (S2) defining an adaptive correction function according to a brightness histogram cumulative distribution function, obtaining adjustment parameters k and c, (S3) according to the brightness component v (x, y) and the adjustment parameters k and c, using a modified TAN function to calculate and obtain an adjusted brightness component v' (x, y), (S4) according to the image mean value I<-> after brightness adjustment, judging whether the parameter c needs to be adjusted finely, if so, carrying out fine adjustment to obtain a new parameter c', replacing c with c', then returning to the step S3, and if not, going to step (S5).
Description
Technical field
The invention belongs to digital image processing field, be specifically related to a kind of medical image enhancement method based on human-eye visual characteristic.
Background technology
Medical image enhancement process needs the mainly brightness regulation of solution and colour detail to strengthen problem, and the image enchancing method of routine exists a lot of weak point, is difficult to the object realizing medical image enhancement.Retinex algorithm is to realize color constancy for original intention, human-eye visual characteristic is utilized to carry out brightness adjustment and colour detail enhancing to image, obtained the color of this pixel by the relative relationship between light and dark calculated between each pixel, there is good high dynamic range compression effect and for medical image, there is good performance equally.Retinex algorithm proposed till now since 1963, domestic and international researcher successively to propose based on Retinex, the random walk Retinex of Variation Model, pyramid iteration Retinex, retina by center, territory/variously to improve one's methods around Retinex and other, to have become in real image reproduction algorithm an important branch.
Although Retinex algorithm is a kind of outstanding algorithm for image enhancement, also there is a lot of defect in it simultaneously, and such as cannot meet the brightness change of different light in the luminance compression of log-domain, adaptive faculty is not high.Multiple dimensioned superposition causes calculation of complex, and speed is slow.The color component of RGB tri-passages is processed respectively, easily causes color quantization noise, produce the phenomenon such as halation and albefaction, on image enhaucament generation impact in various degree.
Summary of the invention
The object of the invention is to solve the difficult problem existed in above-mentioned prior art, a kind of medical image enhancement method based on human-eye visual characteristic is provided, the problem of effective solution image light and shade inequality, and strengthen image local details, the color representation of former figure can be kept simultaneously.
The present invention is achieved by the following technical solutions:
Based on a medical image enhancement method for human-eye visual characteristic, comprising:
S1, input needs the medical image strengthened, and it is transformed into HSV space from rgb space, obtains luminance component v (x, y), chrominance component h (x, y) and saturation degree component s (x, y);
S2, according to image brightness histogram cumulative distribution function definition adaptive correction function, obtains regulating parameter k and c;
S3, according to luminance component v (x, y) and regulating parameter k and c, the luminance component v ' (x, y) after utilizing revised TAN function to calculate adjustment;
S4, according to carrying out the image average after brightness adjustment
judge whether to need to finely tune parameter c, if so, then carry out finely tuning obtaining new parameter c ', and replace c with c ', then return S3, if not, then enter S5;
S5, strengthens the luminance component v " (x, y) after obtaining local detail enhancing to local detail;
S6, by v, " chrominance component that (x, y) and S1 obtain is converted into RGB and obtains output image together with saturation degree component.
In described S1, it is transformed into HSV space from rgb space to be achieved in that
If (r, g, b) is the red, green and blue coordinate of a color respectively, they are value real numbers between 0 to 1; If max is the maximum in r, g and b, if min is the reckling in r, g and b, obtain:
V=max, h, s, v represent chrominance component h (x, y), saturation degree component s (x, y) and luminance component v (x, y) respectively.
Described S2 is achieved in that
According to image brightness histogram cumulative distribution function definition adaptive correction function:
Wherein C
arepresent that gray level is the image cumulative distribution of a, C
brepresent that gray level is the image cumulative distribution of b, a, b represent the ratio shared by dark areas and bright area respectively here; C
aand C
ball be less than 1, meet k < 0.5
T
1, T
2be respectively bright, dark statistical threshold.
Get a=50, b=200, get T
1, T
2be respectively 0.2,0.8.
Revised TAN function in described S3 is as follows:
Wherein 0 < k < 0.5,0≤c≤m
k; v
maxbe 255, m
krelevant to k.
Basis in described S4 carries out the image average after brightness adjustment
judge whether to need to finely tune parameter c, if so, then carry out finely tuning obtaining new parameter c ' and be achieved in that
Image average
be by the brightness of each pixel in image is added up, then obtain divided by the number of pixel;
Wherein, T
3with T
4be respectively and judge that integral image crosses dark and excessively bright threshold value.
T
3with T
4be respectively 100 and 180.
Described S5 is achieved in that
Operator below and v ' (x, y) convolutional calculation are obtained v " (x, y):
Described S6 is achieved in that
If (h, s, v) is the tone of a color, saturation degree and lightness dimension respectively, they are at the real number of value between 0 to 1;
h
i=hmod60
p=v×(1-s)
q=v×(1-f×s)
t=v×(1-(1-f)×s)
Compared with prior art, the invention has the beneficial effects as follows: the inventive method introduces the TAN function nonlinear adaptive curve of correction and the two antagonism Side-inhibition Model of ON/OFF of improvement, form a kind of enhancing algorithm of applicable medical image, efficiently solve the problem of image light and shade inequality, and enhance image local details, the color representation of former figure can be kept simultaneously, compared with similar algorithm for image enhancement, this method calculating is easy, universality good, visual effect is outstanding, meets the specific demand of medical image enhancement.
Accompanying drawing explanation
The two antagonism Side-inhibition Model of the ON/OFF that Fig. 1 improves
The step block diagram of Fig. 2 the inventive method
Former figure in Fig. 3 embodiment of the present invention
The figure of Fig. 4 after the inventive method process.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described in further detail:
The present invention, for the purpose of image enhaucament, first proposes a kind of non-linear global map model, introduces the brightness regulation mechanism that TAN function is also improved imitation pupil, according to the integral brightness level of the statistical property self-adaptative adjustment image of image.Afterwards according to the lateral inhibition compete mechanism of pathways for vision, propose a kind of two antagonism lateral inhibition response models of improvement, the image after brightness adjustment is carried out to the enhancing of regional area details, improve picture contrast.
The inventive method as shown in Figure 2, comprising:
Because RGB color space has higher color correlativity, therefore first image (namely needing the medical image strengthened) is transformed into the less HSV space of color correlation from rgb space, obtain luminance component v (x, y), chrominance component h (x, and saturation degree component s (x, y), and only process luminance component y).
The method being transformed into the less HSV space of color correlation from rgb space is specific as follows:
If (r, g, b) is the red, green and blue coordinate of a color respectively, they are at the real number of value between 0 to 1.If max is the maximum in r, g and b.If min is the reckling in r, g and b, can obtain:
v=max。
In order to the integral brightness level of energy self-adaptative adjustment image, introduce the TAN function with flexible mapping ability here, and can export correction by regulating parameter k and c to this function, formula is:
When using of the present invention, luminance component v (x, y) is substituted into above formula, and utilize k and c below to obtain v ' (x, y), v ' (x, y) represents the luminance component after calculating adjustment.
Wherein 0 < k < 0.5,0≤c≤m
k.V
maxgenerally be set to 255, m
krelevant to k (in above formula, as long as ensure as v (x, y) value is when (0,1), obtains v ' (x, y) value is also (0,1) between, so need to limit the span of k and c, after the span of the value of in k and c is determined, the span of another value is also determined thereupon), ensure that the output of TAN function can not be overflowed.Revised TAN function is applicable to the medical image of different light and shadow characteristics.
In order to make this function have better universality, then according to image brightness histogram cumulative distribution function definition adaptive correction function:
Wherein C
arepresent that gray level is the image cumulative distribution of a, C
brepresent that gray level is the image cumulative distribution of b, a=50, b=200 (a, b two be worth do not fix, be empirical value, without concrete scope), represent dark areas and the ratio shared by bright area respectively here.T
1, T
2be respectively light and shade statistical threshold, be respectively 0.2 and 0.8 (being empirical value, without concrete scope) here.C
aand C
ball be less than 1, (according to above formula, 0.2 and 0.35 is all less than 0.5, works as C to meet k < 0.5
aand C
bwhen being all less than 1,
be less than 0.5).
The image average after brightness adjustment is carried out according to above formula
(brightness of each for image pixel added up, then divided by the number of pixel) judge effect, again processes if desired to small parameter perturbations, specific as follows:
T
3with T
4be respectively and judge that integral image crosses dark and excessively bright threshold value, be respectively 100 and 180 (empirical value, without concrete scopes) here.
After have adjusted integral image luminance level, need to strengthen local detail further, introduce a kind of two antagonism Side-inhibition Model of ON/OFF of improvement here, as shown in Figure 1, can obtain stable state output according to this model is
Consider the time resolution characteristics of the two antagonism of ON/OFF, the Transient Equations of above formula is
Order
Output is reduced to
Reasonable setting
with
value (
get 2.5,
get 0.5, empirical value), obtain best enhancing effect, when specifically using,
When
get 2.5,
when getting 0.5, above formula becomes
Visually make operator
0 | -1 | 0 |
-1 | 5 | -1 |
0 | -1 | 0 |
This operator and v ' (x, y) convolutional calculation are obtained v " (x, y).
Finally also needing v " (x, y) and original chrominance component are converted into RGB and obtain output image together with saturation degree component, specific as follows:
If (h, s, v) is the tone of a color, saturation degree and lightness dimension respectively, they are at the real number of value between 0 to 1.
h
i=hmod60
p=v×(1-s)
q=v×(1-f×s)
t=v×(1-(1-f)×s)
As shown in Figure 3 and Figure 4, wherein Fig. 3 is former figure to one embodiment of the present of invention, and brightness of image is uneven, and center is to the left a hot spot; Image detail is not good, is embodied in cell and lacks unity and coherence, and edge contour is not outstanding.Fig. 4 is the result figure after using this method, and brightness disproportionation problem is resolved, and cell is well arranged, and edge contour is clear, has good visual effect.
Technique scheme is one embodiment of the present invention, for those skilled in the art, on the basis that the invention discloses application process and principle, be easy to make various types of improvement or distortion, and the method be not limited only to described by the above-mentioned embodiment of the present invention, therefore previously described mode is just preferred, and does not have restrictive meaning.
Claims (9)
1. based on a medical image enhancement method for human-eye visual characteristic, it is characterized in that: described method comprises:
S1, input needs the medical image strengthened, and it is transformed into HSV space from rgb space, obtains luminance component v (x, y), chrominance component h (x, y) and saturation degree component s (x, y);
S2, according to image brightness histogram cumulative distribution function definition adaptive correction function, obtains regulating parameter k and c
S3, according to luminance component v (x, y) and regulating parameter k and c, the luminance component v ' (x, y) after utilizing revised TAN function to calculate adjustment;
S4, according to carrying out the image average after brightness adjustment
judge whether to need to finely tune parameter c, if so, then carry out finely tuning obtaining new parameter c ', and replace c with c ', then return S3, if not, then enter S5;
S5, strengthens the luminance component v " (x, y) after obtaining local detail enhancing to local detail;
S6, by v, " chrominance component that (x, y) and S1 obtain is converted into RGB and obtains output image together with saturation degree component.
2. the medical image enhancement method based on human-eye visual characteristic according to claim 1, is characterized in that: in described S1, it is transformed into HSV space from rgb space and is achieved in that
If (r, g, b) is the red, green and blue coordinate of a color respectively, they are value real numbers between 0 to 1; If max is the maximum in r, g and b, if min is the reckling in r, g and b, obtain:
V=max, h, s, v represent chrominance component h (x, y), saturation degree component s (x, y) and luminance component v (x, y) respectively.
3. the medical image enhancement method based on human-eye visual characteristic according to claim 2, is characterized in that: described S2 is achieved in that
According to image brightness histogram cumulative distribution function definition adaptive correction function:
Wherein C
arepresent that gray level is the image cumulative distribution of a, C
brepresent that gray level is the image cumulative distribution of b, a, b represent the ratio shared by dark areas and bright area respectively here; C
aand C
ball be less than 1, meet k < 0.5T
1, T
2be respectively bright, dark statistical threshold.
4. the medical image enhancement method based on human-eye visual characteristic according to claim 3, is characterized in that: get a=50, b=200, gets T
1, T
2be respectively 0.2,0.8.
5. the medical image enhancement method based on human-eye visual characteristic according to claim 4, is characterized in that: the revised TAN function in described S3 is as follows:
Wherein 0 < k < 0.5,0≤c≤m
k; v
maxbe 255, m
krelevant to k.
6. the medical image enhancement method based on human-eye visual characteristic according to claim 5, is characterized in that: the basis in described S4 carries out the image average after brightness adjustment
judge whether to need to finely tune parameter c, if so, then carry out finely tuning obtaining new parameter c ' and be achieved in that
Image average
be by the brightness of each pixel in image is added up, then obtain divided by the number of pixel;
Wherein, T
3with T
4be respectively and judge that integral image crosses dark and excessively bright threshold value.
7. the medical image enhancement method based on human-eye visual characteristic according to claim 6, is characterized in that: T
3with T
4be respectively 100 and 180.
8. the medical image enhancement method based on human-eye visual characteristic according to claim 7, is characterized in that: described S5 is achieved in that
Operator below and v ' (x, y) convolutional calculation are obtained v " (x, y):
9. the medical image enhancement method based on human-eye visual characteristic according to claim 8, is characterized in that: described S6 is achieved in that
If (h, s, v) is the tone of a color, saturation degree and lightness dimension respectively, they are at the real number of value between 0 to 1;
h
i=hmod60
p=v×(1-s)
q=v×(1-f×s)
t=v×(1-(1-f)×s)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510489275.0A CN105118029A (en) | 2015-08-11 | 2015-08-11 | Medical image enhancement method based on human eye visual characteristic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510489275.0A CN105118029A (en) | 2015-08-11 | 2015-08-11 | Medical image enhancement method based on human eye visual characteristic |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105118029A true CN105118029A (en) | 2015-12-02 |
Family
ID=54666004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510489275.0A Pending CN105118029A (en) | 2015-08-11 | 2015-08-11 | Medical image enhancement method based on human eye visual characteristic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105118029A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374018A (en) * | 2015-12-18 | 2016-03-02 | 厦门大学 | Method for performing area enhancement on image |
CN105744118A (en) * | 2016-02-01 | 2016-07-06 | 杭州当虹科技有限公司 | Video enhancing method based on video frame self-adaption and video enhancing system applying the video enhancing method based on video frame self-adaption |
CN106023117A (en) * | 2016-06-01 | 2016-10-12 | 哈尔滨工业大学(威海) | Backlighting image restoration method based on non-linear brightness improving model |
CN107393504A (en) * | 2017-09-11 | 2017-11-24 | 青岛海信电器股份有限公司 | Picture adjustment methods and device based on RGBW panels |
CN108604370A (en) * | 2016-09-30 | 2018-09-28 | 华为技术有限公司 | A kind of display methods and terminal at rectangle frame edge |
CN115514946A (en) * | 2022-11-22 | 2022-12-23 | 广州匠芯创科技有限公司 | Method, system, electronic device and storage medium for adjusting image quality |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005002205A1 (en) * | 2003-06-25 | 2005-01-06 | Nikon Corporation | Image processing device and image correction program |
US20090109234A1 (en) * | 2007-10-25 | 2009-04-30 | Samsung Electronics Co., Ltd. | Display apparatus and method of image enhancement thereof |
CN102682436A (en) * | 2012-05-14 | 2012-09-19 | 陈军 | Image enhancement method on basis of improved multi-scale Retinex theory |
CN102789635A (en) * | 2012-07-18 | 2012-11-21 | 奇瑞汽车股份有限公司 | Image enhancement method and image enhancement device |
-
2015
- 2015-08-11 CN CN201510489275.0A patent/CN105118029A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2005002205A1 (en) * | 2003-06-25 | 2005-01-06 | Nikon Corporation | Image processing device and image correction program |
US20090109234A1 (en) * | 2007-10-25 | 2009-04-30 | Samsung Electronics Co., Ltd. | Display apparatus and method of image enhancement thereof |
CN102682436A (en) * | 2012-05-14 | 2012-09-19 | 陈军 | Image enhancement method on basis of improved multi-scale Retinex theory |
CN102789635A (en) * | 2012-07-18 | 2012-11-21 | 奇瑞汽车股份有限公司 | Image enhancement method and image enhancement device |
Non-Patent Citations (2)
Title |
---|
DONALD HEARN & M.PAULINE BAKER: "《计算机图形学》", 30 April 1998, 电子工业出版社 * |
吕丽丽 等: "基于人眼视觉特性的高动态范围彩色图像自适应增强方法", 《北京理工大学学报》 * |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105374018A (en) * | 2015-12-18 | 2016-03-02 | 厦门大学 | Method for performing area enhancement on image |
CN105374018B (en) * | 2015-12-18 | 2018-10-19 | 厦门大学 | A method of region enhancing is carried out to image |
CN105744118A (en) * | 2016-02-01 | 2016-07-06 | 杭州当虹科技有限公司 | Video enhancing method based on video frame self-adaption and video enhancing system applying the video enhancing method based on video frame self-adaption |
CN105744118B (en) * | 2016-02-01 | 2018-11-30 | 杭州当虹科技有限公司 | A kind of video enhancement method and video enhancement systems based on video frame adaptive |
CN106023117A (en) * | 2016-06-01 | 2016-10-12 | 哈尔滨工业大学(威海) | Backlighting image restoration method based on non-linear brightness improving model |
CN106023117B (en) * | 2016-06-01 | 2019-02-19 | 哈尔滨工业大学(威海) | Backlight image recovery method based on non-linear brightness lift scheme |
CN108604370A (en) * | 2016-09-30 | 2018-09-28 | 华为技术有限公司 | A kind of display methods and terminal at rectangle frame edge |
US10692194B2 (en) | 2016-09-30 | 2020-06-23 | Huawei Technologies Co., Ltd. | Method and terminal for displaying edge of rectangular frame |
CN108604370B (en) * | 2016-09-30 | 2020-12-01 | 华为技术有限公司 | Display method of rectangular frame edge and terminal |
CN107393504A (en) * | 2017-09-11 | 2017-11-24 | 青岛海信电器股份有限公司 | Picture adjustment methods and device based on RGBW panels |
CN107393504B (en) * | 2017-09-11 | 2020-02-14 | 青岛海信电器股份有限公司 | RGBW panel-based image adjusting method and device |
CN115514946A (en) * | 2022-11-22 | 2022-12-23 | 广州匠芯创科技有限公司 | Method, system, electronic device and storage medium for adjusting image quality |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105118029A (en) | Medical image enhancement method based on human eye visual characteristic | |
CN103413275B (en) | Based on the Retinex nighttime image enhancing method of gradient zero Norm minimum | |
CN103295191B (en) | Multiple scale vision method for adaptive image enhancement and evaluation method | |
CN104346776B (en) | Retinex-theory-based nonlinear image enhancement method and system | |
CN104166967B (en) | Method for improving definition of video image | |
CN103606137B (en) | Keep the histogram equalization method of background and detailed information | |
CN104574337B (en) | Based on the image enchancing method that bilateral gamma correction and multi-scale image merge | |
CN104881853A (en) | Skin color rectification method and system based on color conceptualization | |
CN105205794B (en) | A kind of synchronous enhancing denoising method of low-light (level) image | |
CN103530848A (en) | Double exposure implementation method for inhomogeneous illumination image | |
WO2017049703A1 (en) | Image contrast enhancement method | |
CN104182947A (en) | Low-illumination image enhancement method and system | |
CN104581105B (en) | Based on the auto white balance method of colour temperature range conversion weight map and the correction of block reliability | |
CN113129391B (en) | Multi-exposure fusion method based on multi-exposure image feature distribution weight | |
CN109801233B (en) | Method for enhancing true color remote sensing image | |
CN107895350B (en) | HDR image generation method based on self-adaptive double gamma transformation | |
CN103106644B (en) | Overcome the self-adaptation picture quality enhancement method of coloured image inhomogeneous illumination | |
CN103295206B (en) | A kind of twilight image Enhancement Method and device based on Retinex | |
CN106169181A (en) | A kind of image processing method and system | |
CN110298792B (en) | Low-illumination image enhancement and denoising method, system and computer equipment | |
Yang et al. | On the Image enhancement histogram processing | |
CN110009574B (en) | Method for reversely generating high dynamic range image from low dynamic range image | |
CN105184757A (en) | Food image color enhancement method based on color space characteristics | |
Gautam et al. | Efficient color image contrast enhancement using range limited bi-histogram equalization with adaptive gamma correction | |
CN103295205B (en) | A kind of low-light-level image quick enhancement method based on Retinex 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151202 |
|
RJ01 | Rejection of invention patent application after publication |