CN109191395A - Method for enhancing picture contrast, device, equipment and storage medium - Google Patents
Method for enhancing picture contrast, device, equipment and storage medium Download PDFInfo
- Publication number
- CN109191395A CN109191395A CN201810952870.7A CN201810952870A CN109191395A CN 109191395 A CN109191395 A CN 109191395A CN 201810952870 A CN201810952870 A CN 201810952870A CN 109191395 A CN109191395 A CN 109191395A
- Authority
- CN
- China
- Prior art keywords
- grayscale image
- image
- global
- grayscale
- target
- 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
Links
- 230000002708 enhancing effect Effects 0.000 title claims abstract description 63
- 238000000034 method Methods 0.000 title claims abstract description 50
- 230000000694 effects Effects 0.000 abstract description 9
- 230000015654 memory Effects 0.000 description 16
- 238000010586 diagram Methods 0.000 description 9
- 230000006870 function Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000003014 reinforcing effect Effects 0.000 description 2
- 241001270131 Agaricus moelleri Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/77—Retouching; Inpainting; Scratch removal
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20021—Dividing image into blocks, subimages or windows
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20192—Edge enhancement; Edge preservation
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The embodiment of the invention discloses a kind of method for enhancing picture contrast, device, equipment and storage mediums, this method comprises: obtaining the grayscale image of target image;Global contrast enhancing is carried out to grayscale image, to obtain global grayscale image;Grayscale image is divided into multiple subregions, based on preset order using each subregion as target subregion, the gray value of the target subregion is adjusted according to the gray value in the adjacent subarea domain of target subregion, to generate local gray level figure;The enhanced enhancing grayscale image of target image contrast is determined according to global grayscale image and local grayscale image.It solves the picture superposition scheme of the prior art technical problem poor there are adaptability, has reached and improved picture superposition to the technical effect of image adaptability.
Description
Technical field
The present embodiments relate to image procossing more particularly to a kind of method for enhancing picture contrast, device, equipment and deposit
Storage media.
Background technique
Nowadays, the most common method for enhancing picture contrast is exactly global contrast enhancing, and global contrast is increased
By force, if parameter setting is too strong, treated, and picture contrast excessively enhances, unnatural, and certain details, which reduce, even to disappear;
If parameter setting is too weak, ideal contrast reinforcing effect, therefore aforementioned two kinds of global contrast Enhancement Methods is not achieved
There is a problem of poor to picture adaptability;After recognizing the limitation of global contrast, consider to increase regional area pair
Enhance technology than degree, but the effect of existing local area contrast enhancing technology is also poor to the adaptability of picture.
In conclusion the technical problem that the picture superposition scheme of the prior art is poor there are adaptability.
Summary of the invention
The embodiment of the present invention provides a kind of method for enhancing picture contrast, device, equipment and storage medium, existing to solve
The picture superposition scheme of the technology technical problem poor there are adaptability.
In a first aspect, the embodiment of the invention provides a kind of method for enhancing picture contrast, comprising:
Obtain the grayscale image of target image;
Global contrast enhancing is carried out to the grayscale image, to obtain global grayscale image;
The grayscale image is divided into multiple subregions, based on preset order using each subregion as target subregion,
The gray value of the target subregion is adjusted according to the gray value in the adjacent subarea domain of the target subregion, to generate office
Portion's grayscale image;
The enhanced enhancing gray scale of target image contrast is determined according to the global grayscale image and the local gray level figure
Figure.
Further, described that global contrast enhancing is carried out to the grayscale image, to obtain global grayscale image, comprising:
Global contrast enhancing is carried out to the grayscale image based on matched curve method, to obtain global grayscale image.
Further, described that global contrast enhancing is carried out to the grayscale image based on matched curve method, to obtain the overall situation
Grayscale image, comprising:
The grey level histogram of the grayscale image is determined based on preset gray scale number, and will be described based on predetermined luminance number of levels
Grayscale image is divided into the brightness region of respective numbers;
Obtain the nonlinear adjustment curve of each brightness region;
The global gain and luminance weights coefficient for obtaining each brightness region, as complete corresponding to each grayscale in the brightness region
Office's gain and luminance weights coefficient;
Using the product of the nonlinear adjustment curve values of each grayscale of each brightness region, global gain and weight coefficient as
Single brightness adjustment value, the adjustment by the sum of single brightness adjustment value of the corresponding different brightness regions of each grayscale as each grayscale
Value;
The grayscale image is adjusted according to the adjusted value of each grayscale, to obtain global grayscale image.
Further, the luminance weights coefficient of each brightness region is obtained, comprising:
One luminance weights curve corresponding with the grey level histogram is set for each brightness region, wherein the brightness
Weighting curve is for indicating each grayscale in the ratio of the brightness value in present intensity area and the brightness value of all brightness regions;
Calculate the luminance weights of luminance weights the curve corresponding all luminance weights and all brightness regions of each brightness region
The ratio of the corresponding all luminance weights sums of curve, using the weight coefficient as each brightness region.
It is further, described that the grayscale image is divided into multiple subregions, comprising:
Edge filter is carried out to the grayscale image, to obtain edge image;
Based on the edge of the edge image, the grayscale image is divided into multiple subregions.
Further, gray scale of the gray value in the adjacent subarea domain according to the target subregion to the target subregion
Value is adjusted, to generate local gray level figure, comprising:
Calculate the average gray value of each subregion;
It is carried out according to gray value of the average gray value in the adjacent subarea domain of the target subregion to the target subregion
Adjustment, to generate local gray level figure.
Further, the average gray value in the adjacent subarea domain according to the target subregion is to the target subregion
Gray value is adjusted, to generate local gray level figure, comprising:
Calculate the average gray value in each adjacent subarea domain of target subregion and the target subregion difference and;
According to the intensity profile of the difference and the adjustment target subregion, to generate local gray level figure.
Second aspect, the embodiment of the invention also provides a kind of picture superposition devices, comprising:
Grayscale image obtains module, for obtaining the grayscale image of target image;
Global gray scale module, for carrying out global contrast enhancing to the grayscale image, to obtain global grayscale image;
Local gray level module is based on preset order for every height for the grayscale image to be divided into multiple subregions
Region is as target subregion, according to the gray value in the adjacent subarea domain of the target subregion to the gray scale of the target subregion
Value is adjusted, to generate local gray level figure figure;
Enhance grayscale image determining module, for determining target image according to the global grayscale image and the local gray level figure
The enhanced enhancing grayscale image of contrast.
The third aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing
Device realizes method for enhancing picture contrast as described in relation to the first aspect.
Fourth aspect, it is described the embodiment of the invention also provides a kind of storage medium comprising computer executable instructions
Computer executable instructions by computer processor when being executed for executing picture superposition as described in relation to the first aspect
Method.
The technical solution of method for enhancing picture contrast provided in an embodiment of the present invention, comprising: obtain the ash of target image
Degree figure;Global contrast enhancing is carried out to grayscale image, to obtain global grayscale image;Grayscale image is divided into multiple subregions, base
In preset order using each subregion as target subregion, according to the gray value in the adjacent subarea domain of target subregion to the mesh
The gray value of mark subregion is adjusted, to generate local gray level figure;Target is determined according to global grayscale image and local grayscale image
Enhancing grayscale image after picture superposition.The part of current sub-region is determined in conjunction with the gray value average value in adjacent subarea domain
The overall effect of picture also can be improved while realizing that local contrast dynamic enhances in grayscale image;In conjunction with global grayscale image and
The enhancing grayscale image that local gray level figure determines, can show more picture details, more true, natural picture is presented.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing does one and simply introduces, it should be apparent that, drawings in the following description are some embodiments of the invention, for this
For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others
Attached drawing.
Fig. 1 is the flow chart for the method for enhancing picture contrast that the embodiment of the present invention one provides;
Fig. 2 is the process of the global contrast Enhancement Method provided by Embodiment 2 of the present invention based on matched curve method
Figure;
Fig. 3 is the nonlinear adjustment curve synoptic diagram in low clear zone provided by Embodiment 2 of the present invention;
Fig. 4 is the nonlinear adjustment curve synoptic diagram in middle clear zone provided by Embodiment 2 of the present invention;
Fig. 5 is the nonlinear adjustment curve synoptic diagram in clear zone provided by Embodiment 2 of the present invention;
Fig. 6 is histogram schematic diagram and weighting curve schematic diagram provided by Embodiment 2 of the present invention;
Fig. 7 is the structural block diagram for the picture superposition device that the embodiment of the present invention three provides;
Fig. 8 is the structural schematic diagram for the equipment that the embodiment of the present invention four provides.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, hereinafter with reference to attached in the embodiment of the present invention
Figure, clearly and completely describes technical solution of the present invention by embodiment, it is clear that described embodiment is the present invention one
Section Example, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing
Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present invention.
Embodiment one
Fig. 1 is the flow chart for the method for enhancing picture contrast that the embodiment of the present invention one provides.The technical side of the present embodiment
Case is suitable for the case where enhancing image degree of comparing.This method can be increased by picture contrast provided in an embodiment of the present invention
Intensity device executes, which can be realized by the way of software and/or hardware, and configures and apply in the processor.The party
Method specifically comprises the following steps:
S101, the grayscale image for obtaining target image.
The grayscale image of target image to be processed is obtained, the gray number of the grayscale image can be configured according to usage scenario,
This implementation not limits herein, and is illustrated so that gray number is 1024 ranks as an example.
S102, global contrast enhancing is carried out to grayscale image, to obtain global grayscale image.
Good contrast effect in order to obtain, the present embodiment first carries out global contrast enhancing to grayscale image, to obtain
Global grayscale image, and global contrast enhancing it is preferable to use matched curve method to grayscale image carry out global contrast enhancing, with
Obtain global grayscale image.
S103, grayscale image is divided into multiple subregions, based on preset order using each subregion as target subregion,
The gray value of the target subregion is adjusted according to the gray value in the adjacent subarea domain of target subregion, to generate part ash
Degree figure.
In order to improve picture superposition effect, the present embodiment also introduces on the basis of global contrast enhances
Local contrast enhancing, is divided into multiple subregions for grayscale image, based on preset order using each subregion as target sub-district
Domain is adjusted the gray value of the target subregion according to the gray value in the adjacent subarea domain of target subregion, to generate office
Portion's grayscale image.
Further, in order to improve the flexibility of sub-zone dividing, the present embodiment first carries out edge filter to gray level image
To obtain edge image, it is then based on the edge of edge image, gray level image is divided into multiple subregions.Wherein, edge is filtered
The method of wave preferably uses Sobel operator, then the method divided based on edge image to gray level image includes:
Horizontal direction difference Gx and vertical direction difference Gy is calculated using edge difference Sobel operator, as follows respectively:
Gradient-norm and direction are calculated based on horizontal direction difference Gx and vertical direction difference Gy, as follows:
θ=atan2 (Gy,Gx)
Gradient angle, θ range arrives four direction from radian-π to π, its approximation, respectively represents level, and vertically and two right
Linea angulata direction (0 °, 45 °, 90 °, 135 °).It can be divided with π/8 ± i (i=1,3,5,7), to the gradient angle for falling in each region
One particular value, represents one of four direction, has thus obtained edge image.Due to the edge image and gradient of different images
As a result different, therefore the subregion shape of different images and quantity difference.Therefore the subregion number and shape of the present embodiment are
It is unfixed, can be different with the difference of target image, which improves the flexibilities and right that local gray level figure is handled
Target image adaptability.
After subregion determines, it usually needs adjust the intensity profile of each subregion, the present embodiment is according to target subregion
Adjacent subarea domain gray value, preferred average gray is adjusted the gray value of the target subregion, to generate part
Grayscale image, preferably are as follows: calculate the average gray value in each adjacent subarea domain of target subregion and the target subregion difference and;
According to the intensity profile of difference and adjustment target subregion, to generate local gray level figure.In order to improve the speed of image procossing, this
Each difference and corresponding adjustable strategies are summarized in a table by embodiment, are handled in this way to each target subregion
When, as long as searching corresponding adjustable strategies according to difference and in table, and adjustable strategies herein are grey scale mapping, tool
Body is, it is assumed that difference is the difference in target subregion region adjacent thereto, then when difference and to be greater than be timing, indicates target sub-district
The overall gray value in domain is higher, then is compressed its gray scale by grey scale mapping;When difference is with being negative, target sub-district is indicated
The overall gray value in domain is lower, then is increased its gray scale by grey scale mapping.It is adjusted by the average gray of adjacent image
The intensity profile of target subregion helps to improve local contrast enhancing to the adaptability of different images, makes entire image
Contrast reinforcing effect is more natural.
Illustratively, it is assumed that the average gray value of target subregion is 100, and the average ash of its four adjacent sub-regions
Angle value is respectively 80,90,110 and 110, then the difference of the average gray value of the target subregion subregion adjacent thereto and for-
10, it then tables look-up and searches for difference and for -10 corresponding adjustable strategies, the gray value of the target subregion is adjusted.
S104, the enhanced enhancing grayscale image of target image contrast is determined according to global grayscale image and local grayscale image.
After global grayscale image drawn game part Butut determines, global grayscale image and local grayscale image are overlapped, with life
At the enhanced enhancing grayscale image of target image, since the picture superposition processing of global grayscale image and local subregion is equal
Image adaptability with higher, therefore enhance grayscale image with preferable details depth of field sense, picture is relatively more natural, true.
The technical solution of method for enhancing picture contrast provided in an embodiment of the present invention, comprising: obtain the ash of target image
Degree figure;Global contrast enhancing is carried out to grayscale image, to obtain global grayscale image;Grayscale image is divided into multiple subregions, base
In preset order using each subregion as target subregion, according to the gray value in the adjacent subarea domain of target subregion to the mesh
The gray value of mark subregion is adjusted, to generate local gray level figure;Target is determined according to global grayscale image and local grayscale image
Enhancing grayscale image after picture superposition.The part of current sub-region is determined in conjunction with the gray value average value in adjacent subarea domain
The overall effect of picture also can be improved while realizing that local contrast dynamic enhances in grayscale image;In conjunction with global grayscale image and
The enhancing grayscale image that local gray level figure determines, can show more picture details, more true, natural picture is presented.
Embodiment two
Fig. 2 is the flow chart of method for enhancing picture contrast provided by Embodiment 2 of the present invention.The embodiment of the present invention is upper
On the basis of stating embodiment, it is described further to global contrast enhancing is carried out based on matched curve method, comprising:
S1021, the grey level histogram that grayscale image is determined based on preset gray scale number, and will be grey based on predetermined luminance number of levels
Degree figure is divided into the brightness region of respective numbers.
Wherein, preset gray scale number can be set according to actual use scene, and the preset gray scale number of the present embodiment is preferred
Discernmible 32 rank of human eye, i.e., it needs to be determined that 32 rank grey level histograms of the target image grayscale image of 1024 ranks.
Wherein, predetermined luminance number of levels can be set according to actual use scene, and the present embodiment is with predetermined luminance grade
It Shuo not be illustrated for 3, i.e., grayscale image is divided into 3 brightness regions, respectively low clear zone, middle clear zone and highlight bar.
S1022, the nonlinear adjustment curve for obtaining each brightness region.
According to the adjustment target of each brightness region, one nonlinear adjustment curve is set for each brightness region.It is understood that
, the shape of nonlinear adjustment curve can be configured according to usage scenario, and nonlinear adjustment curve is for substantially reflecting
The contrast distribution of place brightness region.Optionally, the nonlinear adjustment curve of the present embodiment is as shown in Fig. 3, Fig. 4 and Fig. 5, dotted line
For with reference axis straight line at 45 °, indicate that the contrast of image before and after the processing is identical.Under normal circumstances, when nonlinear curve value
When greater than 1, the bloom part of image is by compression and shadow part is extended, when nonlinear curve value is less than 1, the bloom of image
Part by extension and shadow part is compressed.
Wherein, corresponding three look-up tables of three nonlinear adjustment curves, the nonlinear adjustment curve in low-light level area are corresponding
The adjustment curve look-up table in low-light level area is Lut_0 [32], the corresponding middle brightness region of the nonlinear adjustment curve of middle brightness region
Adjustment curve look-up table is Lut_1 [32], and the adjustment curve of the corresponding high luminance area of nonlinear adjustment curve of high luminance area is looked into
Looking for table is Lut_2 [32].
S1023, the global gain and luminance weights coefficient for obtaining each brightness region, as the brightness region, each grayscale institute is right
The global gain and luminance weights coefficient answered.
The global gain for obtaining each brightness region, the corresponding global gain of each grayscale as the brightness region, wherein complete
Office's gain is empirical value.
The luminance weights coefficient for obtaining each brightness region, as the corresponding luminance weights system of each gray number in the brightness region
Number, wherein the acquisition methods of luminance weights coefficient are as follows: as shown in fig. 6, one and grey level histogram pair is arranged for each brightness region
The luminance weights curve answered, wherein luminance weights curve is used to indicate each grayscale in the brightness value in present intensity area and owns
The ratio of the brightness value of brightness region.Three luminance weights curves respectively correspond three look-up tables, the weighting curve pair in low-light level area
The weight look-up table in the low-light level area answered is BinWeighting_low_LUT [32], during the weighting curve of middle brightness region is corresponding
The weight look-up table of brightness region is BinWeighting_mid_LUT [32], the corresponding high luminance area of the weighting curve of high luminance area
Weight look-up table be BinWeighting_high_LUT [32].
After weighting curve determines, the luminance weights curve of each brightness region and the product of corresponding all grayscale, work are calculated
For the weight of the brightness region, wherein the weight in low clear zone is expressed as Metric [0], and the weight in middle clear zone is expressed as Metric
[1], the weight of highlight bar is expressed as Metric [2].MetricSum=Metric [0]+Metric [1]+Metric [2] is then right
Answer three brightness regions weight and, then the weight coefficient of three brightness regions is respectively as follows:
The weight coefficient in low clear zone are as follows:
The weight coefficient in middle clear zone are as follows:
The weight coefficient of highlight bar are as follows:
S1024, multiplying the nonlinear adjustment curve values of each grayscale of each brightness region, global gain and weight coefficient
Product is as single brightness adjustment value, by the sum of single brightness adjustment value of the corresponding different brightness regions of each grayscale as each grayscale
Adjusted value.
The nonlinear adjustment curve values of each grayscale of each brightness region, the product of global gain and weight coefficient are sought,
Using single brightness adjustment value as each grayscale, then seek the corresponding different brightness regions of each grayscale single brightness adjustment value it
With using the adjusted value as each grayscale, the combined expressions of adjusted value are as follows:
LUT [i]=GlbGain0*W0*Lut_0 [i]+GlbGain1*W1*Lut_1 [i]+GlbGain2*W2*Lut_2
[i]
Wherein, GlbGain0 is the global gain in low clear zone, and GlbGain1 is the global gain in middle clear zone, and GlbGain2 is
The global gain of highlight bar.
As shown from the above formula, the adjusted value of each grayscale includes the information of each brightness region, and it is global right to help to improve
Than degree enhancing to the adaptability of image, and the picture superposition effect of global grayscale image.
S1025, grayscale image is adjusted according to the adjusted value of each grayscale, to obtain global grayscale image.
Since grey level histogram and nonlinear adjustment curve graph are the grey level histogram of 32 ranks, the adjusted value of grayscale
32 ranks are also based on, therefore after the adjusted value of each grayscale determines, then according to the tune of the 32 each grayscale of rank grey level histogram
Whole value can obtain the adjusted value of each grayscale of 1024 rank grey level histograms by linear interpolation, then according to 1024 rank gray scales
The adjusted value of each grayscale of histogram obtains global grayscale image.
The embodiment of the present invention can effectively balance the adjustment effect of each nonlinear adjustment curve by weight coefficient, in turn
It can quickly and accurately determine the global grayscale image of target image.
Embodiment three
Fig. 7 is the structural block diagram for the picture superposition device that the embodiment of the present invention three provides.The device is for executing
Method for enhancing picture contrast provided by above-mentioned any embodiment, the device are chosen as software or hardware realization.The device packet
It includes:
Grayscale image obtains module 11, for obtaining the grayscale image of target image;
Global gray scale module 12, for carrying out global contrast enhancing to grayscale image, to obtain global grayscale image;
Local gray level module 13 will be each based on preset order for the grayscale image to be divided into multiple subregions
Subregion is as target subregion, according to the gray value in the adjacent subarea domain of the target subregion to the ash of the target subregion
Angle value is adjusted, to generate local gray level figure;
Enhance grayscale image determining module 14, for determining target image contrast according to global grayscale image and local grayscale image
Enhanced enhancing grayscale image.
Picture superposition device provided in an embodiment of the present invention, comprising: grayscale image obtains module, for obtaining target
The grayscale image of image;Global gray scale module, for carrying out global contrast enhancing to grayscale image, to obtain global grayscale image;
Local gray level module, for the grayscale image to be divided into multiple subregions, based on preset order using each subregion as
Target subregion adjusts the gray value of the target subregion according to the gray value in the adjacent subarea domain of the target subregion
It is whole, to generate local gray level figure;Enhance grayscale image determining module, for determining target according to global grayscale image and local grayscale image
Enhancing grayscale image after picture superposition.The part of current sub-region is determined in conjunction with the gray value average value in adjacent subarea domain
The overall effect of picture also can be improved while realizing that local contrast dynamic enhances in grayscale image;In conjunction with global grayscale image and
The enhancing grayscale image that local gray level figure determines, can show more picture details, more true, natural picture is presented.
The there is provided figure of any embodiment of that present invention can be performed in picture superposition device provided by the embodiment of the present invention
Image contrast Enhancement Method has the corresponding functional module of execution method and beneficial effect.
Example IV
Fig. 8 is the structural schematic diagram for the equipment that the embodiment of the present invention four provides, as shown in figure 8, the equipment includes processor
201, memory 202, input unit 203 and output device 204;The quantity of processor 201 can be one or more in equipment
It is a, in Fig. 8 by taking a processor 201 as an example;Processor 201, memory 202, input unit 203 and output dress in equipment
Setting 204 can be connected by bus or other modes, in Fig. 8 for being connected by bus.
Memory 202 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, if the corresponding program instruction/module of the method for enhancing picture contrast in the embodiment of the present invention is (for example, gray scale
Figure obtains module 11, global gray scale module 12, local gray level module 13 and enhancing grayscale image determining module 14).Processing
Software program, instruction and the module that device 201 is stored in memory 202 by operation, thereby executing the various functions of equipment
Using and data processing, that is, realize above-mentioned method for enhancing picture contrast.
Memory 202 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 202 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 202 can be into one
Step includes the memory remotely located relative to processor 201, these remote memories can pass through network connection to equipment.On
The example for stating network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 203 can be used for receiving the number or character information of input, and generate with the user setting of equipment with
And the related key signals input of function control.
Output device 204 may include that display screen etc. shows equipment, for example, the display screen of user terminal.
Embodiment five
The embodiment of the present invention five also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction is used to execute a kind of method for enhancing picture contrast when being executed by computer processor, this method comprises:
Obtain the grayscale image of target image;
Global contrast enhancing is carried out to the grayscale image, to obtain global grayscale image;
The grayscale image is divided into multiple subregions, based on preset order using each subregion as target subregion,
The gray value of the target subregion is adjusted according to the gray value in the adjacent subarea domain of the target subregion, to generate office
Portion's grayscale image.
The enhanced enhancing gray scale of target image contrast is determined according to the global grayscale image and the local gray level figure
Figure.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The method operation that executable instruction is not limited to the described above, can also be performed image comparison provided by any embodiment of the invention
Spend the relevant operation in Enhancement Method.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random such as computer
Access Memory, abbreviation RAM), flash memory (FLASH), hard disk or CD etc., including some instructions are used so that a calculating
Machine equipment (can be personal computer, server or the network equipment etc.) executes image described in each embodiment of the present invention
Contrast enhancement process.
It is worth noting that, in the embodiment of above-mentioned picture superposition device, included each unit and module
It is only divided according to the functional logic, but is not limited to the above division, as long as corresponding functions can be realized;
In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, the protection scope being not intended to restrict the invention.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that
The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation,
It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention
It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also
It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.
Claims (10)
1. a kind of method for enhancing picture contrast characterized by comprising
Obtain the grayscale image of target image;
Global contrast enhancing is carried out to the grayscale image, to obtain global grayscale image;
The grayscale image is divided into multiple subregions, based on preset order using each subregion as target subregion, according to
The gray value in the adjacent subarea domain of the target subregion is adjusted the gray value of the target subregion, to generate part ash
Degree figure;
The enhanced enhancing grayscale image of target image contrast is determined according to the global grayscale image and the local gray level figure.
2. the method according to claim 1, wherein it is described to the grayscale image carry out global contrast enhancing,
To obtain global grayscale image, comprising:
Global contrast enhancing is carried out to the grayscale image based on matched curve method, to obtain global grayscale image.
3. according to the method described in claim 2, it is characterized in that, described carry out the grayscale image based on matched curve method
Global contrast enhancing, to obtain global grayscale image, comprising:
The grey level histogram of the grayscale image is determined based on preset gray scale number, and is based on predetermined luminance number of levels for the gray scale
Figure is divided into the brightness region of respective numbers;
Obtain the nonlinear adjustment curve of each brightness region;
The global gain and luminance weights coefficient for obtaining each brightness region increase as the overall situation corresponding to each grayscale in the brightness region
Benefit and luminance weights coefficient;
Using the product of the nonlinear adjustment curve values of each grayscale of each brightness region, global gain and weight coefficient as Dan Liang
Adjusted value is spent, the adjusted value by the sum of single brightness adjustment value of the corresponding different brightness regions of each grayscale as each grayscale;
The grayscale image is adjusted according to the adjusted value of each grayscale, to obtain global grayscale image.
4. according to the method described in claim 3, it is characterized in that, obtaining the luminance weights coefficient of each brightness region, comprising:
One luminance weights curve corresponding with the grey level histogram is set for each brightness region, wherein the luminance weights
Curve is for indicating each grayscale in the ratio of the brightness value in present intensity area and the brightness value of all brightness regions;
Calculate the luminance weights curve of luminance weights the curve corresponding all luminance weights and all brightness regions of each brightness region
The ratio of the sum of corresponding all luminance weights, using the weight coefficient as each brightness region.
5. being wrapped the method according to claim 1, wherein described be divided into multiple subregions for the grayscale image
It includes:
Edge filter is carried out to the grayscale image, to obtain edge image;
Based on the edge of the edge image, the grayscale image is divided into multiple subregions.
6. according to the method described in claim 5, it is characterized in that, the adjacent subarea domain according to the target subregion
Gray value is adjusted the gray value of the target subregion, to generate local gray level figure, comprising:
Calculate the average gray value of each subregion;
The gray value of the target subregion is adjusted according to the average gray value in the adjacent subarea domain of the target subregion,
To generate local gray level figure.
7. according to the method described in claim 5, it is characterized in that, the adjacent subarea domain according to the target subregion
Average gray value is adjusted the gray value of the target subregion, to generate local gray level figure, comprising:
Calculate the average gray value in each adjacent subarea domain of target subregion and the target subregion difference and;
According to the intensity profile of the difference and the adjustment target subregion, to generate local gray level figure.
8. a kind of picture superposition device characterized by comprising
Grayscale image obtains module, for obtaining the grayscale image of target image;
Global gray scale module, for carrying out global contrast enhancing to the grayscale image, to obtain global grayscale image;
Local gray level module is based on preset order for each subregion for the grayscale image to be divided into multiple subregions
As target subregion, according to the gray value in the adjacent subarea domain of the target subregion to the gray value of the target subregion into
Row adjustment, to generate local gray level figure;
Enhance grayscale image determining module, for determining that target image compares according to the global grayscale image and the local gray level figure
Spend enhanced enhancing grayscale image.
9. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method for enhancing picture contrast as described in any in claim 1-7.
10. a kind of storage medium comprising computer executable instructions, which is characterized in that the computer executable instructions by
For executing the method for enhancing picture contrast as described in any in claim 1-7 when computer processor executes.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810952870.7A CN109191395B (en) | 2018-08-21 | 2018-08-21 | Image contrast enhancement method, device, equipment and storage medium |
PCT/CN2019/094263 WO2020038124A1 (en) | 2018-08-21 | 2019-07-01 | Image contrast enhancement method and apparatus, and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810952870.7A CN109191395B (en) | 2018-08-21 | 2018-08-21 | Image contrast enhancement method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109191395A true CN109191395A (en) | 2019-01-11 |
CN109191395B CN109191395B (en) | 2021-03-09 |
Family
ID=64918789
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810952870.7A Active CN109191395B (en) | 2018-08-21 | 2018-08-21 | Image contrast enhancement method, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN109191395B (en) |
WO (1) | WO2020038124A1 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109903294A (en) * | 2019-01-25 | 2019-06-18 | 北京三快在线科技有限公司 | Image processing method, device, electronic equipment and readable storage medium storing program for executing |
CN110033474A (en) * | 2019-01-30 | 2019-07-19 | 西安天伟电子系统工程有限公司 | Object detection method, device, computer equipment and storage medium |
CN110099222A (en) * | 2019-05-17 | 2019-08-06 | 睿魔智能科技(深圳)有限公司 | A kind of exposure adjustment method of capture apparatus, device, storage medium and equipment |
WO2020038124A1 (en) * | 2018-08-21 | 2020-02-27 | 深圳创维-Rgb电子有限公司 | Image contrast enhancement method and apparatus, and device and storage medium |
CN111683192A (en) * | 2020-06-11 | 2020-09-18 | 展讯通信(上海)有限公司 | Image processing method and related product |
CN112419217A (en) * | 2020-11-19 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Image processing method, image processing apparatus, computer device, and medium |
CN112950515A (en) * | 2021-01-29 | 2021-06-11 | Oppo广东移动通信有限公司 | Image processing method and device, computer readable storage medium and electronic device |
CN112950516A (en) * | 2021-01-29 | 2021-06-11 | Oppo广东移动通信有限公司 | Method and device for enhancing local contrast of image, storage medium and electronic equipment |
CN113015006A (en) * | 2020-06-04 | 2021-06-22 | 海信视像科技股份有限公司 | Display apparatus and display method |
CN113436263A (en) * | 2021-08-25 | 2021-09-24 | 深圳市大道智创科技有限公司 | Feature point extraction method and system based on image processing |
CN113674700A (en) * | 2021-07-13 | 2021-11-19 | 义隆电子股份有限公司 | Method for improving halo effect of display |
CN113947553A (en) * | 2021-12-20 | 2022-01-18 | 山东信通电子股份有限公司 | Image brightness enhancement method and device |
CN116894795A (en) * | 2023-09-11 | 2023-10-17 | 归芯科技(深圳)有限公司 | Image processing method and device |
CN117893540A (en) * | 2024-03-18 | 2024-04-16 | 乳山市创新新能源科技有限公司 | Roundness intelligent detection method and system for pressure container |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111738944B (en) * | 2020-06-12 | 2024-04-05 | 深圳康佳电子科技有限公司 | Image contrast enhancement method and device, storage medium and intelligent television |
CN114881882A (en) * | 2022-05-20 | 2022-08-09 | 云南北方光电仪器有限公司 | Infrared image compression and contrast enhancement method, storage medium and device |
CN117218029B (en) * | 2023-09-25 | 2024-03-01 | 南京邮电大学 | Night dim light image intelligent processing method based on neural network |
CN117576104B (en) * | 2024-01-17 | 2024-06-07 | 山东世纪阳光科技有限公司 | Visual detection method for health state of ultrafiltration membrane in purification process |
CN118351068A (en) * | 2024-04-10 | 2024-07-16 | 费县探沂镇红太阳木业有限公司 | Building decorative plate lamination quality detection method based on vision |
CN118247191B (en) * | 2024-05-20 | 2024-08-02 | 陕西旭腾光讯科技有限公司 | Image enhancement method based on computer vision |
CN118334033B (en) * | 2024-06-14 | 2024-08-23 | 成都图灵威视科技有限公司 | Line defect detection method and system based on industrial product defects |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101853497A (en) * | 2010-02-25 | 2010-10-06 | 杭州海康威视软件有限公司 | Image enhancement method and device |
US20100278423A1 (en) * | 2009-04-30 | 2010-11-04 | Yuji Itoh | Methods and systems for contrast enhancement |
CN103279930A (en) * | 2013-05-27 | 2013-09-04 | 辽宁工程技术大学 | Synchronous image denoising and enhancing method |
CN104994376A (en) * | 2015-07-10 | 2015-10-21 | 深圳华侨城文化旅游科技股份有限公司 | Method and system for automatically simulating projection colors of projector |
CN105654438A (en) * | 2015-12-27 | 2016-06-08 | 西南技术物理研究所 | Gray scale image fitting enhancement method based on local histogram equalization |
CN107767349A (en) * | 2017-10-12 | 2018-03-06 | 深圳市华星光电半导体显示技术有限公司 | A kind of method of Image Warping enhancing |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7406716B2 (en) * | 2003-06-10 | 2008-07-29 | Kabushiki Kaisha Toshiba | Software IP providing system and method, software IP obtaining method, and IP core designing and manufacturing method |
CN105608676B (en) * | 2015-12-23 | 2018-06-05 | 浙江宇视科技有限公司 | The Enhancement Method and device of a kind of video image |
CN109191395B (en) * | 2018-08-21 | 2021-03-09 | 深圳创维-Rgb电子有限公司 | Image contrast enhancement method, device, equipment and storage medium |
-
2018
- 2018-08-21 CN CN201810952870.7A patent/CN109191395B/en active Active
-
2019
- 2019-07-01 WO PCT/CN2019/094263 patent/WO2020038124A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100278423A1 (en) * | 2009-04-30 | 2010-11-04 | Yuji Itoh | Methods and systems for contrast enhancement |
CN101853497A (en) * | 2010-02-25 | 2010-10-06 | 杭州海康威视软件有限公司 | Image enhancement method and device |
CN103279930A (en) * | 2013-05-27 | 2013-09-04 | 辽宁工程技术大学 | Synchronous image denoising and enhancing method |
CN104994376A (en) * | 2015-07-10 | 2015-10-21 | 深圳华侨城文化旅游科技股份有限公司 | Method and system for automatically simulating projection colors of projector |
CN105654438A (en) * | 2015-12-27 | 2016-06-08 | 西南技术物理研究所 | Gray scale image fitting enhancement method based on local histogram equalization |
CN107767349A (en) * | 2017-10-12 | 2018-03-06 | 深圳市华星光电半导体显示技术有限公司 | A kind of method of Image Warping enhancing |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020038124A1 (en) * | 2018-08-21 | 2020-02-27 | 深圳创维-Rgb电子有限公司 | Image contrast enhancement method and apparatus, and device and storage medium |
CN109903294B (en) * | 2019-01-25 | 2020-05-29 | 北京三快在线科技有限公司 | Image processing method and device, electronic equipment and readable storage medium |
CN109903294A (en) * | 2019-01-25 | 2019-06-18 | 北京三快在线科技有限公司 | Image processing method, device, electronic equipment and readable storage medium storing program for executing |
CN110033474A (en) * | 2019-01-30 | 2019-07-19 | 西安天伟电子系统工程有限公司 | Object detection method, device, computer equipment and storage medium |
CN110033474B (en) * | 2019-01-30 | 2021-09-03 | 西安天伟电子系统工程有限公司 | Target detection method, target detection device, computer equipment and storage medium |
CN110099222A (en) * | 2019-05-17 | 2019-08-06 | 睿魔智能科技(深圳)有限公司 | A kind of exposure adjustment method of capture apparatus, device, storage medium and equipment |
CN113015006A (en) * | 2020-06-04 | 2021-06-22 | 海信视像科技股份有限公司 | Display apparatus and display method |
CN111683192A (en) * | 2020-06-11 | 2020-09-18 | 展讯通信(上海)有限公司 | Image processing method and related product |
CN112419217B (en) * | 2020-11-19 | 2024-03-26 | 腾讯科技(深圳)有限公司 | Image processing method, device, computer equipment and medium |
CN112419217A (en) * | 2020-11-19 | 2021-02-26 | 腾讯科技(深圳)有限公司 | Image processing method, image processing apparatus, computer device, and medium |
CN112950515A (en) * | 2021-01-29 | 2021-06-11 | Oppo广东移动通信有限公司 | Image processing method and device, computer readable storage medium and electronic device |
CN112950516A (en) * | 2021-01-29 | 2021-06-11 | Oppo广东移动通信有限公司 | Method and device for enhancing local contrast of image, storage medium and electronic equipment |
CN112950516B (en) * | 2021-01-29 | 2024-05-28 | Oppo广东移动通信有限公司 | Method and device for enhancing local contrast of image, storage medium and electronic equipment |
CN113674700A (en) * | 2021-07-13 | 2021-11-19 | 义隆电子股份有限公司 | Method for improving halo effect of display |
CN113674700B (en) * | 2021-07-13 | 2023-11-14 | 义隆电子股份有限公司 | Method for improving halation effect of display |
CN113436263A (en) * | 2021-08-25 | 2021-09-24 | 深圳市大道智创科技有限公司 | Feature point extraction method and system based on image processing |
CN113436263B (en) * | 2021-08-25 | 2021-12-21 | 深圳市大道智创科技有限公司 | Feature point extraction method and system based on image processing |
CN113947553A (en) * | 2021-12-20 | 2022-01-18 | 山东信通电子股份有限公司 | Image brightness enhancement method and device |
CN116894795B (en) * | 2023-09-11 | 2023-12-26 | 归芯科技(深圳)有限公司 | Image processing method and device |
CN116894795A (en) * | 2023-09-11 | 2023-10-17 | 归芯科技(深圳)有限公司 | Image processing method and device |
CN117893540A (en) * | 2024-03-18 | 2024-04-16 | 乳山市创新新能源科技有限公司 | Roundness intelligent detection method and system for pressure container |
CN117893540B (en) * | 2024-03-18 | 2024-05-31 | 乳山市创新新能源科技有限公司 | Roundness intelligent detection method and system for pressure container |
Also Published As
Publication number | Publication date |
---|---|
CN109191395B (en) | 2021-03-09 |
WO2020038124A1 (en) | 2020-02-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109191395A (en) | Method for enhancing picture contrast, device, equipment and storage medium | |
CN111031346B (en) | Method and device for enhancing video image quality | |
US9984445B2 (en) | Tone mapping | |
CN107993189B (en) | Image tone dynamic adjustment method and device based on local blocking | |
US9489722B2 (en) | Method and apparatus for implementing image denoising | |
KR102150960B1 (en) | Apparatus and method for processing image | |
CN104995908A (en) | Image processing device, image processing method, image processing program, and recording medium | |
CN108074220A (en) | A kind of processing method of image, device and television set | |
CN111340732B (en) | Low-illumination video image enhancement method and device | |
Gupta et al. | Histogram based image enhancement techniques: a survey | |
JP2017021759A (en) | Image processor, image processing method and program | |
CN111127341A (en) | Image processing method and apparatus, and storage medium | |
CN108604302A (en) | Adaptive bilateral (BL) for computer vision is filtered | |
Jordanski et al. | Dynamic recursive subimage histogram equalization algorithm for image contrast enhancement | |
CN111127337B (en) | Image local area highlight adjusting method, medium, equipment and device | |
CN107404600B (en) | Image processing apparatus and method | |
CN108734712B (en) | Background segmentation method and device and computer storage medium | |
US20170148177A1 (en) | Image processing apparatus, image processing method, and program | |
US20220318967A1 (en) | Method and device for image processing, and storage medium | |
CN105654456B (en) | Information processing method and electronic equipment | |
JP2017107366A (en) | Image processing device and pogram | |
CN112200730B (en) | Image filtering processing method, device, equipment and storage medium | |
CN110895789A (en) | Face beautifying method and device | |
CN111383183B (en) | Image edge enhancement method and device and computer storage medium | |
CN111402178A (en) | Non-mean filtering method and non-mean filtering device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |