CN107231525A - The dark angle self-adapting compensation method of image and device - Google Patents

The dark angle self-adapting compensation method of image and device Download PDF

Info

Publication number
CN107231525A
CN107231525A CN201710402045.5A CN201710402045A CN107231525A CN 107231525 A CN107231525 A CN 107231525A CN 201710402045 A CN201710402045 A CN 201710402045A CN 107231525 A CN107231525 A CN 107231525A
Authority
CN
China
Prior art keywords
image
luminance
compensation
module
dark angle
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
Application number
CN201710402045.5A
Other languages
Chinese (zh)
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 COSBEAUTY Co Ltd
Original Assignee
SHENZHEN COSBEAUTY 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 COSBEAUTY Co Ltd filed Critical SHENZHEN COSBEAUTY Co Ltd
Priority to CN201710402045.5A priority Critical patent/CN107231525A/en
Publication of CN107231525A publication Critical patent/CN107231525A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/76Circuitry for compensating brightness variation in the scene by influencing the image signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment
    • H04N5/262Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
    • H04N5/265Mixing

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Image Processing (AREA)

Abstract

The invention provides a kind of dark angle self-adapting compensation method of image, including:Luminance picture is extracted from shooting image;Set up the mask for brightness adjustment;Luminance compensation is carried out to the luminance picture according to the mask, luminance compensation image is generated;Color space synthesis and reconstruction are carried out to the luminance compensation image, synthesis reconstruction image is obtained.The present invention also provides a kind of image dark angle adaptive equalization device.Luminance picture of the invention by being decomposited in shooting image, remerged and reconstruction image after carrying out linear compensation to luminance picture according to mask, dark angle is corrected from image algorithm, adaptive compensation is carried out to the dark angle of image so as to realize, the problem of solving optical lens imaging halation;Avoid in the prior art solve halation method it is with high costs the problem of.

Description

The dark angle self-adapting compensation method of image and device
Technical field
The present invention relates to the technical field of image procossing, in particular to a kind of dark angle self-adapting compensation method of image And device.
Background technology
Halation is that in photography and optics, the brightness of image peripheral or the saturation degree phenomenon lower than central area occur, i.e., It is optical lens in imaging process, the different angles that light reaches camera sensor diverse location cause brightness to picture angle Fall radially dimmed phenomenon.
Generally, light is projected to camera sensor center right angle, and then incidence angle is reduced away from center, and light is arrived Longer distance is had to pass through up to sensors edges, light intensity is tapered into, four angle meetings of image when causing to be ultimately imaged It is partially dark.
In commercial Application, the solution to halation is usually to improve from hardware aspect at present, special by designing Other lens and filter control dark angle, but its is with high costs, is unfavorable for industrial production.
The content of the invention
In view of this, the technical problem to be solved in the present invention is to overcome the solution of current halation to be from hardware aspect Improved, cause with high costs, be unfavorable for industrial defect there is provided a kind of dark angle self-adapting compensation method of image, Comprise the following steps:
Luminance picture is extracted from shooting image;
Set up the mask for brightness adjustment;
Luminance compensation is carried out to the luminance picture according to the mask, luminance compensation image is generated;
Color space synthesis and reconstruction are carried out to the luminance compensation image, synthesis reconstruction image is obtained.
Preferably, it is described that luminance compensation is carried out to the luminance picture according to the mask, generate luminance compensation image, bag Include:
Calculate the penalty coefficient of the luminance picture;
Judge whether the penalty coefficient reaches predetermined threshold value;
If it is not, then carrying out linear compensation according to the mask, and return to the surrounding for performing the calculating luminance picture The step of dark angle and the ratio of central area mean flow rate;
If so, then generating luminance compensation image.
Preferably, the penalty coefficient for calculating the luminance picture, including:
Obtain the dark angle average brightness value of surrounding and central area average brightness value of the luminance picture;
The ratio of the dark angle average brightness value of the surrounding and the central area average brightness value is calculated, penalty coefficient is obtained.
Preferably, it is described to extract luminance picture from shooting image, including:
Lab space decomposition is carried out to the shooting image, spatial decomposition image is obtained;
The luminance picture according to the spatial decomposition image zooming-out.
Preferably, it is described that color space synthesis and reconstruction are carried out to the luminance compensation image, synthesis reconstruction image is obtained, is wrapped Include:
The luminance compensation image and the spatial decomposition image are carried out into Lab color spaces to synthesize, reconstruction figure must be synthesized Picture.
In addition, to solve the above problems, the present invention also provide a kind of image dark angle adaptive equalization device, including:Extract Module, set up module, compensating module and synthesis module;
The extraction module, for extracting luminance picture from shooting image;
It is described to set up module, for setting up the mask for brightness adjustment;
The compensating module, for carrying out luminance compensation to the luminance picture according to the mask, generates luminance compensation Image;
The synthesis module, for carrying out color space synthesis and reconstruction to the luminance compensation image, must synthesize reconstruction Image.
Preferably, in addition to:Computing module and judge module;
The computing module, the penalty coefficient for calculating the luminance picture;
The judge module, for judging whether the penalty coefficient reaches predetermined threshold value;
The compensating module, is additionally operable to if it is not, then carrying out linear compensation according to the mask, and return to the execution calculating The step of dark angle of surrounding of the luminance picture and the ratio of central area mean flow rate;
It is described to set up module, it is additionally operable to if so, then generating luminance compensation image.
Preferably, in addition to:Acquisition module;
The acquisition module, the dark angle average brightness value of surrounding and central area for obtaining the luminance picture is average bright Angle value;
The computing module, is additionally operable to calculate the dark angle average brightness value of the surrounding and the central area average brightness value Ratio, obtain penalty coefficient.
Preferably, including:Decomposing module;
The decomposing module, for carrying out Lab space decomposition to the shooting image, obtains spatial decomposition image;
The extraction module, is additionally operable to the luminance picture according to the spatial decomposition image zooming-out.
Preferably, the synthesis module, is additionally operable to the luminance compensation image and the spatial decomposition image carrying out Lab Color space is synthesized, and obtains synthesis reconstruction image.
The dark angle self-adapting compensation method of a kind of image provided by the present invention, including:Luminance graph is extracted from shooting image Picture;Set up the mask for brightness adjustment;Luminance compensation is carried out to the luminance picture according to the mask, luminance compensation is generated Image;Color space synthesis and reconstruction are carried out to the luminance compensation image, synthesis reconstruction image is obtained.The present invention is by by shooting The luminance picture decomposited in image, is remerged and reconstruction image after carrying out linear compensation to luminance picture according to mask, from figure As being corrected on algorithm to dark angle, so as to realize the adaptive compensation of progress to the dark angle of image, solve optical lens into As the problem of halation;Avoid in the prior art solve halation method it is with high costs the problem of.
Brief description of the drawings
It should be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore it is not construed as to model The restriction enclosed, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to these Accompanying drawing obtains other related accompanying drawings.
Fig. 1 is the schematic flow sheet of an embodiment of the dark angle self-adapting compensation method of image of the present invention;
Fig. 2 is the schematic flow sheet of two embodiments of the dark angle self-adapting compensation method of image of the present invention;
Fig. 3 is the calculating luminance picture in two embodiments of the dark angle self-adapting compensation method of image of the present invention The refinement schematic flow sheet of penalty coefficient step;
Fig. 4 is the schematic flow sheet of three embodiments of the dark angle self-adapting compensation method of image of the present invention;
Fig. 5 is the schematic flow sheet of four embodiments of the dark angle self-adapting compensation method of image of the present invention;
Fig. 6 is the high-level schematic functional block diagram of an embodiment of the dark angle adaptive equalization device of image of the present invention.
Embodiment
Hereinafter, the various embodiments of the disclosure will be described more fully.The disclosure can have various embodiments, and It can adjust and change wherein.It should be understood, however, that:It is limited to spy disclosed herein in the absence of by the various embodiments of the disclosure Determine the intention of embodiment, but the disclosure should be interpreted as covering in the spirit and scope for the various embodiments for falling into the disclosure All adjustment, equivalent and/or alternative.
Hereinafter, the term " comprising " that can be used in the various embodiments of the disclosure or " may include " indicate disclosed Function, operation or the presence of element, and do not limit the increase of one or more functions, operation or element.In addition, such as existing Used in the various embodiments of the disclosure, term " comprising ", " having " and its cognate are meant only to represent special characteristic, number Word, step, operation, element, the combination of component or foregoing item, and be understood not to exclude first one or more other Feature, numeral, step, operation, element, the presence of the combination of component or foregoing item or increase one or more features, numeral, Step, operation, element, the possibility of the combination of component or foregoing item.
In the various embodiments of the disclosure, statement "or" or " in A or/and B at least one " include what is listed file names with Any combinations of word or all combinations." A or B " or " in A or/and B at least one " may include A, may include for example, statement B may include A and B both.
The statement (" first ", " second " etc.) used in the various embodiments of the disclosure can be modified to be implemented various Various element in example, but corresponding element can not be limited.For example, presented above be not intended to limit the suitable of the element Sequence and/or importance.The purpose presented above for being only used for differentiating an element and other elements.For example, the first user fills Put and indicate different user device with second user device, although the two is all user's set.For example, not departing from each of the disclosure In the case of the scope for planting embodiment, the first element is referred to alternatively as the second element, similarly, and the second element is also referred to as first Element.
It should be noted that:, can be by the first composition member if an element ' attach ' to another element by description Part is directly connected to the second element, and " connection " the 3rd can be constituted between the first element and the second element Element.On the contrary, when an element " being directly connected to " is arrived into another element, it will be appreciated that be in the first element And second the 3rd element is not present between element.
The term " user " used in the various embodiments of the disclosure, which may indicate that, to be used the people of electronic installation or uses electricity The device (for example, artificial intelligence electronic installation) of sub-device.
The term used in the various embodiments of the disclosure is only used for describing the purpose of specific embodiment and not anticipated In the various embodiments of the limitation disclosure.As used herein, singulative is intended to also include plural form, unless context is clear Chu it is indicated otherwise.Unless otherwise defined, all terms (including the technical term and scientific terminology) tool being otherwise used herein There is the implication identical implication that the various embodiment one skilled in the art with the disclosure are generally understood that.The term (term such as limited in the dictionary typically used) is to be interpreted as having and the situational meaning in correlative technology field Identical implication and it will be not construed as with Utopian implication or excessively formal implication, unless in the various of the disclosure It is clearly defined in embodiment.
The present invention provides a kind of dark angle self-adapting compensation method of image.
Reference picture 1, Fig. 1 is the schematic flow sheet of an embodiment of the dark angle self-adapting compensation method of image of the present invention.
In one embodiment, the dark angle self-adapting compensation method of described image includes:
Step S100, extracts luminance picture from shooting image;
The present invention provides a kind of dark angle self-adapting compensation method of image.First, target image shoot obtaining To shooting image, secondly, the process that the image to above-mentioned shooting decompose and therefrom extracts luminance picture is being carried out.
Step S200, sets up the mask for brightness adjustment;
It is to be appreciated that mask, as pattern mask technology, with selected image, figure or object, to the figure of processing As (all or local) is blocked, to control region or the processing procedure of image procossing.Specific image or thing for covering Body is referred to as mask or template.In optical image security, mask can be film, optical filter etc..In Digital Image Processing, mask is Two-dimensional matrix array, also uses multivalue image sometimes.In Digital Image Processing, pattern mask is mainly used in:1. region of interest is extracted, It is multiplied with the region of interest mask of pre-production with pending image, obtains image value in Image with Region of Interest, region of interest and protect Hold constant, and image value is all 0 outside area.Some regions on image are shielded by 2. shielding action with mask, it is not participated in place Reason or the calculating for not participating in processing parameter, or only blind zone is dealt with or counted.3. architectural feature is extracted, and uses similitude variable Or the image matching method detection architectural feature similar to mask in image with extracting.4. the making of special shape image.
Mask is a kind of template of image filters, and what practical mask was often handled is remote sensing images.When extract road or River, or during house, pixel filtering is carried out by n*n matrix to image, the atural object that then needs us or Person's mark highlights out.This matrix is exactly a kind of mask.
Above-mentioned, in the present embodiment, it is to be projected according to light by circular lens to set up for the mask of brightness adjustment To the imaging process of rectangular sensor, corresponding mathematical modeling is set up, the further mask for carrying out brightness adjustment is used as.
Step S300, carries out luminance compensation to the luminance picture according to the mask, generates luminance compensation image;
Luminance compensation is carried out to luminance picture according to the mask of above-mentioned generation, compensation process can be linear compensation, It can be compensation of nonlinearity.
Step S400, carries out color space synthesis and reconstruction to the luminance compensation image, obtains synthesis reconstruction image.
In the present embodiment, the dark angle self-adapting compensation method of image is included:Luminance picture is extracted from shooting image;Set up and use In the mask of brightness adjustment;Luminance compensation is carried out to the luminance picture according to the mask, luminance compensation image is generated;To institute State luminance compensation image and carry out color space synthesis and reconstruction, obtain synthesis reconstruction image.The present invention in shooting image by dividing The luminance picture solved, is remerged and reconstruction image after carrying out linear compensation to luminance picture according to mask, from image algorithm Dark angle is corrected, so as to realize the adaptive compensation of the progress to the dark angle of image, optical lens imaging halation is solved Problem;Avoid in the prior art solve halation method it is with high costs the problem of.
Reference picture 2, Fig. 2 is the schematic flow sheet of two embodiments of the dark angle self-adapting compensation method of image of the present invention.
It is described that luminance compensation is carried out to the luminance picture according to the mask based on an above-mentioned embodiment, generate brightness Image is compensated, including:
Step S310, calculates the penalty coefficient of the luminance picture;
The penalty coefficient of luminance picture is calculated, the penalty coefficient is non-default numerical value, specifically according to being obtained The luminance picture taken is further calculated, and is used as the further calculating auxiliary coefficient for carrying out luminance compensation.
Step S311, obtains the dark angle average brightness value of surrounding and central area average brightness value of the luminance picture;
The brightness value of the different zones of the luminance picture is obtained by algorithm.The wherein described dark angle of surrounding is averaged Brightness, the single coordinate for being specifically as follows four angles of luminance picture is obtained, or to multiple coordinates at four angles Regional luminance obtained, and average calculating;Central area average brightness value can be centering heart district domain ibid Single coordinates regional is specified to carry out brightness value acquisition, or the coordinates regionals specified multiple to central area carry out brightness value Acquisition, calculating of further averaging.
Step S312, calculates the ratio of the dark angle average brightness value of surrounding and the central area average brightness value, obtains Penalty coefficient.
Penalty coefficient is the foundation for being compensated to image, by calculating the dark angle average brightness value of surrounding and center The ratio of domain average brightness value, tries to achieve penalty coefficient.
Step S320, judges whether the penalty coefficient reaches predetermined threshold value;
Above-mentioned, predetermined threshold value is the default max-thresholds compensated for luminance picture, the threshold value in the present embodiment Can be constant, or the variable of the max-thresholds drawn according to captured image or luminance picture, according to different figures The difference of the brightness of picture is configured.
Step S330, if it is not, then carrying out linear compensation according to the mask, and returns to the execution calculating luminance graph The step of dark angle of surrounding of picture and the ratio of central area mean flow rate;
When the penalty coefficient of current luminance picture is less than default threshold value, then it is judged as to current luminance picture Compensation is not enough, then needs the luminance picture after further compensation to carry out the operation of further luminance compensation;Carry out again bright After degree compensation, the dark angle average brightness value of surrounding and central area average brightness value of the reacquisition image in return previous step are simultaneously The step of calculating penalty coefficient;When penalty coefficient is less than predetermined threshold value, then needs circulation to perform and obtain brightness value, calculate penalty coefficient And carry out the step of compared with predetermined threshold value.
Step S340, if so, then generating luminance compensation image.
When the penalty coefficient of luminance picture is more than or equal to predetermined threshold value, then stop carrying out the process of luminance compensation, directly The luminance picture after output compensation is connect, luminance compensation image is generated.
In the present embodiment, luminance compensation is carried out to the luminance picture that gets with preset algorithm, specifically, including pair The dark angle mean flow rate of surrounding of luminance picture and the ratio of central area mean flow rate carry out calculating penalty coefficient, are by compensation Number is compared with predetermined threshold value, judges whether penalty coefficient reaches default threshold value, when penalty coefficient is less than predetermined threshold value, then Proceed luminance compensation, and perform recalculate penalty coefficient carry out with setting the step of threshold value is compared;When penalty coefficient is big In equal to predetermined threshold value, then stop carrying out luminance compensation, directly export luminance compensation image.By preset algorithm to luminance picture Compensate, so as to realize the effect that adaptive equalization is carried out to the dark angle of image, algorithm is easy and effective, improves brightness of image The efficiency of compensation.
Reference picture 3, Fig. 3 is the schematic flow sheet of three embodiments of the dark angle self-adapting compensation method of image of the present invention.
It is described to extract luminance picture from shooting image based on an above-mentioned embodiment, including:
Step S110, carries out Lab space decomposition to the shooting image, obtains spatial decomposition image;
Lab patterns are a kind of color modes announced by International Commission on Illumination (CIE) in 1976.
RGB patterns are a kind of additive color models of luminescent screen, and CMYK patterns are a kind of reflective printing subtractive color models of color. And Lab patterns are both independent of light, also not dependent on pigment, it be determine one of CIE tissues include human eye in theory can With the institute's the colorful one color mode seen.Lab patterns compensate for the deficiency of two kinds of color modes of RGB and CMYK.Therefore, it is this Bright color will be produced after color mixture.Color defined in pattern is at most, and unrelated with light and equipment and handle speed Degree is same with RGB patterns fast, more many soon than CMYK pattern.It therefore, it can to trust and bold Lab moulds used in image editing Formula.Moreover, Lab patterns color when being converted into CMYK patterns is not lost or is replaced.Therefore, most preferably avoid what color lost Method is:Using Lab pattern editor's images, the printout of CMYK patterns is reconverted into.
It is above-mentioned, Lab space decomposition is carried out to the shooting image, spatial decomposition image is obtained, is to shooting image Lab space resolves into the image of 3 passages, respectively lightness passage (luminance channel), i.e. L * channel;Two other is A's and B Color channel, the color that A channel includes is (highlighted to bright pink again from bottle green (bottom brightness value) to grey (middle brightness value) Angle value);Channel B is then again to yellow (high luminance values) from sapphirine (bottom brightness value) to grey (middle brightness value).Therefore, it is this Bright color will be produced after color mixture.
Step S120, the luminance picture according to the spatial decomposition image zooming-out.
After Lab space decomposition is carried out to the shooting image, the image of Lab 3 passages, respectively lightness have been obtained Passage (luminance channel), two other is A and B color channel, and the picture of lightness passage therein is extracted, obtains bright Spend image.Image is decomposed by Lab patterns, so that by the color (A, channel B) of image and brightness (luminance channel) area Do not come, brightness compensation operation individually is carried out to the luminance picture of luminance channel, reduce Color Channel to brightness compensation operation Interference.
Reference picture 4, Fig. 4 is the schematic flow sheet of four embodiments of the dark angle self-adapting compensation method of image of the present invention.
It is described that color space synthesis and reconstruction are carried out to the luminance compensation image based on above-mentioned three embodiment, it must synthesize Reconstruction image, including:
Step S410, carries out Lab color spaces by the luminance compensation image and the spatial decomposition image and synthesizes, must close Into reconstruction image.
It is above-mentioned, the luminance compensation image and the spatial decomposition image are subjected to Lab color spaces and synthesized, weight must be synthesized Image is built, is that will be obtained when carrying out the luminance compensation image after luminance compensation with carrying out Lab space decomposition to luminance picture before To A channel and the image of color channel of channel B synthesized, the synthesis reconstruction image after composition synthesis, so that removing The luminance compensation image increase color channel of color channel, completes the process of luminance compensation.
Further, the present invention also provides a kind of image dark angle adaptive equalization device.
Reference picture 5, Fig. 5 is the high-level schematic functional block diagram of an embodiment of the dark angle adaptive equalization device of image of the present invention.
In one embodiment, the dark angle adaptive equalization device of described image includes:Extraction module 10, set up module 20, benefit Repay module 30, synthesis module 40, computing module 50, judge module 60, acquisition module 70 and decomposing module 80;
The extraction module 10, for extracting luminance picture from shooting image;
The present invention provides a kind of dark angle self-adapting compensation method of image.First, target image shoot obtaining To shooting image, secondly, use extraction module 10 decompose carrying out the image to above-mentioned shooting and therefrom extract luminance graph The process of picture.
It is described to set up module 20, for setting up the mask for brightness adjustment;
The compensating module 30, for carrying out luminance compensation to the luminance picture according to the mask, generation brightness is mended Repay image;
The synthesis module 40, for carrying out color space synthesis and reconstruction to the luminance compensation image, must synthesize weight Build image.
Above-mentioned, in the present embodiment, it is to be projected according to light by circular lens to set up for the mask of brightness adjustment To the imaging process of rectangular sensor, corresponding mathematical modeling is set up, the further mask for carrying out brightness adjustment is used as.
The computing module 50, the penalty coefficient for calculating the luminance picture;
The penalty coefficient of luminance picture is calculated, the penalty coefficient is non-default numerical value, specifically according to being obtained The luminance picture taken is further calculated, and is used as the further calculating auxiliary coefficient for carrying out luminance compensation.
The judge module 60, for judging whether the penalty coefficient reaches predetermined threshold value;
Above-mentioned, predetermined threshold value is the default max-thresholds compensated for luminance picture, the threshold value in the present embodiment Can be constant, or the variable of the max-thresholds drawn according to captured image or luminance picture, according to different figures The difference of the brightness of picture is configured.
The compensating module 30, is additionally operable to if it is not, then carrying out linear compensation according to the mask, and return to the execution meter The step of calculating the dark angle of surrounding and the ratio of central area mean flow rate of the luminance picture;
When the penalty coefficient of current luminance picture is less than default threshold value, then it is judged as to current luminance picture Compensation is not enough, then needs the luminance picture after further compensation to carry out the operation of further luminance compensation;Carry out again bright After degree compensation, the dark angle average brightness value of surrounding and central area average brightness value of the reacquisition image in return previous step are simultaneously The step of calculating penalty coefficient;When penalty coefficient is less than predetermined threshold value, then needs circulation to perform and obtain brightness value, calculate penalty coefficient And carry out the step of compared with predetermined threshold value.
It is described to set up module 20, it is additionally operable to if so, then generating luminance compensation image.
When the penalty coefficient of luminance picture is more than or equal to predetermined threshold value, then stop carrying out the process of luminance compensation, directly The luminance picture after output compensation is connect, luminance compensation image is generated.
In the present embodiment, luminance compensation is carried out to the luminance picture that gets with preset algorithm, specifically, including pair The dark angle mean flow rate of surrounding of luminance picture and the ratio of central area mean flow rate carry out calculating penalty coefficient, are by compensation Number is compared with predetermined threshold value, judges whether penalty coefficient reaches default threshold value, when penalty coefficient is less than predetermined threshold value, then Proceed luminance compensation, and perform recalculate penalty coefficient carry out with setting the step of threshold value is compared;When penalty coefficient is big In equal to predetermined threshold value, then stop carrying out luminance compensation, directly export luminance compensation image.By preset algorithm to luminance picture Compensate, so as to realize the effect that adaptive equalization is carried out to the dark angle of image, algorithm is easy and effective, improves brightness of image The efficiency of compensation.
The acquisition module 70, the dark angle average brightness value of surrounding for obtaining the luminance picture is averaged with central area Brightness value;
The brightness value of the different zones of the luminance picture is obtained by algorithm.The wherein described dark angle of surrounding is averaged Brightness, the single coordinate for being specifically as follows four angles of luminance picture is obtained, or to multiple coordinates at four angles Regional luminance obtained, and average calculating;Central area average brightness value can be centering heart district domain ibid Single coordinates regional is specified to carry out brightness value acquisition, or the coordinates regionals specified multiple to central area carry out brightness value Acquisition, calculating of further averaging.
The computing module 50, is additionally operable to calculate the dark angle average brightness value of the surrounding and the central area mean flow rate The ratio of value, obtains penalty coefficient.
Penalty coefficient is the foundation for being compensated to image, by calculating the dark angle average brightness value of surrounding and center The ratio of domain average brightness value, tries to achieve penalty coefficient.
The decomposing module 80, for carrying out Lab space decomposition to the shooting image, obtains spatial decomposition image;
Lab patterns are a kind of color modes announced by International Commission on Illumination (CIE) in 1976.
RGB patterns are a kind of additive color models of luminescent screen, and CMYK patterns are a kind of reflective printing subtractive color models of color. And Lab patterns are both independent of light, also not dependent on pigment, it be determine one of CIE tissues include human eye in theory can With the institute's the colorful one color mode seen.Lab patterns compensate for the deficiency of two kinds of color modes of RGB and CMYK.Therefore, it is this Bright color will be produced after color mixture.Color defined in pattern is at most, and unrelated with light and equipment and handle speed Degree is same with RGB patterns fast, more many soon than CMYK pattern.It therefore, it can to trust and bold Lab moulds used in image editing Formula.Moreover, Lab patterns color when being converted into CMYK patterns is not lost or is replaced.Therefore, most preferably avoid what color lost Method is:Using Lab pattern editor's images, the printout of CMYK patterns is reconverted into.
It is above-mentioned, Lab space decomposition is carried out to the shooting image, spatial decomposition image is obtained, is to shooting image Lab space resolves into the image of 3 passages, respectively lightness passage (luminance channel), i.e. L * channel;Two other is A's and B Color channel, the color that A channel includes is (highlighted to bright pink again from bottle green (bottom brightness value) to grey (middle brightness value) Angle value);Channel B is then again to yellow (high luminance values) from sapphirine (bottom brightness value) to grey (middle brightness value).Therefore, it is this Bright color will be produced after color mixture.
The extraction module 10, is additionally operable to the luminance picture according to the spatial decomposition image zooming-out.
After Lab space decomposition is carried out to the shooting image, the image of Lab 3 passages, respectively lightness have been obtained Passage (luminance channel), two other is A and B color channel, and the picture of lightness passage therein is extracted, obtains bright Spend image.Image is decomposed by Lab patterns, so that by the color (A, channel B) of image and brightness (luminance channel) area Do not come, brightness compensation operation individually is carried out to the luminance picture of luminance channel, reduce Color Channel to brightness compensation operation Interference.
The synthesis module 40, is additionally operable to the luminance compensation image and the spatial decomposition image carrying out Lab colors Space combination, obtains synthesis reconstruction image.
It is above-mentioned, the luminance compensation image and the spatial decomposition image are subjected to Lab color spaces and synthesized, weight must be synthesized Image is built, is that will be obtained when carrying out the luminance compensation image after luminance compensation with carrying out Lab space decomposition to luminance picture before To A channel and the image of color channel of channel B synthesized, the synthesis reconstruction image after composition synthesis, so that removing The luminance compensation image increase color channel of color channel, completes the process of luminance compensation.
It should be understood that, although the present specification is described in terms of embodiments, but not each embodiment only includes one Individual independent technical scheme, this narrating mode of specification is only that for clarity, those skilled in the art will should say Bright book is as an entirety, and the technical scheme in each embodiment may also be suitably combined to form those skilled in the art can With the other embodiment of understanding.
Applicant states that the present invention can only for of the invention by a series of describe in detail of those listed above Row embodiment is illustrated, but the invention is not limited in above-mentioned detailed process equipment and technological process.And i.e. not Mean that the present invention should rely on above-mentioned detailed process equipment and technological process and could implement.Person of ordinary skill in the field should This understands, any improvement in the present invention, the adding of equivalence replacement and auxiliary element to each raw material of product of the present invention, specific side Selection of formula etc., within the scope of all falling within protection scope of the present invention and being open.

Claims (10)

1. a kind of dark angle self-adapting compensation method of image, it is characterised in that comprise the following steps:
Luminance picture is extracted from shooting image;
Set up the mask for brightness adjustment;
Luminance compensation is carried out to the luminance picture according to the mask, luminance compensation image is generated;
Color space synthesis and reconstruction are carried out to the luminance compensation image, synthesis reconstruction image is obtained.
2. the dark angle self-adapting compensation method of image as claimed in claim 1, it is characterised in that it is described according to the mask to described Luminance picture carries out luminance compensation, generates luminance compensation image, including:
Calculate the penalty coefficient of the luminance picture;
Judge whether the penalty coefficient reaches predetermined threshold value;
If it is not, then carrying out linear compensation according to the mask, and return to the dark angle of surrounding for performing the calculating luminance picture The step of with the ratio of central area mean flow rate;
If so, then generating luminance compensation image.
3. the dark angle self-adapting compensation method of image as claimed in claim 2, it is characterised in that the calculating luminance picture Penalty coefficient, including:
Obtain the dark angle average brightness value of surrounding and central area average brightness value of the luminance picture;
The ratio of the dark angle average brightness value of the surrounding and the central area average brightness value is calculated, penalty coefficient is obtained.
4. the dark angle self-adapting compensation method of image as claimed in claim 1, it is characterised in that described to extract bright from shooting image Image is spent, including:
Lab space decomposition is carried out to the shooting image, spatial decomposition image is obtained;
The luminance picture according to the spatial decomposition image zooming-out.
5. the dark angle self-adapting compensation method of image as claimed in claim 4, it is characterised in that described to the luminance compensation image Color space synthesis and reconstruction are carried out, synthesis reconstruction image is obtained, including:
The luminance compensation image and the spatial decomposition image are carried out into Lab color spaces to synthesize, synthesis reconstruction image is obtained.
6. a kind of dark angle adaptive equalization device of image, it is characterised in that including:Extraction module, set up module, compensating module and Synthesis module;
The extraction module, for extracting luminance picture from shooting image;
It is described to set up module, for setting up the mask for brightness adjustment;
The compensating module, for carrying out luminance compensation to the luminance picture according to the mask, generates luminance compensation image;
The synthesis module, for carrying out color space synthesis and reconstruction to the luminance compensation image, obtains synthesis reconstruction image.
7. the dark angle adaptive equalization device of image as claimed in claim 6, it is characterised in that also include:Computing module and judgement Module;
The computing module, the penalty coefficient for calculating the luminance picture;
The judge module, for judging whether the penalty coefficient reaches predetermined threshold value;
The compensating module, is additionally operable to if it is not, then carrying out linear compensation according to the mask, and return described in the execution calculating The step of dark angle of surrounding of luminance picture and the ratio of central area mean flow rate;
It is described to set up module, it is additionally operable to if so, then generating luminance compensation image.
8. the dark angle adaptive equalization device of image as claimed in claim 7, it is characterised in that also include:Acquisition module;
The acquisition module, the dark angle average brightness value of surrounding and central area mean flow rate for obtaining the luminance picture Value;
The computing module, is additionally operable to calculate the ratio of the dark angle average brightness value of the surrounding and the central area average brightness value Value, obtains penalty coefficient.
9. the dark angle adaptive equalization device of image as claimed in claim 8, it is characterised in that including:Decomposing module;
The decomposing module, for carrying out Lab space decomposition to the shooting image, obtains spatial decomposition image;
The extraction module, is additionally operable to the luminance picture according to the spatial decomposition image zooming-out.
10. the dark angle adaptive equalization device of image as claimed in claim 9, it is characterised in that
The synthesis module, is additionally operable to the luminance compensation image and the spatial decomposition image carrying out Lab color space conjunctions Into obtaining synthesis reconstruction image.
CN201710402045.5A 2017-05-31 2017-05-31 The dark angle self-adapting compensation method of image and device Pending CN107231525A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710402045.5A CN107231525A (en) 2017-05-31 2017-05-31 The dark angle self-adapting compensation method of image and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710402045.5A CN107231525A (en) 2017-05-31 2017-05-31 The dark angle self-adapting compensation method of image and device

Publications (1)

Publication Number Publication Date
CN107231525A true CN107231525A (en) 2017-10-03

Family

ID=59933960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710402045.5A Pending CN107231525A (en) 2017-05-31 2017-05-31 The dark angle self-adapting compensation method of image and device

Country Status (1)

Country Link
CN (1) CN107231525A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650471A (en) * 2018-04-24 2018-10-12 信利光电股份有限公司 A kind of LSC compensation methodes of fish-eye camera and device, readable storage medium storing program for executing
CN110995961A (en) * 2019-10-15 2020-04-10 安徽清新互联信息科技有限公司 Method and system for enhancing camera vignetting
CN111192218A (en) * 2019-12-31 2020-05-22 深圳市商汤科技有限公司 Image processing method and device, electronic equipment and storage medium
CN111757029A (en) * 2018-03-26 2020-10-09 上海小蚁科技有限公司 Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN112991211A (en) * 2021-03-12 2021-06-18 中国大恒(集团)有限公司北京图像视觉技术分公司 Dark corner correction method for industrial camera
CN113160082A (en) * 2021-04-16 2021-07-23 华南理工大学 Vignetting correction method, system, device and medium based on reference image

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394460A (en) * 2007-09-21 2009-03-25 索尼株式会社 Image processing apparatus, image processing method, image processing program, and image capturing apparatus
CN103856727A (en) * 2014-03-24 2014-06-11 北京工业大学 Multichannel real-time video splicing processing system
CN105592270A (en) * 2015-12-18 2016-05-18 广东欧珀移动通信有限公司 Image brightness compensation method and device, and terminal device
CN106101588A (en) * 2016-07-08 2016-11-09 成都易瞳科技有限公司 The compensation method of panoramic picture gradual halation phenomena
CN106161981A (en) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 Image dark angle compensation method, device and terminal device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101394460A (en) * 2007-09-21 2009-03-25 索尼株式会社 Image processing apparatus, image processing method, image processing program, and image capturing apparatus
CN103856727A (en) * 2014-03-24 2014-06-11 北京工业大学 Multichannel real-time video splicing processing system
CN105592270A (en) * 2015-12-18 2016-05-18 广东欧珀移动通信有限公司 Image brightness compensation method and device, and terminal device
CN106101588A (en) * 2016-07-08 2016-11-09 成都易瞳科技有限公司 The compensation method of panoramic picture gradual halation phenomena
CN106161981A (en) * 2016-07-29 2016-11-23 广东欧珀移动通信有限公司 Image dark angle compensation method, device and terminal device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111757029A (en) * 2018-03-26 2020-10-09 上海小蚁科技有限公司 Shadow correction detection parameter determination method, shadow correction detection device, storage medium and fisheye camera
CN108650471A (en) * 2018-04-24 2018-10-12 信利光电股份有限公司 A kind of LSC compensation methodes of fish-eye camera and device, readable storage medium storing program for executing
CN108650471B (en) * 2018-04-24 2020-08-04 信利光电股份有限公司 L SC compensation method and device of fisheye camera and readable storage medium
CN110995961A (en) * 2019-10-15 2020-04-10 安徽清新互联信息科技有限公司 Method and system for enhancing camera vignetting
CN110995961B (en) * 2019-10-15 2022-04-19 安徽清新互联信息科技有限公司 Method and system for enhancing camera vignetting
CN111192218A (en) * 2019-12-31 2020-05-22 深圳市商汤科技有限公司 Image processing method and device, electronic equipment and storage medium
CN111192218B (en) * 2019-12-31 2023-11-24 深圳市商汤科技有限公司 Image processing method and device, electronic equipment and storage medium
CN112991211A (en) * 2021-03-12 2021-06-18 中国大恒(集团)有限公司北京图像视觉技术分公司 Dark corner correction method for industrial camera
CN113160082A (en) * 2021-04-16 2021-07-23 华南理工大学 Vignetting correction method, system, device and medium based on reference image

Similar Documents

Publication Publication Date Title
CN107231525A (en) The dark angle self-adapting compensation method of image and device
CN108337433A (en) A kind of photographic method, mobile terminal and computer readable storage medium
CN105659583B (en) Image processing apparatus, image processing method, electronic equipment and computer readable storage medium
CN102045490B (en) Image processing device and image processing method
CN107343190A (en) White balance adjusting method, apparatus and terminal device
CN108353125A (en) Color filter array scaler
CN104363434B (en) Image processing apparatus
WO2013101642A1 (en) Spectral image processing
CN106375740A (en) Method, device and system for generating RGB image
CN106204662B (en) A kind of color of image constancy method under multiple light courcess environment
CN108024105A (en) Image color adjusting method, device, electronic equipment and storage medium
CN109300101A (en) A kind of more exposure image fusion methods based on Retinex theory
CN106534677A (en) Image overexposure optimization method and device
CN111107330B (en) Color cast correction method for Lab space
Kawakami et al. Consistent surface color for texturing large objects in outdoor scenes
CN109274948A (en) Image color correction method, apparatus, storage medium and computer equipment
CN105872500A (en) Adjusting method and device for white balance of image
CN104504661A (en) Method for processing image to be in black and white effect
CN107169942B (en) Underwater image enhancement method based on fish retina mechanism
CN106550227A (en) A kind of image saturation method of adjustment and device
CN105979233B (en) Demosaicing methods, image processor and imaging sensor
CN108205812B (en) Method for matching pigment color mixing proportion
CN101398929A (en) Method and device for restraining night image noise
CN111340897B (en) Color identification method based on fuzzy mathematic similarity
Ong et al. Comparative analysis of RGB and HSV color models in extracting color features of green dye solutions

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171003

RJ01 Rejection of invention patent application after publication