CN104299208A - Self-adaption image brightness processing method and device - Google Patents

Self-adaption image brightness processing method and device Download PDF

Info

Publication number
CN104299208A
CN104299208A CN201410468044.7A CN201410468044A CN104299208A CN 104299208 A CN104299208 A CN 104299208A CN 201410468044 A CN201410468044 A CN 201410468044A CN 104299208 A CN104299208 A CN 104299208A
Authority
CN
China
Prior art keywords
image
component
gray area
gray
module
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
CN201410468044.7A
Other languages
Chinese (zh)
Other versions
CN104299208B (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.)
SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
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 SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd filed Critical SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Priority to CN201410468044.7A priority Critical patent/CN104299208B/en
Publication of CN104299208A publication Critical patent/CN104299208A/en
Application granted granted Critical
Publication of CN104299208B publication Critical patent/CN104299208B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a self-adaption image brightness processing method and device. The method includes the steps of obtaining an image a, carrying out normalization processing on the image a to obtain an image A, converting the image A from the RGB space to the HIS space to obtain an image F, processing a component I of the image F in a specific manner to obtain a component I', combining the component I' with a component S and a component H of the image F to form a new image b, converting the image b from the HIS space to the RGB space to obtain an image B, and outputting the image B. Through analysis of a single-channel histogram, the value of the component I is regulated, the gray level structure of a source image is regulated properly, and the effect of local enhancement of images is achieved.

Description

