CN109146815A - Picture contrast method of adjustment, device and computer equipment - Google Patents

Picture contrast method of adjustment, device and computer equipment Download PDF

Info

Publication number
CN109146815A
CN109146815A CN201810949614.2A CN201810949614A CN109146815A CN 109146815 A CN109146815 A CN 109146815A CN 201810949614 A CN201810949614 A CN 201810949614A CN 109146815 A CN109146815 A CN 109146815A
Authority
CN
China
Prior art keywords
picture signal
color
color space
picture
contrast
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810949614.2A
Other languages
Chinese (zh)
Other versions
CN109146815B (en
Inventor
钱玉斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics 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 Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN201810949614.2A priority Critical patent/CN109146815B/en
Publication of CN109146815A publication Critical patent/CN109146815A/en
Application granted granted Critical
Publication of CN109146815B publication Critical patent/CN109146815B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • G06T5/92Dynamic range modification of images or parts thereof based on global image properties
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Processing (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

This application involves a kind of picture contrast method of adjustment, device, computer equipment and storage mediums.The described method includes: the first picture signal to input carries out color space conversion, the second picture signal is obtained;To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section whether in preset color section;If so, being corrected to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color space conversion, makes it restore to priming color space, obtains third picture signal;Export third picture signal.Distortion caused by after picture contrast adjustment is efficiently solved using this method, so that the image after setting contrast is more natural.

Description

Picture contrast method of adjustment, device and computer equipment
Technical field
This application involves technical field of image processing, more particularly to a kind of picture contrast method of adjustment, device, calculating Machine equipment and storage medium.
Background technique
Setting contrast is technology relatively conventional in field of image processing.The original of current existing setting contrast technology Reason is to be adjusted by curve according to the distribution of the average brightness of image frame and histogram distribution, obtain the contrast of picture It is promoted, stereovision is reinforced. But the prior art, there are a disadvantage, image biggish for color contrast after enhancing by contrast, can make color The higher region of brightness value will become brighter, the lower region of chroma-luminance value will become darker, it appears that unnatural to generate sternly It is distorted again.
Therefore, traditional setting contrast technology there are problems that be easy to causeing distortion.
Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide one kind efficiently solve picture contrast adjustment after make At distortion, the more natural picture contrast method of adjustment of picture, device, computer equipment after setting contrast and Storage medium.
A kind of picture contrast method of adjustment, which comprises
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section Whether in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
The color space of the first picture signal is RGB color in one of the embodiments, to the first figure of input Include: to convert the first picture signal to YCbCr color space from RGB color as signal carries out color space conversion, obtains To the second picture signal.
The step of correcting in one of the embodiments, to the second picture signal degree of comparing includes: setting protection system Number, corrects the second picture signal degree of comparing according to protection factor.
The first picture signal includes a frame or multiple image in one of the embodiments,.
In one of the embodiments, the method also includes: if it is not, then to the second picture signal carry out color space turn It changes, makes it restore to priming color space, obtain third picture signal.
A kind of picture contrast adjustment device, described device include:
Color-space conversion module obtains the second image letter for carrying out color space conversion to the first picture signal of input Number;
Color detection and judgment module, for obtaining detection color to the adjustment of the second picture signal degree of comparing and color detection Color section judges to detect color section whether in preset color section;
Contrast correction module, for if so, being corrected to the second picture signal degree of comparing, by the after contrast correction Two picture signals carry out color space conversion, make it restore to priming color space, obtain third picture signal.
Output module, for exporting third picture signal.
A kind of computer equipment, including memory, processor, the memory are stored with computer program, the processing Device performs the steps of when executing the computer program
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section Whether in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor It is performed the steps of when row
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section Whether in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
Above-mentioned picture contrast method of adjustment, device, computer equipment and storage medium, terminal are sentenced by color detection Whether the detection color section of disconnected image is in preset color section, to judge that the image is larger with the presence or absence of color contrast The problem of, if so, being further modified to it after setting contrast, to image fault is modified, effectively Solves distortion caused by after picture contrast adjustment, so that the image after setting contrast is more natural.
Detailed description of the invention
Fig. 1 is the flow diagram of picture contrast method of adjustment in one embodiment;
Fig. 2 is the flow diagram of picture contrast method of adjustment in another embodiment;
Fig. 3 is the structural block diagram that picture contrast adjusts device in one embodiment;
Fig. 4 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
Picture contrast method of adjustment provided by the present application, can be applied in terminal.Wherein, terminal can be, but not limited to It is various personal computers, laptop, mobile phone, tablet computer, vehicle-mounted computer and portable wearable device.
In one embodiment, as shown in Figure 1, providing a kind of picture contrast method of adjustment, it is applied in this way It is illustrated for above-mentioned terminal, comprising the following steps:
Step 102, color space conversion is carried out to the first picture signal of input, obtains the second picture signal.
Wherein, the first picture signal is picture signal to be processed.In practical applications, picture signal to be processed can be with But the image for being not limited to the image of user's input or being automatically entered by system or software etc..First picture signal can be Still image or dynamic image.Wherein, still image can be, but not limited to be jpg format, jpeg format and png format etc., move State image can be, but not limited to be gif format etc..
When to the adjustment of image degree of comparing corresponding adjustment need to be carried out for specific color space.In the present embodiment, Terminal converts the priming color space of the first picture signal of input, it is made to be converted into targeted colorspace, acquisition pair The second picture signal answered.Wherein, targeted colorspace can be used for the adjustment of picture contrast.In the present embodiment, terminal is also Second picture signal of acquisition is filtered.
Step 104, to the adjustment of the second picture signal degree of comparing and color detection, detection color section, judgement are obtained Color section is detected whether in preset color section.
The color space of second picture signal is targeted colorspace.In the present embodiment, by the initial of the second picture signal Contrast is denoted as the first contrast.Specifically, terminal adjusts targeted colorspace, so that the contrast of the second picture signal It is adjusted.In the present embodiment, contrast adjusted is denoted as the second contrast.Further, terminal believes the second image Number carry out color detection.Specifically, terminal detects the color space of the second picture signal, obtains the detection color of the second picture signal Color section.Whether terminal judges the second picture signal in preset color section.Specifically, terminal judges the second picture signal The numerical value of color space whether fall into preset color section.Wherein, preset color section is color in piece image The color section of comparison in a certain range can generate biggish figure when adjusting the picture contrast in preset color section Image distortion, the present embodiment will carry out further contrast correction to such image at this time.
Step 106, if so, being corrected to the second picture signal degree of comparing, by the second image after contrast correction Signal carries out color space conversion, makes it restore to priming color space, obtains third picture signal.
When the color space numerical value of the second picture signal is fallen in preset color section, terminal is to the second picture signal Degree of comparing amendment.Wherein, preset color section is certain color space range, setting before being dispatched from the factory by terminal, It can also be by terminal user's self-setting.Specifically, user is modified targeted colorspace by terminal operation, to weaken step Rapid 104 setting contrast bring distortion.Further, terminal is empty by the color of the second picture signal after contrast correction Between conversion to priming color space, obtain third picture signal.In the present embodiment, terminal to obtained third picture signal into Row filtering processing.
Step 108, third picture signal is exported.
Terminal exports third picture signal.Specifically, terminal exports third picture signal in the form of images, can incite somebody to action Image is shown on the display screen of terminal, or external equipment of the output extremely with terminal communication connection.
In the picture contrast method of adjustment of the present embodiment, terminal judges the detection color zones of image by color detection Between whether in preset color section, to judge the image with the presence or absence of the larger problem of color contrast, if so, right Than being further modified to it after degree adjustment, so that image fault is modified, efficiently solve in picture contrast Distortion caused by after adjustment, so that the image after setting contrast is more natural.
In one embodiment, the color space of the first picture signal is RGB(Red, Green, Blue, RGB) color Space, carrying out color space conversion to the first picture signal of input includes: to convert the first picture signal from RGB color To YCbCr color space, the second picture signal is obtained.
Specifically, terminal converts the first picture signal to YCbCr from RGB color according to formula (1), (2), (3) Color space:
(1)
(2)
(3)
Wherein, Y is the luminance component of YCbCr color space, and Cb is the chroma blue component of YCbCr color space, Cr YCbCr The red chrominance component of color space;R is the red chrominance component of RGB color, and G is the green chroma of RGB color Component, B are the chroma blue component of RGB color.
The targeted colorspace of second picture signal is YCbCr color space made of being converted according to above formula.
Terminal adjusts the second picture signal degree of comparing.Specifically, terminal is adjusted in Y channel degree of comparing.This In embodiment, the first contrast is the channel the Y input value before adjusting contrast, is denoted as Yin, and the second contrast is adjustment comparison Y channel value after degree, is denoted as Yout.Terminal carries out color detection in YCbCr color space.Specifically, terminal detection the channel Y, The value in the channel Cb and the channel Cr.Whether terminal judges targeted colorspace in preset color section.Specifically, terminal according to Whether the value in the channel Y, the channel Cb and the channel Cr judges the YCbCr color space of the second picture signal in preset color section It is interior.
Wherein, color section can need diversified selection according to function.In the present embodiment, preset color section is corresponding For the color section of human skin, referred to as colour of skin section.Mean value (the Cr+ of the colour of skin Cr and Cb of people in YCbCr color space Cb)/2 and better robustness is presented to illumination in the difference of Cr and Cb, and when the colour of skin changes, the value of (Cr+Cb)/2 begins It keeps in a certain range eventually, and the value also flat variation in another range for non-colour of skin section (Cr+Cb)/2, simultaneously (Cr-Cb) value is larger in colour of skin section, and the value of (Cr-Cb) is almost nil in non-colour of skin section.Analysis obtains: if Cr the and Cb value of one pixel meets formula (4), (5) simultaneously, then is judged as being colour of skin section:
(4)
(5)
When the color of object section of the second picture signal is in preset color section, terminal carries out pair the second picture signal It is corrected than degree, the second picture signal after contrast correction is subjected to color space conversion, makes it restore to priming color space, Obtain third picture signal.
Terminal profile protection factor in one of the embodiments, carries out pair the second picture signal according to protection factor It is corrected than degree.Wherein, the value range of protection factor is [0,1], that is, is greater than or equal to 0 to less than or equal to 1.Terminal is according to guarantor Shield coefficient, the first contrast and the second contrast are modified the contrast of the second picture signal, obtain revised third Contrast specifically can be used formula (6) and be modified:
Yout '=(1- α) * Yout+ α * Yin (6)
Wherein, Yin is the first contrast, and Yout is the second contrast, YoutFor third contrast, α is protection factor.
As α=0, Yout '=Yout does not do skin tones protection;
As α=1, Yout '=Yin does not do the adjustment of dynamic contrast;
α value is bigger, and skin tones protection degree is higher, i.e. colour of skin contrast distortion is lower.
Picture contrast entrained by third picture signal is third contrast.Terminal is by the second figure after contrast correction Picture signal obtains third picture signal from YCbCr color space conversion to RGB color.Further, terminal is by third figure As the external equipment that signal exports, and the display screen or output that can output this to terminal are communicated to connect as terminal.
In the picture contrast method of adjustment of the present embodiment, terminal is corresponding with RGB color by YCbCr color space Each channel value calculating, the conversion both obtained, by according to protection factor combination primary contrast and comparison adjusted The amendment for spending degree of comparing, so that the amendment of contrast is more fine.
In one embodiment, the first picture signal includes a frame or multiple image.As shown in Fig. 2, the present embodiment provides Picture contrast method of adjustment include:
Step 202, terminal carries out color space conversion to each frame image of the first picture signal of input, obtains the second image letter Number.
Specifically, each pixel of each frame image of the first picture signal of input is carried out color space conversion by terminal, Obtain the second picture signal.Wherein, terminal can carry out color space conversion to each frame image according to image frame sequential frame by frame, also Color space conversion can be carried out to each frame image simultaneously.Terminal can be according to position of the pixel of each frame image in image Sequence carries out color space conversion to each pixel, can also carry out color space to all pixels point of each frame image simultaneously and turn It changes.
Step 204, dynamic contrast adjustment and color detection are carried out to the second picture signal, obtain detection color section, Judge to detect color section whether in preset color section.
Terminal can carry out dynamic contrast adjustment to the second picture signal frame by frame according to the storage order of picture frame, or Each picture frame is adjusted simultaneously.Terminal can be according to sequence of positions of the pixel of each frame image in image to each pixel Point carries out setting contrast, can also carry out setting contrast to all pixels point of each frame image simultaneously.Terminal is according to target Color space carries out color detection to the second picture signal, wherein targeted colorspace is YCbCr color space.Specifically, eventually End carries out color detection in YCbCr color space, counts the color section of each frame image, and judgement is that each color section of statistics is no In preset color section.
Step 206, if so, dynamic contrast amendment is carried out to the second picture signal, by second after contrast correction Picture signal carries out color space conversion, makes it restore to priming color space, obtains third picture signal.
Step 208, third picture signal is exported.
In the picture contrast method of adjustment of the present embodiment, the amendment to the dynamic image degree of comparing of multiframe is provided Method of adjustment expands the scope of application of the method for the present invention, provides users with the convenient.
In one embodiment, picture contrast method of adjustment further include: if it is not, then carrying out color to the second picture signal Space conversion, makes it restore to priming color space, obtains third picture signal.
When the second picture signal is not in preset color section, i.e., targeted colorspace is not or not preset color section When interior, terminal carries out color space conversion to the second picture signal, makes it restore to priming color space, obtains third image letter Number.I.e. terminal directly adjusts the second image degree of comparing, and does not carry out further contrast correction to it.
In the picture contrast method of adjustment of the present embodiment, when terminal judges according to color detection the detection color zones of image Between not in preset color section when, i.e., image original color to it is smaller be not unlikely to constitute adjustment contrast after cause compared with When big distortion, then adjusted contrast is not corrected further, unnecessary amendment operation has been subtracted, so that image pair It is higher than degree regulated efficiency.
It should be understood that although each step in the flow chart of Fig. 1, Fig. 2 is successively shown according to the instruction of arrow, It is these steps is not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps There is no stringent sequences to limit for rapid execution, these steps can execute in other order.Moreover, at least one in Fig. 1 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
In one embodiment, as shown in figure 3, providing a kind of picture contrast adjustment device, comprising: color space turns Change the mold block 310, color detection and judgment module 320, contrast correction module 330 and output module, in which:
Color-space conversion module 310 obtains the second image for carrying out color space conversion to the first picture signal of input Signal;
Color detection and judgment module 320, for being detected to the adjustment of the second picture signal degree of comparing and color detection Color section judges to detect color section whether in preset color section;
Contrast correction module 330, for if so, being corrected to the second picture signal degree of comparing, after contrast correction The second picture signal carry out color space conversion, make it restore to priming color space, obtain third picture signal.
Output module 340, for exporting third picture signal.
In one embodiment, the color space of the first picture signal is RGB color, color-space conversion module 310 are also used to from RGB color convert the first picture signal to YCbCr color space, obtain the second picture signal.
In one embodiment, contrast correction module 330 is also used to set protection factor, according to protection factor to second The amendment of picture signal degree of comparing.
In one embodiment, the first picture signal includes a frame or multiple image.
In one embodiment, contrast correction module 330 is also used to if it is not, then carrying out color sky to the second picture signal Between convert, make it restore to priming color space, obtain third picture signal.
Specific restriction about picture contrast adjustment device may refer to above for picture contrast method of adjustment Restriction, details are not described herein.Modules in above-mentioned picture contrast adjustment device can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure Figure can be as shown in Figure 3.The computer equipment includes processor, the memory, network interface, display connected by system bus Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of picture contrast method of adjustment.The display screen of the computer equipment can be liquid crystal display or electric ink is aobvious Display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment shell Key, trace ball or the Trackpad of upper setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 3, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory Computer program, the processor perform the steps of when executing computer program
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section Whether in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
In one embodiment, the color space of the first picture signal is RGB color, is believed the first image of input Number carrying out color space conversion includes: to convert the first picture signal to YCbCr color space from RGB color, obtains the Two picture signals.
In one embodiment, the step of correcting to the second picture signal degree of comparing includes: setting protection factor, root The second picture signal degree of comparing is corrected according to protection factor.
In one embodiment, the first picture signal includes a frame or multiple image.
In one embodiment, it also performs the steps of when which executes computer program if it is not, then to the second figure As signal progress color space conversion, priming color space is made it restore to, third picture signal is obtained.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges to detect color section Whether in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
In one embodiment, the color space of the first picture signal is RGB color, is believed the first image of input Number carrying out color space conversion includes: to convert the first picture signal to YCbCr color space from RGB color, obtains the Two picture signals.
In one embodiment, the step of correcting to the second picture signal degree of comparing includes: setting protection factor, root The second picture signal degree of comparing is corrected according to protection factor.
In one embodiment, the first picture signal includes a frame or multiple image.
In one embodiment, it is also performed the steps of when computer program is executed by processor if it is not, then to the second figure As signal progress color space conversion, priming color space is made it restore to, third picture signal is obtained.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM(EPROM), electrically erasable ROM(EEPROM) or flash memory.Volatile memory may include Random-access memory (ram) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM(ESDRAM), synchronization link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of picture contrast method of adjustment, which comprises
Color space conversion is carried out to the first picture signal of input, obtains the second picture signal;
To the adjustment of the second picture signal degree of comparing and color detection, detection color section is obtained, judges the detection color Whether section is in preset color section;
If so, correcting to the second picture signal degree of comparing, the second picture signal after contrast correction is subjected to color Space conversion, makes it restore to priming color space, obtains third picture signal;
Export third picture signal.
2. the method according to claim 1, wherein the color space of the first image signal is RGB color Space, the first picture signal of described pair of input carry out color space conversion and include:
The first image signal is converted from RGB color to YCbCr color space, the second picture signal is obtained.
3. the method according to claim 1, wherein described to the second modified step of picture signal degree of comparing Suddenly include:
Protection factor is set, the second picture signal degree of comparing is corrected according to protection factor.
4. the method according to claim 1, wherein the first image signal includes a frame or multiple image.
5. the method according to claim 1, wherein the method also includes:
If it is not, then carrying out color space conversion to the second picture signal, priming color space is made it restore to, obtains third image Signal.
6. a kind of picture contrast adjusts device, which is characterized in that described device includes:
Color-space conversion module obtains the second image letter for carrying out color space conversion to the first picture signal of input Number;
Color detection and judgment module, for obtaining detection color to the adjustment of the second picture signal degree of comparing and color detection Whether color section judges the detection color section in preset color section;
Contrast correction module, for if so, being corrected to the second picture signal degree of comparing, by the after contrast correction Two picture signals carry out color space conversion, make it restore to priming color space, obtain third picture signal;
Output module, for exporting third picture signal.
7. device according to claim 6, which is characterized in that the color space of the first image signal is RGB color Space, the color-space conversion module are also used to from RGB color convert the first image signal to YCbCr color Space obtains the second picture signal.
8. device according to claim 6, which is characterized in that the contrast correction module is also used to set protection system Number, corrects the second picture signal degree of comparing according to protection factor.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists In the step of processor realizes any one of claims 1 to 5 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 5 is realized when being executed by processor.
CN201810949614.2A 2018-08-20 2018-08-20 Image contrast adjusting method and device and computer equipment Active CN109146815B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810949614.2A CN109146815B (en) 2018-08-20 2018-08-20 Image contrast adjusting method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810949614.2A CN109146815B (en) 2018-08-20 2018-08-20 Image contrast adjusting method and device and computer equipment

Publications (2)

Publication Number Publication Date
CN109146815A true CN109146815A (en) 2019-01-04
CN109146815B CN109146815B (en) 2022-08-30

Family

ID=64790593

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810949614.2A Active CN109146815B (en) 2018-08-20 2018-08-20 Image contrast adjusting method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN109146815B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080044083A1 (en) * 2006-08-15 2008-02-21 Nokia Corporation Adaptive contrast optimization of digital color images
CN102231264A (en) * 2011-06-28 2011-11-02 王洪剑 Dynamic contrast enhancement device and method
CN104392425A (en) * 2014-12-04 2015-03-04 厦门美图移动科技有限公司 Face based automatic contrast adjusting image enhancing method
CN105335933A (en) * 2014-05-27 2016-02-17 上海贝卓智能科技有限公司 Image contrast enhancement method and apparatus
CN107180415A (en) * 2017-03-30 2017-09-19 北京奇艺世纪科技有限公司 Skin landscaping treatment method and device in a kind of image
CN107977941A (en) * 2017-12-04 2018-05-01 国网山东省电力公司电力科学研究院 A kind of bright areas color fidelity and the image defogging method of contrast enhancing
CN108364271A (en) * 2018-01-19 2018-08-03 昆山国显光电有限公司 A kind of improvement method and device of picture contrast

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080044083A1 (en) * 2006-08-15 2008-02-21 Nokia Corporation Adaptive contrast optimization of digital color images
CN102231264A (en) * 2011-06-28 2011-11-02 王洪剑 Dynamic contrast enhancement device and method
CN105335933A (en) * 2014-05-27 2016-02-17 上海贝卓智能科技有限公司 Image contrast enhancement method and apparatus
CN104392425A (en) * 2014-12-04 2015-03-04 厦门美图移动科技有限公司 Face based automatic contrast adjusting image enhancing method
CN107180415A (en) * 2017-03-30 2017-09-19 北京奇艺世纪科技有限公司 Skin landscaping treatment method and device in a kind of image
CN107977941A (en) * 2017-12-04 2018-05-01 国网山东省电力公司电力科学研究院 A kind of bright areas color fidelity and the image defogging method of contrast enhancing
CN108364271A (en) * 2018-01-19 2018-08-03 昆山国显光电有限公司 A kind of improvement method and device of picture contrast

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHEOLKON JUNG等: "Optimized Perceptual Tone Mapping for Contrast Enhancement of Images", 《IEEE TRANSACTIONS ON CIRCUITS AND SYSTEMS FOR VIDEO TECHNOLOGY》 *
张登康等: "改进肤色识别参量和轮廓特征相结合的指尖检测", 《光电子技术》 *

Also Published As

Publication number Publication date
CN109146815B (en) 2022-08-30

Similar Documents

Publication Publication Date Title
US8107123B2 (en) Tone correction apparatus, mobile terminal, image capturing apparatus, mobile phone, tone correction method and program for improve local contrast in bright and dark regions
US10074165B2 (en) Image composition device, image composition method, and recording medium
US8165396B2 (en) Digital image editing system and method for combining a foreground image with a background image
CN105407296B (en) Real-time video enhancement method and device
US20070024721A1 (en) Compensating for improperly exposed areas in digital images
US20150208051A1 (en) Image-processing device, image-capturing device, image-processing method, and recording medium
JP2002158893A (en) Device and method for correcting picture and recording medium
CN112541868B (en) Image processing method, device, computer equipment and storage medium
CN114693580B (en) Image processing method and related device
US11962917B2 (en) Color adjustment method, color adjustment device, electronic device and computer-readable storage medium
US20230214959A1 (en) Information processing apparatus, information processing method, and information processing program
CN103065290A (en) Device and method for correcting skin color in photo
WO2023036034A1 (en) Image processing method and related device thereof
CN113132696A (en) Image tone mapping method, device, electronic equipment and storage medium
CN110706162A (en) Image processing method and device and computer storage medium
CN114298935B (en) Image enhancement method, device and computer readable storage medium
CN111327827A (en) Shooting scene recognition control method and device and shooting equipment
WO2023241339A1 (en) Color cast correction method and apparatus, device, storage medium and program product
US20090324127A1 (en) Method and System for Automatic Red-Eye Correction
CN109146815A (en) Picture contrast method of adjustment, device and computer equipment
CN115550575B (en) Image processing method and related device
CN116668838A (en) Image processing method and electronic equipment
KR101143834B1 (en) Aparatus and metod for controlling auto white balance
JP2014168120A (en) Image processing apparatus, image processing program and electronic camera
CN113674163A (en) Image saturation adjusting method, device and computer readable storage medium

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