A kind of disposal route of adapting to image brightness and device
Technical field
The present invention relates to technical field of image processing, particularly relate to a kind of disposal route and device of adapting to image brightness.
Background technology
With mobile phone, camera seeing scenery, personage takes and is kept as a souvenir; be a kind of incomparably satisfied thing, but because we cannot compare with the photographer of specialty, often there will be the lightness taken inadequate; whole poor effect, the face of even picture dimness all cannot be differentiated.In the place that brightness is too strong, image too bright, cannot differentiate some details.At this moment we just need to carry out simple brightness to picture and strengthen process, and traditional brightness strengthens process can be allowed dark picture become to brighten, but original brighter image can become after treatment brighter, some details also can be lost simultaneously.Otherwise, after originally excessively bright image procossing, also can lose some details.
Summary of the invention
The object of the embodiment of the present invention is the disposal route proposing a kind of adapting to image brightness, is intended to solve prior art brightness and strengthens the problem that process can lose image detail.
The embodiment of the present invention is achieved in that a kind of disposal route of adapting to image brightness, and described method comprises:
Obtain image a, image a is normalized, obtain image A;
Image A is converted into HSI space from rgb space and obtains image F;
By ad hoc fashion process, component I ' is obtained to the component I of image F;
By the component S of described component I ' with image F, component H merges into new image b;
Be that rgb space obtains image B by image b from HSI spatial transformation;
Output image B.
Further, described " obtaining component I ' by ad hoc fashion process to the component I of image F " is specially:
Statistics with histogram is carried out to component I, and is normalized and obtains histogram P;
Nogata distribution function p after normalized is divided between n gray area by gray level, and calculates the gray level weight r between each gray area iand the interval weight w calculated between each gray area i; Wherein, after i represents and carries out gray level subregion to histogram P, the sequence number between the gray area be divided into, 1≤i≤n.
Pass through r i, w ibuild between new gray area, and draw each interval weight w ' between gray area new accordingly i;
By w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function;
Determining function f is returned to calculate I ' to the component I of image F by Nogata.
Another object of the embodiment of the present invention is the treating apparatus proposing a kind of adapting to image brightness, and described device comprises:
Image collection module, for obtaining image a;
First normalized module, for being normalized image a, obtains image A;
First space conversion module, obtains image F for image A is converted into HSI space from rgb space;
Component treating apparatus, for pressing ad hoc fashion process to the component I of image F, obtains I ';
Component merges module, and for by the component S of described component I ' with image F, component H merges into new image b;
Second space modular converter, for being that rgb space obtains image B by image b from HSI spatial transformation;
Output module, for output image B.
Further, described component treating apparatus also comprises:
Statistics with histogram module, for carrying out statistics with histogram to component I;
Second normalized module, obtains histogram P for being normalized the component I after statistics with histogram;
Division module, for carrying out subregion by the Nogata distribution function p after normalized by gray level;
Interval gray level weight computation module, for and the gray level weight r calculated between each gray area i;
Interval weight computing module, for calculating the interval weight w between each gray area i
Module is built, for passing through r between gray area i, w ibuild between new gray area;
Interval weight computing module, for calculating the interval weight w ' between each new gray area i;
Nogata returns determining function construction module, for by w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function;
Component computing module, for returning determining function f to calculate I ' to the component I of image F by Nogata.
Beneficial effect of the present invention
A lot of too dark, too bright image can't see details, and it is narrow that this part gray scale of usual image shows to show gray scale span in histogram, and gray-scale value is too concentrated.Therefore in order to make the image section of too much details have larger gray scale span, the simultaneously gray scale range of unimportant part in downscaled images.The inventive method is crossed from single channel histogram analysis, and the value of adjustment component I, suitably the gray-level structure of adjustment source images, achieves the effect of image partial enhance.
Accompanying drawing explanation
Fig. 1 is the process flow figure of a kind of adapting to image brightness of the preferred embodiment of the present invention;
Fig. 2 is the method detailed process flow diagram of step S103 in Fig. 1 process flow diagram;
Fig. 3 carries out the histogram after gray level subregion with threshold value partition method to histogram P;
Fig. 4 is by w i, w ' ithe Nogata of computing function sampling point structure returns determining linear function f;
Fig. 5 is by w i, w ' ithe Nogata of computing function sampling point structure returns determining spline smooth function f;
Fig. 6 is the new histogram P ' after returning determining function f to calculate the component I of image F by Nogata;
Fig. 7 is the treating apparatus structural drawing of a kind of adapting to image brightness of the preferred embodiment of the present invention;
Fig. 8 is the detailed structure view of component treating apparatus in Fig. 7 structural drawing.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention being further elaborated, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
A lot of too dark, too bright image can't see details, and it is narrow that this part gray scale of usual image shows to show gray scale span in histogram, and gray-scale value is too concentrated.Therefore in order to make the image section of too much details have larger gray scale span, the simultaneously gray scale range of unimportant part in downscaled images.The embodiment of the present invention, by from single channel histogram analysis, adjusts the value of component I, and suitably the gray-level structure of adjustment source images, achieves the effect of image partial enhance.
Embodiment one
Fig. 1 is the process flow figure of a kind of adapting to image brightness of the preferred embodiment of the present invention; Said method comprising the steps of:
S101, obtains image a, is normalized image a, obtains image A;
S102, is converted into HSI space by image A from rgb space and obtains image F;
S103, presses ad hoc fashion process to the component I of image F, obtains I ';
Be specially: (Fig. 2 is the method detailed process flow diagram of step S103 in Fig. 1 process flow diagram)
S1031, carries out statistics with histogram to component I, and is normalized and obtains histogram P;
S1032, carries out subregion by the Nogata distribution function p after normalized by gray level, is divided between n gray area, and calculates the gray level weight r between each gray area iand the interval weight w calculated between each gray area i(i.e. length of an interval degree), wherein, after i represents and carries out gray level subregion to histogram P, the sequence number between the gray area be divided into; 1≤i≤n;
The method of the Nogata distribution function p after normalized being carried out to subregion can use threshold value, the methods such as cluster; Use threshold value, the method for cluster subregion is technology well-known in the art, and the present invention is only described threshold value partition method and illustrates.
Threshold value partition method is, sets a threshold value ρ, and in threshold value ρ straight line and histogram P, the horizontal ordinate at the intersection point place of grey value profile curve is the critical point between gray area; And threshold value ρ need meet: as p> ρ, Interval Gray angle value is continuous, and as p< ρ, interval gray-scale value is continuous.Wherein threshold value ρ is the threshold value of (0,1), and p represents Nogata distribution function.
Be illustrated in figure 3 and carry out the histogram after gray level subregion with threshold value partition method to histogram P, histogram P divide between 8 gray areas; Wherein horizontal ordinate is normalized gray-scale value, and ordinate is gray-scale value weight, and the curve in figure is Nogata distribution function p, k 1, k 2, k 3, k 4, k 5, k 6, k 7for the critical point between gray area.
Calculate the gray level weight r between each gray area imethod be:
r i = &Integral; k i - 1 k i p
Wherein, r irepresent the integration of p all in i-th gray area, 1≤i≤n; Be [k between the 1st gray area 0, k 1), be [k between the 2nd gray area 1, k 2) ... be [k between the n-th gray area n-1, k n];
S1033, passes through r i, w ibuild between new gray area, and draw each interval weight w ' between corresponding new gray area i;
W ' i=(1-λ) r i+ λ w i, wherein λ is weight coefficient λ ∈ (0,1);
S1034, by w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function.
The method of computing function sampling point is as follows:
N ( x i , y i ) = ( &Sigma; j = 1 i w j , &Sigma; j = 1 i w j &prime; )
Wherein, N (x i, y i) represent the sampling point of f, x irepresent the horizontal ordinate of sampling point, y irepresent the ordinate of sampling point; w jrepresent the weight between the jth gray area between former gray area, w ' jrepresent the weight between new JianjGe gray area, gray area, after i represents and carries out gray level subregion to histogram P, the sequence number between the gray area be divided into; ∑ represents summation.
Structure Nogata returns determining functional based method can be linear, also can be spline smooth, Hermite interpolation etc.If Fig. 4 is simple linear function, Fig. 5 is spline smooth function; S1035, returns determining function f to calculate I ' to the component I of image F by Nogata;
Be illustrated in figure 6 the new histogram P ' after returning determining function f to calculate the component I of image F by Nogata.In Fig. 6, horizontal ordinate represents gray level, and ordinate is distribution density.Initial point on horizontal ordinate, k ' 1, k ' 2, k ' 3, k ' 4, k ' 5, k ' 6, k ' 7represent the critical point between new gray area.
S104, by the component S of described component I ' with image F, component H merges into new image b;
Image b is that rgb space obtains image B from HSI spatial transformation by S105;
S106, output image B.
Embodiment two
Fig. 7 is the treating apparatus structural drawing of a kind of adapting to image brightness of the preferred embodiment of the present invention, and described device comprises:
Image collection module, for obtaining image a;
First normalized module, for being normalized image a, obtains image A;
First space conversion module, obtains image F for image A is converted into HSI space from rgb space;
Component treating apparatus, for pressing ad hoc fashion process to the component I of image F, obtains I ';
Component merges module, and for by the component S of described component I ' with image F, component H merges into new image b;
Second space modular converter, for being that rgb space obtains image B by image b from HSI spatial transformation;
Output module, for output image B.
Further, described component treating apparatus also comprises (detailed structure view that Fig. 8 is component processing module in Fig. 7 structural drawing):
Statistics with histogram module, for carrying out statistics with histogram to component I;
Second normalized module, obtains histogram P for being normalized the component I after statistics with histogram;
Division module, for carrying out subregion by the Nogata distribution function p after normalized by gray level;
Interval gray level weight computation module, for and the gray level weight r calculated between each gray area i;
Interval weight computing module, for calculating the interval weight w between each gray area i
Module is built, for passing through r between gray area i, w ibuild between new gray area;
Interval weight computing module, for calculating the interval weight w ' between each new gray area i;
Nogata returns determining function construction module, for by w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function;
Component computing module, for returning determining function f to calculate I ' to the component I of image F by Nogata;
Those having ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method can have been come by programmed instruction related hardware, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a disposal route for adapting to image brightness, is characterized in that, described method comprises:
Obtain image a, image a is normalized, obtain image A;
Image A is converted into HSI space from rgb space and obtains image F;
By ad hoc fashion process, component I ' is obtained to the component I of image F;
By the component S of described component I ' with image F, component H merges into new image b;
Be that rgb space obtains image B by image b from HSI spatial transformation;
Output image B.
2. the disposal route of adapting to image brightness as claimed in claim 1, it is characterized in that, described " obtaining component I ' by ad hoc fashion process to the component I of image F " is specially:
Statistics with histogram is carried out to component I, and is normalized and obtains histogram P;
Nogata distribution function p after normalized is divided between n gray area by gray level, and calculates the gray level weight r between each gray area iand the interval weight w calculated between each gray area i; Wherein, after i represents and carries out gray level subregion to histogram P, the sequence number between the gray area be divided into, 1≤i≤n.
Pass through r i, w ibuild between new gray area, and draw each interval weight w ' between gray area new accordingly i;
By w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function;
Determining function f is returned to calculate I ' to the component I of image F by Nogata.
3. the disposal route of adapting to image brightness as claimed in claim 2, is characterized in that, the method for the Nogata distribution function p after normalized being carried out to subregion uses threshold value or clustering method.
4. the disposal route of adapting to image brightness as claimed in claim 3, is characterized in that,
Threshold value partition method is: set a threshold value ρ, and in threshold value ρ straight line and histogram P, the horizontal ordinate at the intersection point place of grey value profile curve is the critical point between gray area;
And threshold value ρ meets: as p> ρ, Interval Gray angle value is continuous, and as p< ρ, interval gray-scale value is continuous, and threshold value ρ is the threshold value of (0,1), and p represents Nogata distribution function.
5. the disposal route of adapting to image brightness as claimed in claim 2, is characterized in that, calculate the gray level weight r between each gray area imethod be:
r i = &Integral; k i - 1 k i p
Wherein, r irepresent the integration of p all in i-th gray area, 1≤i≤n; Be [k between the 1st gray area 0, k 1), be [k between the 2nd gray area 1, k 2) ... be [k between the n-th gray area n-1, k n].
6. the disposal route of adapting to image brightness as claimed in claim 2, is characterized in that,
Describedly " pass through r i, w ibuild between new gray area, and draw each interval weight w ' between corresponding new gray area i" be specially:
W ' i=(1-λ) r i+ λ w i, wherein λ is weight coefficient λ ∈ (0,1).
7. the disposal route of adapting to image brightness as claimed in claim 2, is characterized in that,
Described step is " by w i, w ' icomputing function sampling point, and construct Nogata and return determining function f " in,
The method of computing function sampling point is as follows:
N ( x i , y i ) = ( &Sigma; j = 1 i w j , &Sigma; j = 1 i w j &prime; )
Wherein, N (x i, y i) represent the sampling point of f, x irepresent the horizontal ordinate of sampling point, y irepresent the ordinate of sampling point; w jrepresent the weight between the jth gray area between former gray area, w ' jrepresent the weight between new JianjGe gray area, gray area, after i represents and carries out gray level subregion to histogram P, the sequence number between the gray area be divided into, ∑ represents summation.
8. the disposal route of adapting to image brightness as claimed in claim 7, is characterized in that,
Structure Nogata returns determining functional based method for linear, spline smooth or Hermite interpolation.
9. a treating apparatus for adapting to image brightness, is characterized in that, described device comprises:
Image collection module, for obtaining image a;
First normalized module, for being normalized image a, obtains image A;
First space conversion module, obtains image F for image A is converted into HSI space from rgb space;
Component treating apparatus, for pressing ad hoc fashion process to the component I of image F, obtains I ';
Component merges module, and for by the component S of described component I ' with image F, component H merges into new image b;
Second space modular converter, for being that rgb space obtains image B by image b from HSI spatial transformation;
Output module, for output image B.
10. the treating apparatus of adapting to image brightness as claimed in claim 9, is characterized in that,
Described component treating apparatus also comprises:
Statistics with histogram module, for carrying out statistics with histogram to component I;
Second normalized module, obtains histogram P for being normalized the component I after statistics with histogram;
Division module, for carrying out subregion by the Nogata distribution function p after normalized by gray level;
Interval gray level weight computation module, for and the gray level weight r calculated between each gray area i;
Interval weight computing module, for calculating the interval weight w between each gray area i
Module is built, for passing through r between gray area i, w ibuild between new gray area;
Interval weight computing module, for calculating the interval weight w ' between each new gray area i;
Nogata returns determining function construction module, for by w i, w ' icomputing function sampling point, and construct Nogata and return determining function f, and to meet function f be monotonically increasing function;
Component computing module, for returning determining function f to calculate I ' to the component I of image F by Nogata.
CN201410468044.7A 2014-09-15 2014-09-15 The processing method and device of a kind of adapting to image brightness Expired - Fee Related CN104299208B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468044.7A CN104299208B (en) 2014-09-15 2014-09-15 The processing method and device of a kind of adapting to image brightness

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468044.7A CN104299208B (en) 2014-09-15 2014-09-15 The processing method and device of a kind of adapting to image brightness

Publications (2)

Publication Number Publication Date
CN104299208A true CN104299208A (en) 2015-01-21
CN104299208B CN104299208B (en) 2017-10-13

Family

ID=52318929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468044.7A Expired - Fee Related CN104299208B (en) 2014-09-15 2014-09-15 The processing method and device of a kind of adapting to image brightness

Country Status (1)

Country Link
CN (1) CN104299208B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110638A (en) * 2019-04-29 2019-08-09 江苏省人民医院(南京医科大学第一附属医院) Control command analysis system for hospital disinfection room

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620727A (en) * 2009-08-10 2010-01-06 电子科技大学 Self-adaptive enhancement algorithm of weighted histogram of infrared image
CN101783888A (en) * 2010-03-23 2010-07-21 中国科学院西安光学精密机械研究所 Automatic exposure method based on analogous column diagram
CN101951523A (en) * 2010-09-21 2011-01-19 北京工业大学 Adaptive colour image processing method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101620727A (en) * 2009-08-10 2010-01-06 电子科技大学 Self-adaptive enhancement algorithm of weighted histogram of infrared image
CN101783888A (en) * 2010-03-23 2010-07-21 中国科学院西安光学精密机械研究所 Automatic exposure method based on analogous column diagram
CN101951523A (en) * 2010-09-21 2011-01-19 北京工业大学 Adaptive colour image processing method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHUN-LIANG CHIEN ET AL: "Color Image Enhancement With Exact HSI Color Model", 《INTERNATIONAL JOURNAL OF INNOVATIVE COMPUTING, INFORMATION AND CONTROL》 *
姜冬琴 等: "基于直方图均衡化的彩色图像增强", 《电脑知识与技术》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110110638A (en) * 2019-04-29 2019-08-09 江苏省人民医院(南京医科大学第一附属医院) Control command analysis system for hospital disinfection room

Also Published As

Publication number Publication date
CN104299208B (en) 2017-10-13

Similar Documents

Publication Publication Date Title
CN108509978B (en) Multi-class target detection method and model based on CNN (CNN) multi-level feature fusion
WO2021238262A1 (en) Vehicle recognition method and apparatus, device, and storage medium
CN109035250B (en) Method and device for establishing age prediction model and age prediction method and device
US20190205629A1 (en) Behavior predicton method, behavior predicton system, and non-transitory recording medium
CN103440646A (en) Similarity obtaining method for color distribution and texture distribution image retrieval
CN110717851A (en) Image processing method and device, neural network training method and storage medium
CN108492294B (en) Method and device for evaluating harmony degree of image colors
CN106875361A (en) A kind of method that poisson noise is removed based on depth convolutional neural networks
CN105957030A (en) Infrared thermal imaging system image detail enhancing and noise inhibiting method
CN103218619A (en) Image aesthetics evaluating method
CN111127360B (en) Gray image transfer learning method based on automatic encoder
US20210166015A1 (en) Certificate image extraction method and terminal device
CN109117806B (en) Gesture recognition method and device
WO2021233041A1 (en) Data annotation method and device, and fine granularity identification method and device
JP2019016114A (en) Image processing device, learning device, focus controlling device, exposure controlling device, image processing method, learning method and program
CN110246171B (en) Real-time monocular video depth estimation method
WO2023280113A1 (en) Data processing method, training method for neural network model, and apparatus
CN108351962A (en) Object detection with adaptivity channel characteristics
KR101981284B1 (en) Apparatus Processing Image and Method thereof
CN113096023A (en) Neural network training method, image processing method and device, and storage medium
US20220301106A1 (en) Training method and apparatus for image processing model, and image processing method and apparatus
CN104299208A (en) Self-adaption image brightness processing method and device
CN111488839B (en) Target detection method and target detection system
WO2021037174A1 (en) Neural network model training method and apparatus
CN107909551A (en) Image processing method, device, computer installation and computer-readable recording medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: The central Shenzhen city of Guangdong Province, 518057 Keyuan Road, Nanshan District science and Technology Park No. 15 Science Park Sinovac A Building 1 unit 403, No. 405 unit

Applicant after: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

Address before: Unit B4 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant before: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171013

Termination date: 20200915

CF01 Termination of patent right due to non-payment of annual fee