CN106855997A - The processing method and processing device of picture - Google Patents

The processing method and processing device of picture Download PDF

Info

Publication number
CN106855997A
CN106855997A CN201611082548.0A CN201611082548A CN106855997A CN 106855997 A CN106855997 A CN 106855997A CN 201611082548 A CN201611082548 A CN 201611082548A CN 106855997 A CN106855997 A CN 106855997A
Authority
CN
China
Prior art keywords
picture
pixel
value
predefined function
saturation degree
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611082548.0A
Other languages
Chinese (zh)
Inventor
唐文峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201611082548.0A priority Critical patent/CN106855997A/en
Publication of CN106855997A publication Critical patent/CN106855997A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • 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
    • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

A kind of processing method and processing device of picture is announced herein, including:Read original image;The target object image in the original image is processed according to predetermined process pattern, obtains the first picture;Brightness correction treatment is carried out to designated area in target object image in first picture;Saturation boost treatment is carried out to the first picture after brightness correction treatment.Target object image brightness and all more life-like nature of general image in final picture after enabling to mobile terminal to beautify herein, can take into account picture total quality higher and more preferably target object landscaping effect.

Description

The processing method and processing device of picture
Technical field
The application is related to computer realm, espespecially a kind of processing method and processing device of picture.
Background technology
At present, the character image beautification that mobile terminal is provided increasingly is favored by people.
In correlation technique, mobile terminal to the treatment of character image primarily directed to the beautification of personage part in picture at Reason, and target object image brightness not only deviate from normal skin tone after beautifying under some scenes, and image can be sacrificed Total quality, thus results in the effect presented after picture processing not true to nature.
In for correlation technique, carry out causing the effect that picture is presented unlifelike after picture processing using mobile terminal Technical problem, not yet proposes effective solution at present.
The content of the invention
In order to solve the above-mentioned technical problem, the embodiment of the invention provides a kind of processing method and processing device of picture.
The embodiment of the invention provides:
A kind of processing method of picture, including:
Read original image;
The target object image in the original image is processed according to predetermined process pattern, obtains the first picture;
Brightness correction treatment is carried out to designated area in target object image in first picture;
Saturation boost treatment is carried out to the first picture after brightness correction treatment.
Wherein, the brightness correction treatment, including:
Detect the designated area in target object image in first picture;
Luminance evaluation is carried out to the designated area;
According to the result of the luminance evaluation, the brightness to the designated area is adjusted.
Wherein, luminance evaluation is carried out to the designated area, including:
Using the first predefined function, the chroma blue component assessment coefficient of pixel in the designated area is determined;
Using the second predefined function, the red chrominance component metewand of pixel in the designated area is determined;
Wherein, the functional value of first predefined function is that the chroma blue component assessment coefficient, variable at least include The chroma blue component value of the pixel;The functional value of second predefined function be the red chrominance component metewand, The variable at least red chrominance component value including the pixel.
Wherein, the brightness to the designated area is adjusted, including:
Determine the chroma blue component adjusted value of pixel in the designated area using the 3rd predefined function, and by the picture The chroma blue component of element is updated to the chroma blue component adjusted value;
Determine the red chrominance component adjusted value of pixel in the designated area using the 4th predefined function, and by the picture The red chrominance component of element is updated to the red chrominance component adjusted value;
Wherein, the functional value of the 3rd predefined function is the chroma blue component adjusted value, variable at least including institute State the chroma blue component value and the chroma blue component assessment coefficient of pixel;The functional value of the 4th predefined function is institute The red chrominance component value and the red chrominance component of red chrominance component adjusted value, variable at least including the pixel is stated to comment Estimate coefficient.
Wherein, the saturation boost treatment includes:
Obtain the intensity value of pixel in first picture;
Saturation degree assessment is carried out to pixel in first picture;
According to the result that the saturation degree is assessed, the saturation degree to pixel in first picture is adjusted.
Wherein, saturation degree assessment is carried out to pixel in first picture, including:Intensity value profit based on the pixel The saturation degree metewand of the pixel is determined with the 5th predefined function;Wherein, the functional value of the 5th predefined function is institute Saturation degree metewand is stated, the variable of the 5th predefined function at least includes intensity value.
Wherein, the saturation degree to pixel in first picture is adjusted, including:Intensity value based on the pixel With the saturation degree adjusted value that saturation degree metewand determines the pixel using the 6th predefined function;By the saturation degree of the pixel Value is updated to the saturation degree adjusted value;Wherein, the functional value of the 6th predefined function is the saturation degree adjusted value, described The variable of the 6th predefined function at least includes intensity value and saturation degree metewand.
A kind of processing unit of picture, including:
Read module, for reading original image;
Image processing module, at according to predetermined process pattern to the target object image in the original image Reason, obtains the first picture;
Brightness correction module, for being carried out at brightness correction to designated area in target object image in first picture Reason;
Saturation degree processing module, for being carried out at saturation boost to the first picture after the brightness correction resume module Reason.
Wherein, the brightness correction module includes:
Detection sub-module, for detecting the designated area in first picture in target object image;
First assessment submodule, for carrying out luminance evaluation to the designated area;
First adjustment submodule, for the result according to the luminance evaluation, the brightness to the designated area is adjusted It is whole.
Wherein, the saturation degree processing module includes:
Obtain submodule, the intensity value for obtaining pixel in first picture;
Second assessment submodule, for carrying out saturation degree assessment to pixel in first picture;
Second adjustment submodule, for the result according to the assessment, the saturation degree to pixel in first picture is entered Row adjustment.
A kind of processing method and processing device of picture is the embodiment of the invention provides, the picture after to landscaping treatment is carried out Brightness correction treatment and saturation boost treatment so that the brightness of final picture target object image and general image after beautification are all More life-like nature, can take into account picture total quality higher and more preferably target object landscaping effect, not only contribute to carry The picture processing performance of mobile terminal is risen, and can effectively lift Consumer's Experience.
Brief description of the drawings
Accompanying drawing is used for providing further understanding technical solution of the present invention, and constitutes a part for specification, with this The embodiment of application for explaining technical scheme, does not constitute the limitation to technical solution of the present invention together.
Fig. 1 is the hardware architecture diagram for realizing each optional mobile terminal of embodiment one of the invention;
Fig. 2 is the wireless communication system schematic diagram of mobile terminal as shown in Figure 1;
Fig. 3 is the process flow schematic diagram of embodiment of the present invention picture;
Fig. 4 implements schematic flow sheet for embodiment of the present invention image processing method;
Fig. 5 is the composition structural representation of the processing unit of embodiment of the present invention picture.
The realization of the object of the invention, functional characteristics and advantage will be described further referring to the drawings in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The mobile terminal of each embodiment of the invention is realized referring now to Description of Drawings.In follow-up description, use For represent element such as " module ", " part " or " unit " suffix only for being conducive to explanation of the invention, itself Not specific meaning.Therefore, " module " can be used mixedly with " part ".
Mobile terminal can be implemented in a variety of manners.For example, the terminal described in the present invention can include such as moving Phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP The mobile terminal of (portable media player), guider etc. and such as numeral TV, desktop computer etc. are consolidated Determine terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that, except being used in particular for movement Outside the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 is that the hardware configuration of the mobile terminal for realizing each embodiment of the invention is illustrated.
Mobile terminal 1 00 can include wireless communication unit 110, A/V (audio/video) input block 120, user input Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power subsystem 190 Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups for showing Part.More or less component can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more assemblies, and it allows mobile terminal 1 00 and wireless communication system Or the radio communication between network.For example, wireless communication unit can include broadcasting reception module 111, mobile communication module 112nd, at least one of wireless Internet module 113, short range communication module 114 and location information module 115.
Broadcasting reception module 111 receives broadcast singal and/or broadcast via broadcast channel from external broadcast management server Relevant information.Broadcast channel can include satellite channel and/or terrestrial channel.Broadcast management server can be generated and sent The broadcast singal and/or broadcast related information generated before the server or reception of broadcast singal and/or broadcast related information And send it to the server of terminal.Broadcast singal can include TV broadcast singals, radio signals, data broadcasting Signal etc..And, broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast phase Pass information can also be provided via mobile communications network, and in this case, broadcast related information can be by mobile communication mould Block 112 is received.Broadcast singal can exist in a variety of manners, for example, it can be with the electronics of DMB (DMB) The form of program guide (EPG), the electronic service guidebooks (ESG) of digital video broadcast-handheld (DVB-H) etc. and exist.Broadcast Receiver module 111 can receive signal and broadcast by using various types of broadcast systems.Especially, broadcasting reception module 111 Can be wide by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video Broadcast-hand-held (DVB-H), forward link media (MediaFLO@) Radio Data System, received terrestrial digital broadcasting integrated service Etc. (ISDB-T) digit broadcasting system receives digital broadcasting.Broadcasting reception module 111 may be constructed such that and be adapted to provide for extensively Broadcast the various broadcast systems and above-mentioned digit broadcasting system of signal.Via broadcasting reception module 111 receive broadcast singal and/ Or broadcast related information can be stored in memory 160 (or other types of storage medium).
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal And at least one of server and/or receive from it radio signal.Such radio signal can be logical including voice Words signal, video calling signal or the various types of data for sending and/or receiving according to text and/or Multimedia Message.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.The module can be internally or externally It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by the module can include WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting junction service.Some examples of short-range communication technology include indigo plant ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
Location information module 115 is the module for checking or obtaining the positional information of mobile terminal.Location information module Typical case be GPS (global positioning system).According to current technology, GPS module 115 is calculated and comes from three or more satellites Range information and correct time information and the Information application triangulation for calculating, so as to according to longitude, latitude Highly accurately calculate three-dimensional current location information.Currently, defended using three for calculating the method for position and temporal information Star and the position that is calculated by using other satellite correction and the error of temporal information.Additionally, GPS module 115 Can be by Continuous plus current location information in real time come calculating speed information.
A/V input blocks 120 are used to receive audio or video signal.A/V input blocks 120 can include the He of camera 121 Microphone 1220, the static map that 121 pairs, camera is obtained in Video Capture pattern or image capture mode by image capture apparatus The view data of piece or video is processed.Picture frame after treatment may be displayed on display unit 151.At camera 121 Picture frame after reason can be stored in memory 160 (or other storage mediums) or carried out via wireless communication unit 110 Send, two or more cameras 1210 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone relation mould Sound (voice data) is received via microphone in formula, logging mode, speech recognition mode etc. operational mode, and can be by Such acoustic processing is voice data.Audio (voice) data after treatment can be changed in the case of telephone calling model For the form that can be sent to mobile communication base station via mobile communication module 112 is exported.Microphone 122 can implement all kinds Noise eliminate (or suppress) algorithm eliminating (or suppression) in the noise for receiving and producing during sending audio signal or Person disturbs.
User input unit 130 can generate key input data to control each of mobile terminal according to the order of user input Plant operation.User input unit 130 allows the various types of information of user input, and can include keyboard, metal dome, touch Plate (for example, detection due to being touched caused by resistance, pressure, electric capacity etc. change sensitive component), roller, rocking bar etc. Deng.Especially, when touch pad is superimposed upon on display unit 151 in the form of layer, touch-screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 1 00, (for example, mobile terminal 1 00 opens or closes shape State), the presence or absence of the contact (that is, touch input) of the position of mobile terminal 1 00, user for mobile terminal 1 00, mobile terminal The acceleration or deceleration movement of 100 orientation, mobile terminal 1 00 and direction etc., and generate for controlling mobile terminal 1 00 The order of operation or signal.For example, when mobile terminal 1 00 is embodied as sliding-type mobile phone, sensing unit 140 can be sensed The sliding-type phone is opened or closed.In addition, sensing unit 140 can detect power subsystem 190 whether provide electric power or Whether person's interface unit 170 couples with external device (ED).Sensing unit 140 can will be combined below including proximity transducer 1410 Touch-screen is described to this.
Interface unit 170 is connected the interface that can pass through with mobile terminal 1 00 as at least one external device (ED).For example, External device (ED) can include wired or wireless head-band earphone port, external power source (or battery charger) port, wired or nothing Line FPDP, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Identification module can be that storage uses each of mobile terminal 1 00 for verifying user Kind of information and subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) can be included Etc..In addition, the device (hereinafter referred to as " identifying device ") with identification module can take the form of smart card, therefore, know Other device can be connected via port or other attachment means with mobile terminal 1 00.Interface unit 170 can be used for reception and come from The input (for example, data message, electric power etc.) of the external device (ED) and input that will be received is transferred in mobile terminal 1 00 One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 1 00 is connected with external base, interface unit 170 can serve as allowing by it by electricity Power provides to the path of mobile terminal 1 00 from base or can serve as allowing the various command signals being input into from base to pass through it It is transferred to the path of mobile terminal.Be can serve as recognizing that mobile terminal is from the various command signals or electric power of base input The no signal being accurately fitted within base.Output unit 150 is configured to provide defeated with vision, audio and/or tactile manner Go out signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.).Output unit 150 can include display Unit 151, dio Output Modules 152, alarm unit 153 etc..
Display unit 151 may be displayed on the information processed in mobile terminal 1 00.For example, when mobile terminal 1 00 is in electricity During words call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file Download etc.) related user interface (UI) or graphic user interface (GUI).When mobile terminal 1 00 is in video calling pattern Or during image capture mode, display unit 151 can show the image of capture and/or the image of reception, show video or figure UI or GUI of picture and correlation function etc..
Meanwhile, when display unit 151 and touch pad in the form of layer it is superposed on one another to form touch-screen when, display unit 151 can serve as input unit and output device.Display unit 151 can include liquid crystal display (LCD), thin film transistor (TFT) In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least It is a kind of.Some in these displays may be constructed such that transparence to allow user to be watched from outside, and this is properly termed as transparent Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific Desired implementation method, mobile terminal 1 00 can include two or more display units (or other display devices), for example, moving Dynamic terminal can include outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used to detect touch Input pressure and touch input position and touch input area.
Dio Output Modules 152 can mobile terminal be in call signal reception pattern, call mode, logging mode, It is that wireless communication unit 110 is received or in memory 160 when under the isotypes such as speech recognition mode, broadcast reception mode The voice data transducing audio signal of middle storage and it is output as sound.And, dio Output Modules 152 can be provided and movement The audio output (for example, call signal receives sound, message sink sound etc.) of the specific function correlation that terminal 100 is performed. Dio Output Modules 152 can include loudspeaker, buzzer etc..
Alarm unit 153 can provide output and be notified to mobile terminal 1 00 with by event.Typical event can be with Including calling reception, message sink, key signals input, touch input etc..In addition to audio or video is exported, alarm unit 153 can in a different manner provide output with the generation of notification event.For example, alarm unit 153 can be in the form of vibrating Output is provided, when calling, message or some other entrance communication (incomingcommunication) are received, alarm list Unit 153 can provide tactile output (that is, vibrating) to notify to user.Exported by providing such tactile, even if When in pocket of the mobile phone of user in user, user also can recognize that the generation of various events.Alarm unit 153 The output of the generation of notification event can be provided via display unit 151 or dio Output Modules 152.
Memory 160 can store software program for the treatment and control operation performed by controller 180 etc., Huo Zheke Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And And, memory 160 can store the vibration of various modes on being exported when touching and being applied to touch-screen and audio signal Data.
Memory 160 can include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, many Media card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), static random-access storage Device (SRAM), read-only storage (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc..And, mobile terminal 1 00 can perform memory with by network connection The network storage device cooperation of 160 store function.
The overall operation of the generally control mobile terminal of controller 180.For example, controller 180 is performed and voice call, data Communication, video calling etc. related control and treatment.In addition, controller 180 can be included for reproducing (or playback) many matchmakers The multi-media module 1810 of volume data, multi-media module 1810 can be constructed in controller 180, or can be structured as and control Device processed 180 is separated.Controller 180 can be with execution pattern identifying processing, the handwriting input that will be performed on the touchscreen or figure Piece draws input and is identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides operation each unit Appropriate electric power needed for part and component.
Various implementation methods described herein can be with use such as computer software, hardware or its any combination of calculating Machine computer-readable recording medium is implemented.Implement for hardware, implementation method described herein can be by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can Programming gate array (FPGA), processor, controller, microcontroller, microprocessor, it is designed to perform function described herein At least one in electronic unit is implemented, and in some cases, such implementation method can be implemented in controller 180. For software implementation, the implementation method of such as process or function can with allow to perform the single of at least one function or operation Software module is implemented.Software code can be come by the software application (or program) write with any appropriate programming language Implement, software code can be stored in memory 160 and performed by controller 180.
So far, oneself according to its function through describing mobile terminal.Below, for the sake of brevity, will description such as folded form, Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc. is used as showing Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 1 00 as shown in Figure 1 may be constructed such that using via frame or packet transmission data it is all if any Line and wireless communication system and satellite-based communication system are operated.
The communication system that mobile terminal wherein of the invention can be operated is described referring now to Fig. 2.
Such communication system can use different air interface and/or physical layer.For example, used by communication system Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system System (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under The description in face is related to cdma communication system, but such teaching is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 1s 00, multiple base station (BS) 270, base station Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is configured to and Public Switched Telephony Network (PSTN) 290 form interface.MSC280 is also structured to form interface with the BSC275 that can be couple to base station 270 via back haul link. If any one in the interface that back haul link can be known according to Ganji is constructed, the interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system can include multiple BSC2750 as shown in Figure 2.
Each BS270 can service one or more subregions (or region), by multidirectional antenna or the day of sensing specific direction Each subregion of line covering is radially away from BS270.Or, each subregion can be by two or more for diversity reception Antenna is covered.Each BS270 may be constructed such that the multiple frequency distribution of support, and the distribution of each frequency has specific frequency spectrum (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed intersects can be referred to as CDMA Channel.BS270 can also be referred to as base station transceiver System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly representing single BSC275 and at least one BS270.Base station can also be referred to as " cellular station ".Or, each subregion of specific BS270 can be claimed It is multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to broadcsting transmitter (BT) 295 mobile terminal operated in system 100.Broadcasting reception module 111 as shown in Figure 1 is arranged at mobile terminal 1 00 to receive the broadcast sent by BT295 Signal.In fig. 2 it is shown that several global positioning system (GPS) satellites 300.Satellite 300 helps position multiple mobile terminals At least one of 100.
In fig. 2, multiple satellites 300 are depicted, it is understood that be, it is possible to use any number of satellite obtains useful Location information.GPS module 115 as shown in Figure 1 is generally configured to coordinate with satellite 300 to be believed with obtaining desired positioning Breath.Substitute GPS tracking techniques or outside GPS tracking techniques, it is possible to use other of the position of mobile terminal can be tracked Technology.In addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
Used as a typical operation of wireless communication system, BS270 receives the reverse link from various mobile terminal 1s 00 Signal.Mobile terminal 1 00 generally participates in call, information receiving and transmitting and other types of communication.Each of the reception of certain base station 270 is anti- Processed in specific BS270 to link signal.The data of acquisition are forwarded to the BSC275 of correlation.BSC provides call Resource allocation and the mobile management function of the coordination including the soft switching process between BS270.The number that BSC275 will also be received According to MSC280 is routed to, it provides the extra route service for forming interface with PSTN290.Similarly, PSTN290 with MSC280 forms interface, and MSC and BSC275 form interface, and BSC275 correspondingly controls BS270 with by forward link signals It is sent to mobile terminal 1 00.
Embodiment one
As shown in figure 3, present embodiments providing a kind of processing method of picture, mobile terminal is applied to, can included:
Step 301, reads original image;
Step 302, is processed the target object image in the original image according to predetermined process pattern, obtains One picture;
Step 303, brightness correction treatment is carried out to designated area in target object image in first picture;
Step 304, saturation boost treatment is carried out to the first picture after brightness correction treatment.
In the present embodiment, the picture after to landscaping treatment carries out brightness correction treatment and saturation boost treatment, no Target object image brightness therein can only be corrected after picture performs beautification, and can be at picture beautification Ensure that picture total quality is unaffected after reason, solve in correlation technique mobile terminal to after picture processing due in picture The factors such as target object image brightness is abnormal, the decline of picture total quality cause picture that the unlifelike problem of effect is presented, and make The all more life-like nature of the brightness of final picture target object image and general image after must beautifying, can take into account picture higher Total quality and more preferably target object landscaping effect, not only contribute to be lifted the picture processing performance of mobile terminal, Er Qieneng Enough effectively lifting Consumer's Experiences.
In some implementations, in step 302 to according to predetermined process pattern to the object in the original image The process that body image is processed can be using conventional scene image tupe, character image tupe, still life image Tupe etc. (for example, character image Processing Algorithm of routine) is realized.For example, it is described according to predetermined process pattern to the original When character image in beginning picture is processed, process can include:The character image in the original image is recognized, to described Character image is smoothed, whitening, character details' information (character details' information such as small pox, scar etc.) etc. carry out enhancing treatment. Here it is possible to by the filtering of image go it is dry realize the smooth related treatment, can by the correlation of image enhaucament at Reason realizes the whitening and the enhancing of character details' information.
In practical application, the predetermined process pattern can be the image processing mode, or shifting selected by user Dynamic terminal can also be by the image processing mode automatically determined after the classification for recognizing target object in the original image Class image processing mode for mobile terminal acquiescence etc..For example, for scenery class picture, mobile terminal is by recognizing mesh in picture Mark object is scenery, then automatically select scene image tupe and the scenery in the picture is processed.For figure kind Picture, mobile terminal is by recognizing that target object is personage in picture, then automatically select character image tupe to the figure Personage in piece is processed.
In some implementations, the treatment of brightness correction described in the present embodiment can include:Detect first picture Designated area in middle target object image;Luminance evaluation is carried out to the designated area;According to the result of the luminance evaluation, Brightness to the designated area is adjusted.
In practical application, above-mentioned designated area can be according to default setting, it is also possible to by user's sets itself.If desired for Family sets, and can provide corresponding action-item or user interface before the designated area is detected, user can be by the operation Item or user interface selection area are used as the designated area.If default setting, can in advance in mobile terminal default configuration The characteristic information (for example, characterizing characteristic information that present image area is skin etc.) of the designated area, mobile terminal passes through This feature information automatic detection goes out the designated area of acquiescence.
In practical application, can according to actual needs it is selective to the whole in target object image in the first picture or Partial pixel performs above-mentioned brightness correction treatment.Which pixel to perform brightness correction treatment to for reality, can be according to reality The difference of border application scenarios, the demand of picture processing are different, the not equal aspect of original image quality carries out unrestricted choice.Typically For, above-mentioned brightness correction treatment is carried out to each pixel in target object image in the first picture will cause picture Total quality is more preferably.
In some implementations, detect that the mode of designated area in first picture in target object image can be with It is:Read three primary colors (RGB) data of pixel in target object image in the first picture;The RGB data is converted into YCbCr Data;According to the YCbCr data, the designated area in first picture is determined.Wherein, YCbCr data can include:Y Value, Cb values and Cr values, wherein, Y refers to luminance component, and Cb is chroma blue component, and Cr is red chrominance component.The present embodiment In, designated area can also be determined using any other mode, it is not restricted herein.
For example, the YCbCr data of whole pixels or partial pixel in the first picture is obtained in target object image it Afterwards, Y value, Cb values and the Cr values of the pixel are included in the YCbCr data of each pixel, can be specified using equation below detection Region:
Wherein, Cr (x, y), Cb (x, y) represent that the Cr and Cb, p (x, y) of the first picture represent that currently assigned region is sentenced respectively Determine result.
If p (x, y) value represents that the pixel belongs to designated area when being 1, p (x, y) value represents that the pixel is not belonging to refer to when being 0 Determine region.Otherwise it is 0.That is, the designated area refers to YCbCr data and meeting p (x, y) value and being covered by 1 pixel Region.Which pixel belongs to designated area in determining the first picture by above-mentioned formula, finally belongs to designated area by all Pixel comprehensively can determine that the designated area of the first picture.
In some implementations, the process that luminance evaluation is carried out to the designated area can include:It is pre- using first Determine function, determine Cb (chroma blue component) metewand of pixel in the designated area;Using the second predefined function, it is determined that Cr (red chrominance component) metewand of pixel in the designated area;Wherein, the functional value of first predefined function is The Cb metewands, the variable at least Cb values including the pixel;The functional value of second predefined function is commented for the Cr Estimate coefficient, the variable at least Cr values including the pixel.
In practical application, the concrete form of first predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the first predefined function can be any relation, for example, the functional relation can be add, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.In addition, the variable in first predefined function In addition to comprising Cb values, other constants or variable can also be increased, increase variable or constant mode can using adding, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.
In practical application, the concrete form of second predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the second predefined function can be any relation, for example, the functional relation can be add, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.In addition, the variable in second predefined function In addition to comprising Cr values, other constants or variable can also be increased, increase variable or constant mode can using adding, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.
For example, the first predefined function and the second predefined function can be as follows:
SkinCb=Cbsrc*p
SkinCr=Crsrc*p
Wherein, p represents that skin detection algorithm obtains designated area mask, Cbsrc、CrsrcThe YCbCr of respectively described pixel Cb values and Cr values that packet contains, skinCb represent Cb assessed values, and skinCr represents Cr evaluation quantities;CbRef, CrRef distinguish table Show constant;NormValue1, normValue2 represent normalized parameter respectively;WCb (x, y), wCr (x, y) represent Cb assessments system Number and Cr metewands.
In above-mentioned first predefined function and the second predefined function, p, CbRef, CrRef, normValue1, normValue2, Can be adjusted according to the not equal aspect of the different of practical application scene, mobile terminal model or performance respectively.P, CbRef, CrRef, normValue1, normValue2 can be empirical values, and the empirical value can be by after statistical disposition The numerical value that obtains can be optimum value by determining after experiment.
In some implementations, the designated area is adjusted, can be included:Determined using the 3rd predefined function The chroma blue component adjusted value of pixel in the designated area, and the chroma blue component of the pixel is updated to the indigo plant Chroma color component adjusted value;The red chrominance component adjusted value of pixel in the designated area is determined using the 4th predefined function, And the red chrominance component of the pixel is updated to the red chrominance component adjusted value;Wherein, the 3rd predefined function Functional value be the chroma blue component adjusted value, variable at least including the pixel chroma blue component value and the indigo plant Chroma color component assessment coefficient;The functional value of the 4th predefined function be the red chrominance component adjusted value, variable at least Red chrominance component value and the red chrominance component metewand including the pixel.
In practical application, the concrete form of the 3rd predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 3rd predefined function can be any relation, for example, the functional relation can be add, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.In addition, the variable in the 3rd predefined function In addition to comprising Cb values and Cb metewands, other constants or variable can also be increased, the mode for increasing variable or constant can With using adding, subtract, one of multiplication and division etc. or any two or the multinomial computing mode being combined.
In practical application, the concrete form of the 4th predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 4th predefined function can be any relation, for example, the functional relation can be add, subtract, One of multiplication and division etc. or any two or the multinomial computing mode being combined.In addition, the variable in the 4th predefined function In addition to comprising Cr values and Cr metewands, other constants or variable can also be increased, the mode for increasing variable or constant can With using adding, subtract, one of multiplication and division etc. or any two or the multinomial computing mode being combined.
For example, the 3rd predefined function and the 4th predefined function can be as follows:
skinCbdst(x, y)=skinCbsrc(x,y)+wCb(x,y)*CbRef
skinCrdst(x, y)=skinCrsrc(x,y)+wCr(x,y)*CrRef
Wherein, skinCbdst(x,y),skinCrdst(x, y) represents Cb adjusted values and Cr adjusted values respectively,
skinCbsrc(x,y),skinCrsrcCb values and Cr that the YCbCr packets that (x, y) is respectively pixel (x, y) contain Value, CbRef, CrRef represents constant respectively;WCb (x, y), wCr (x, y) represent Cb metewands and Cr metewands.
In above-mentioned 3rd predefined function and the 4th predefined function, CbRef, CrRef can be according to practical application scenes not The not equal aspect of same, mobile terminal model or performance is adjusted.CbRef, CrRef can be empirical values, and the empirical value can To be numerical value by being obtained after statistical disposition or can be optimum value by determining after experiment.
In the present embodiment, above-mentioned determination Cb metewands, Cr metewands, Cb adjusted values, the implementation of Cr adjusted values Only it is example, specific implementation can carry out different degrees of adjustment according to the demand of application scenarios, picture processing.For example, needing When increasing adjustment dynamics, can be by the first predefined function, the second predefined function, the 3rd predefined function and the 4th predetermined letter The specific value of the p in number, CbRef, CrRef, normValue1, normValue2 is adjusted, can also be predetermined first Increase weight in function, the second predefined function, the 3rd predefined function and the 4th predefined function, to lift appropriate section to final tune The influence of whole result.Such as, can respectively in skinCbdst(x,y),skinCrdstThe first weighted value is multiplied by before (x, y), the One weighted value can lift skinCb when being more than 1dst(x,y),skinCrdstThe influence of (x, y) to final adjustment result, this first Weighted value can reduce skinCb when being less than 1dst(x,y),skinCrdstThe influence of (x, y) to final adjustment result;Or, can be with The second weighted value is multiplied by wCb (x, y), wCr (x, y) respectively, wCb (x, y) can be lifted when the second weighted value is more than 1, Influences of the wCr (x, y) to final adjustment result, wCb (x, y) can be reduced when second weighted value is less than 1, and wCr (x, y) is to most The influence of adjustment result eventually.
In some implementations, the treatment of saturation boost described in the present embodiment can include:Obtain first figure The intensity value of pixel in piece;Saturation degree assessment is carried out to pixel in first picture;According to the result of the assessment, to institute The saturation degree for stating pixel in the first picture is adjusted.
In practical application, above-mentioned saturation boost treatment can be performed to each pixel in the first picture, can be with The selective saturation boost treatment above-mentioned to the partial pixel execution in the first picture according to actual needs.It is right for actual Which pixel performs saturation boost treatment, can be different, original according to the demand of the different of practical application scene, picture processing The not equal aspect of the quality of picture carries out unrestricted choice.In general, each pixel in the first picture is carried out above-mentioned full The total quality that will cause picture with degree lifting treatment is more preferably.
In some implementations, obtaining the mode of pixel intensity value in first picture can be:Read described The RGB data of pixel, tone saturation degree lightness (HSV, Hue Saturation Value) number is converted to by the RGB data According to from the HSV extracting datas intensity value.It is, of course, also possible to directly obtain the HSV numbers of each pixel in the first picture According to then again from the HSV extracting datas intensity value.In the present embodiment, can also be satisfied using any pixel that can obtain With the other modes of angle value, in this regard, not being restricted herein.
In some implementations, the process that pixel in first picture carries out saturation degree assessment can be included:Base The saturation degree metewand of the pixel is determined using the 5th predefined function in the intensity value of the pixel;Wherein, described The functional value of five predefined functions is the saturation degree metewand, and the variable of the 5th predefined function at least includes saturation degree Value.
In practical application, the concrete form of the 5th predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 5th predefined function can be any relation, for example, the functional relation can be added, subtract, multiplying Deng one of or any two or the multinomial computing mode being combined.In addition, the variable in the 5th predefined function except Outside comprising intensity value, other constants or variable can also be increased, increase variable or constant mode can using adding, subtract, One of multiply etc. or any two or the multinomial computing mode being combined.
For example, the 5th predefined function can be:
Wherein, Ssrc(x, y) represents the intensity value of the pixel (x, y) on the first picture;SRef represents constant, NormValue represents normalized parameter;W (x, y) represents the saturation degree metewand to pixel (x, y) on the first picture.
In above-mentioned 5th predefined function, SRef, normValue respectively can be according to the different, mobile of practical application scene The not equal aspect of terminal models or performance is adjusted.SRef, normValue can be empirical values, and the empirical value can be By the numerical value obtained after statistical disposition or can be by after experiment determine optimum value.
In some implementations, the saturation degree to pixel in first picture is adjusted, and can include:Base Determine that the saturation degree of the pixel is adjusted using the 6th predefined function in the intensity value and saturation degree metewand of the pixel Value;The intensity value of the pixel is updated to the saturation degree adjusted value;Wherein, the functional value of the 6th predefined function is The saturation degree adjusted value, the variable of the 6th predefined function at least includes intensity value and saturation degree metewand.
In practical application, the concrete form of the 6th predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 6th predefined function can be any relation, for example, the functional relation can be added, subtract, multiplying Deng one of or any two or the multinomial computing mode being combined.In addition, the variable in the 6th predefined function except Outside comprising intensity value and saturation degree metewand, other constants or variable can also be increased, increase the side of variable or constant Formula can be using one of adding, subtract, multiplying etc. or any two or the multinomial computing mode being combined.
For example, the 6th predefined function can be:Sdst(x, y)=Ssrc(x,y)+w(x,y)*SRef;
Wherein, Sdst(x, y) represents saturation degree adjusted value;Ssrc(x, y) represents the saturation of the pixel (x, y) on the first picture Angle value;SRef represents constant, and w (x, y) represents the saturation degree metewand to pixel (x, y) on the first picture.
In above-mentioned 6th predefined function, SRef can be according to the different of practical application scene, mobile terminal model or performance Not equal aspect be adjusted.SRef can be empirical value, and the empirical value can be the number by being obtained after statistical disposition Value or can be by after experiment determine optimum value.
In the present embodiment, the implementation of intensity value determined above, saturation degree metewand and saturation degree adjusted value Only it is example, specific implementation can carry out different degrees of adjustment according to the demand of application scenarios, picture processing.For example, needing When increasing adjustment dynamics, the specific values of SRef in the 5th predefined function and the 6th predefined function can be adjusted It is whole, weight can also be increased in the 5th predefined function, the 6th predefined function, to lift appropriate section to final adjustment result Influence.Such as, can be in SsrcThe first weighted value was multiplied by before (x, y), S can be lifted when the first weighted value is more than 1src(x, y) is right The influence of final adjustment result, S can be reduced when first weighted value is less than 1srcThe influence of (x, y) to final adjustment result;Or Person, can be multiplied by the second weighted value on w (x, y), and w (x, y) can be lifted to final adjustment knot when the second weighted value is more than 1 The influence of fruit, influences of the w (x, y) to final adjustment result can be reduced when second weighted value is less than 1.
Picture processing in the present embodiment is specifically described below implements process.
As shown in figure 4, the process that implements of picture processing may include steps of:
Step 401, reads original image;
In practical application, specific reading manner can be:Being obtained after user chooses original image to be processed should The store path of original image, original image is read according to the store path from corresponding storage location.Certainly, practical application In, can also there are other reading manners, this is not restricted herein.
Step 402, is processed the character image in the original image according to predetermined process pattern, obtains the first figure Piece;
In practical application, the treatment in this step can be that the personage part in original image is targetedly located Reason, such as skin-whitening, anti-acne treatment, smoothing processing, details increase.Specific processing procedure can use conventional algorithm, herein It is not restricted.
Step 403, detects the skin area in first picture;
For example, RGB data can be converted to by YCbCr data by the RGB data of pixel in the first picture of reading, then Determine whether the pixel belongs to skin area according to the YCbCr data, by the whole pixels in the first picture or portion Point pixel carries out above-mentioned treatment and can determine that the skin area.
Step 404, luminance evaluation is carried out to the skin area;
It is for instance possible to use the YCbCr numbers of the first preset predefined function and the second predefined function to be obtained in step 403 Cb values, Cr values in are variable, and the chromatic component to pixel is estimated treatment, obtain the Cb metewands of the pixel with Cr metewands, to carry out colourity adjustment according to the Cb metewands and Cr metewands, realize that the colour of skin is corrected.
Step 405, according to the result of the luminance evaluation, brightness adjustment is carried out to the designated area;
It is for instance possible to use the 3rd preset predefined function and the 4th predefined function are with the Cb in the YCbCr data that obtain The Cb metewands and Cr metewands that value and Cr values and step 404 are obtained are variable, determine the Cb adjusted values and Cr of pixel Adjusted value, then the Cb values and Cr values of pixel are updated to Cb adjusted values and Cr adjusted values respectively, in this way, to whole in the first picture Pixel or partial pixel carry out brightness correction treatment, realize the correction process of personage's colour of skin in picture.
Step 406, obtains the intensity value of pixel in first picture;
For example, RGB data can be converted into HSV data by reading the RGB data of pixel in the first picture, then from The intensity value of pixel described in the HSV extracting datas.
Step 407, saturation degree assessment is carried out to pixel in first picture;
It is for instance possible to use the 5th preset predefined function is with the intensity value that obtains in step 406 as variable, to pixel Saturation degree be estimated treatment, the saturation degree metewand of the pixel is obtained, to enter according to the saturation degree metewand The adjustment of row saturation degree.
Step 408, according to the result of the assessment, the saturation degree to pixel in first picture is adjusted, obtains Second picture;
It is for instance possible to use the 6th preset predefined function is obtained with the intensity value that is obtained in step 406, step 407 Saturation degree metewand be variable, determine the saturation degree adjusted value of pixel, then the intensity value of pixel is updated to the saturation Degree adjusted value, in this way, carrying out saturation boost treatment to whole pixels or partial pixel in the first picture, realizes picture entirety matter The lifting treatment of amount.
Step 409, exports the second picture, and the picture processing flow of the present embodiment terminates.
In the present embodiment, the mode of brightness correction treatment is merely illustrative, can also be by setting multiple the in practical application Three predefined functions and the 4th predefined function determine multigroup Cb adjusted values and Cr adjusted values of same pixel, are finally adjusted with multigroup Cb The average value of whole value and Cr adjusted values carries out the adjustment of Cb, Cr for final adjustment value, so as to reach more preferable colour of skin correction effect Really.It is of course also possible to set multigroup first predefined function and the second predefined function to determine that multigroup Cb of same pixel assesses system Number and Cr metewands, are finally defined to carry out Cb adjusted values and Cr by the average value of multigroup Cb metewands and Cr metewands The determination of adjusted value, to reach more preferable colourity Adjustment effect.
In the present embodiment, the mode of saturation boost treatment is merely illustrative, can also be multiple by setting in practical application 6th predefined function determines multiple saturation degree adjusted values of same pixel, is with the average value of multiple saturation degree adjusted values finally Final saturation degree carries out the renewal of intensity value, so as to reach more preferable saturation boost effect.It is of course also possible to set many Individual 5th predefined function determines multiple saturation degree metewands of same pixel, finally with the flat of multiple saturation degree metewands Average is defined to carry out the determination of saturation degree adjusted value, to reach more preferable saturation degree Adjustment effect.
Image processing method in the present embodiment, can rectify after picture performs beautification to personage's colour of skin therein Just, saturation boost treatment is performed again after being corrected to personage's colour of skin so that the final picture target object image after beautification The all more life-like nature of brightness and general image, can take into account picture total quality higher and more preferably target object beautification effect Really.
Embodiment two
As shown in figure 5, the present embodiment provides a kind of processing unit of picture, including:
Read module 51, for reading original image;
Image processing module 52, for being carried out to the target object image in the original image according to predetermined process pattern Treatment, obtains the first picture;
Brightness correction module 53, for carrying out brightness correction to designated area in target object image in first picture Treatment.
Saturation degree processing module 54, carries for carrying out saturation degree to the first picture after the brightness correction module 53 treatment Rise treatment.
In some implementations, brightness correction module described in said apparatus 53 can include:
Detection sub-module 531, for detecting the designated area in first picture in target object image;
First assessment submodule 532, for carrying out luminance evaluation to the designated area;
First adjustment submodule 533, for the result according to the luminance evaluation, the brightness to the designated area is carried out Adjustment.
Wherein, the detection sub-module 531, is particularly used in the RGB data for reading pixel in the first picture;Will be described RGB data is converted to YCbCr data;According to the YCbCr data, specifying for target object image in first picture is determined Region.
For example, detection sub-module 531 whole pixels or target object image partial pixel in the first picture is obtained After YCbCr data, Y value, Cb values and the Cr values of the pixel are included in the YCbCr data of each pixel, can used as follows Formula detects the designated area:
Wherein, Cr (x, y), Cb (x, y) represent that the Cr and Cb, p (x, y) of the first picture represent that currently assigned region is sentenced respectively Determine result, if p (x, y) value represents that the pixel belongs to designated area when being 1, p (x, y) value represents that the pixel is not belonging to refer to when being 0 Determine region.Otherwise it is 0.That is, the designated area refers to YCbCr data and meeting p (x, y) value and being covered by 1 pixel Region.Which pixel belongs to designated area during detection sub-module 531 determines the first picture by above-mentioned formula, finally will be all The pixel for belonging to designated area comprehensively can determine that the designated area of the first picture.
Wherein, the first assessment submodule 532, is particularly used in and following place is performed to the pixel in the designated area Reason:Using the first predefined function, the chroma blue component assessment coefficient of pixel in the designated area is determined;It is predetermined using second Function, determines the red chrominance component metewand of pixel in the designated area;Wherein, the function of first predefined function It is the chroma blue component assessment coefficient, the variable at least chroma blue component value including the pixel to be worth;Described second is pre- The functional value for determining function is the red chrominance component metewand, the variable at least red chrominance component including the pixel Value..
Wherein, the first adjustment submodule 533, is particularly used in and following place is performed to the pixel in the designated area Reason:Determine the chroma blue component adjusted value of pixel in the designated area using the 3rd predefined function, and by the pixel Chroma blue component is updated to the chroma blue component adjusted value;Determine picture in the designated area using the 4th predefined function The red chrominance component adjusted value of element, and the red chrominance component of the pixel is updated to the red chrominance component adjustment Value;Wherein, the functional value of the 3rd predefined function is that the chroma blue component adjusted value, variable at least include the pixel Chroma blue component value and the chroma blue component assessment coefficient;The functional value of the 4th predefined function is the red Red chrominance component value and the red chrominance component assessment system of chromatic component adjusted value, variable at least including the pixel Number.
In some implementations, saturation degree processing module described in said apparatus 54 can include:
Obtain submodule 541, the intensity value for obtaining pixel in first picture;
Second assessment submodule 542, for carrying out saturation degree assessment to pixel in first picture;
Second adjustment submodule 543, for the result according to the assessment, to the saturation degree of pixel in first picture It is adjusted.
Wherein, the acquisition submodule 541, is particularly used in the RGB data for reading the pixel, by the RGB data Tone saturation degree lightness HSV data are converted to, from the HSV extracting datas intensity value.
Wherein, the second assessment submodule 542, is particularly used in and pixel in first picture is located as follows Reason:Intensity value based on the pixel determines the saturation degree metewand of the pixel using the 5th predefined function;Wherein, institute The functional value of the 5th predefined function is stated for the saturation degree metewand, the variable of the 5th predefined function at least includes saturation Angle value.
In practical application, the concrete form of the 5th predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 5th predefined function can be any relation, for example, the functional relation can be added, subtract, multiplying Deng one of or any two or the multinomial computing mode being combined.In addition, the variable in the 5th predefined function except Outside comprising intensity value, other constants or variable can also be increased, increase variable or constant mode can using adding, subtract, One of multiply etc. or any two or the multinomial computing mode being combined.
For example, the 5th predefined function can be:
Wherein, Ssrc(x, y) represents the intensity value of the pixel (x, y) on the first picture;SRef represents constant, NormValue represents normalized parameter;W (x, y) represents the saturation degree metewand to pixel (x, y) on the first picture.
In above-mentioned 5th predefined function, SRef, normValue respectively can be according to the different, mobile of practical application scene The not equal aspect of terminal models or performance is adjusted.SRef, normValue can be empirical values, and the empirical value can be By the numerical value obtained after statistical disposition or can be by after experiment determine optimum value.
Wherein, the second adjustment submodule 543, is particularly used in and pixel in first picture is located as follows Reason:Intensity value and saturation degree metewand based on the pixel determine the saturation degree of the pixel using the 6th predefined function Adjusted value, the saturation degree adjusted value is updated to by the intensity value of the pixel;Wherein, the function of the 6th predefined function It is the saturation degree adjusted value to be worth, and the variable of the 6th predefined function at least includes intensity value and saturation degree metewand.
In practical application, the concrete form of the 6th predefined function can be according to freely setting the need for actual treatment.Its In, the functional relation defined in the 6th predefined function can be any relation, for example, the functional relation can be added, subtract, multiplying Deng one of or any two or the multinomial computing mode being combined.In addition, the variable in the 6th predefined function except Outside comprising intensity value and saturation degree metewand, other constants or variable can also be increased, increase the side of variable or constant Formula can be using one of adding, subtract, multiplying etc. or any two or the multinomial computing mode being combined.
For example, the 6th predefined function can be:Sdst(x, y)=Ssrc(x,y)+w(x,y)*SRef;
Wherein, Sdst(x, y) represents saturation degree adjusted value;Ssrc(x, y) represents the saturation of the pixel (x, y) on the first picture Angle value;SRef represents constant, and w (x, y) represents the saturation degree metewand to pixel (x, y) on the first picture.
In above-mentioned 6th predefined function, SRef can be according to the different of practical application scene, mobile terminal model or performance Not equal aspect be adjusted.SRef can be empirical value, and the empirical value can be the number by being obtained after statistical disposition Value or can be by after experiment determine optimum value.
In the present embodiment, saturation degree processing module 54 determines the adjustment of intensity value, saturation degree metewand and saturation degree The implementation of value is only example, and specific implementation can carry out different degrees of according to the demand of application scenarios, picture processing Adjustment.
Said apparatus in the present embodiment, the picture after to landscaping treatment carries out brightness correction treatment and saturation degree is carried Treatment is risen, personage's colour of skin therein can not only be corrected after picture performs beautification, and can beautify in picture Ensure that picture total quality is unaffected after treatment, solve in correlation technique mobile terminal to after picture processing due to picture The factors such as middle personage's colour of skin is abnormal, the decline of picture total quality cause picture that the unlifelike problem of effect is presented so that beautification The all more life-like nature of the brightness of final picture target object image and general image afterwards, can take into account picture entirety matter higher Amount and more preferably target object landscaping effect, not only contribute to be lifted the picture processing performance of mobile terminal, and can be effective Lifting Consumer's Experience.
The said apparatus of the present embodiment are configurable on mobile terminal, perform the methods described of embodiment one, and it is implemented carefully Section can refer to embodiment one, repeat no more.Wherein, read module 51, image processing module 52, brightness correction module 53, saturation Degree processing module 54 can be respectively the combination of software, hardware or both.It should be noted that the above-mentioned dress that the present embodiment is provided Read module 51, image processing module 52 in putting, brightness correction module 53, saturation degree processing module 54 can be arranged on Fig. 1 In the controller 180 of middle mobile terminal.
Embodiment three
In the present embodiment, there is provided a kind of processing unit of picture, including:Processor and memory, the memory storage There are computer executable instructions, following method is realized when the computer executable instructions are by the computing device:
Read original image;
The target object image in the original image is processed according to predetermined process pattern, obtains the first picture;
Brightness correction treatment is carried out to designated area in target object image in first picture;
Saturation boost treatment is carried out to the first picture after brightness correction treatment.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Detect the designated area in first picture;Luminance evaluation is carried out to the designated area;According to institute The result of luminance evaluation is stated, the brightness to the designated area is adjusted.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Read the three primary colors RGB data of pixel in target object image in the first picture;By the RGB data Be converted to YCbCr data;According to the YCbCr data, the designated area in target object image in first picture is determined.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Using the first predefined function, the chroma blue component assessment coefficient of pixel in the designated area is determined; Using the second predefined function, the red chrominance component metewand of pixel in the designated area is determined;Wherein, described first is pre- The functional value for determining function is the chroma blue component assessment coefficient, the variable at least chroma blue component including the pixel Value;The functional value of second predefined function is that the red chrominance component metewand, variable at least include the pixel Red chrominance component value.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:The chroma blue component adjusted value of pixel in the designated area is determined using the 3rd predefined function, and The chroma blue component of the pixel is updated to the chroma blue component adjusted value;Determined using the 4th predefined function described The red chrominance component adjusted value of pixel in designated area, and the red chrominance component of the pixel is updated to the red color Degree component adjusted value;Wherein, the functional value of the 3rd predefined function is that the chroma blue component adjusted value, variable are at least wrapped Include the chroma blue component value and the chroma blue component assessment coefficient of the pixel;The functional value of the 4th predefined function Red chrominance component value and the red color point for the red chrominance component adjusted value, variable at least including the pixel Amount metewand.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Obtain the intensity value of pixel in first picture;Saturation is carried out to pixel in first picture Degree assessment;According to the result of the assessment, the saturation degree to pixel in first picture is adjusted.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:The RGB data of the pixel is read, the RGB data is converted into HSV data, from the HSV data Middle extraction intensity value.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Intensity value based on the pixel determines that the saturation degree of the pixel is assessed using the 5th predefined function Coefficient;Wherein, the functional value of the 5th predefined function is the saturation degree metewand, the variable of the 5th predefined function At least include intensity value.
In some implementations, when the computer executable instructions are by the computing device when realizing the above method Executable following operation:Intensity value and saturation degree metewand based on the pixel are determined described using the 6th predefined function The saturation degree adjusted value of pixel;The intensity value of the pixel is updated to the saturation degree adjusted value;Wherein, the described 6th is pre- The functional value of function is determined for the saturation degree adjusted value, and the variable of the 6th predefined function at least includes intensity value and saturation Degree metewand.
Said apparatus in the present embodiment, the picture after to landscaping treatment carries out brightness correction treatment and saturation degree is carried Treatment is risen, target object image brightness therein can not only be corrected after picture performs beautification, and can be Ensure that picture total quality is unaffected after picture landscaping treatment, solve after mobile terminal is to picture processing in correlation technique Because the factor such as abnormal, picture total quality decline of target object image brightness causes picture presentation effect not true to nature in picture Problem so that all more life-like nature of the brightness of final picture target object image and general image after beautification, can take into account Picture total quality higher and more preferably target object landscaping effect, not only contribute to be lifted the picture processing of mobile terminal Can, and can effectively lift Consumer's Experience.
The said apparatus of the present embodiment are configurable on mobile terminal, perform the methods described of embodiment one, and it is implemented carefully Section can refer to embodiment one, repeat no more.
Example IV
Additionally, the embodiment of the present application also provides a kind of computer-readable recording medium, be stored with computer executable instructions, The computer executable instructions realize following methods when being performed:
Read original image;
The target object image in the original image is processed according to predetermined process pattern, obtains the first picture;
Brightness correction treatment is carried out to designated area in target object image in first picture;
Saturation boost treatment is carried out to the first picture after brightness correction treatment.
In some implementations, it is described first picture is carried out brightness correction treatment can include:Detection is described Designated area in first picture;Luminance evaluation is carried out to the designated area;According to the result of the luminance evaluation, to described Designated area is adjusted.
In some implementations, it is described first picture is carried out saturation boost treatment can include:Obtain institute State the intensity value of pixel in the first picture;Saturation degree assessment is carried out to pixel in first picture;According to the assessment As a result, the saturation degree to pixel in first picture is adjusted.
Computer-readable recording medium in the present embodiment can be applied in mobile terminal, the figure after to landscaping treatment Piece carries out brightness correction treatment and saturation boost treatment, can not only be after picture performs beautification to target object therein Brightness of image is corrected, and can ensure that picture total quality is unaffected, solves correlation after picture landscaping treatment In technology mobile terminal to after picture processing because target object image brightness is abnormal in picture, picture total quality declines Cause picture that the unlifelike problem of effect is presented etc. factor so that the brightness of final picture target object image and entirety after beautification The all more life-like nature of image, can take into account picture total quality higher and more preferably target object landscaping effect, not only have Beneficial to the picture processing performance of lifting mobile terminal, and can effectively lift Consumer's Experience.
Alternatively, in the present embodiment, above-mentioned storage medium can be included but is not limited to:USB flash disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disc or CD etc. is various can be with the medium of store program codes.
Alternatively, in the present embodiment, processor performs above-mentioned implementation according to the program code stored in storage medium The method and step of example.
Alternatively, the specific example in the present embodiment may be referred to the description in above-described embodiment, and the present embodiment is herein not Repeat again.
It should be noted that herein, term " including ", "comprising" or its any other variant be intended to non-row His property is included, so that process, method, article or device including a series of key elements not only include those key elements, and And also include other key elements being not expressly set out, or also include for this process, method, article or device institute are intrinsic Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there is other identical element in the process of key element, method, article or device.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably implementation method.Based on such understanding, technical scheme is substantially done to prior art in other words The part for going out contribution can be embodied in the form of software product, and the computer software product is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used to so that a station terminal equipment (can be mobile phone, computer, clothes Business device, air-conditioner, or network equipment etc.) perform method described in each embodiment of the invention.
The preferred embodiments of the present invention are these are only, the scope of the claims of the invention is not thereby limited, it is every to utilize this hair Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other related skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of processing method of picture, it is characterised in that including:
Read original image;
The target object image in the original image is processed according to predetermined process pattern, obtains the first picture;
Brightness correction treatment is carried out to designated area in target object image in first picture;
Saturation boost treatment is carried out to the first picture after brightness correction treatment.
2. processing method according to claim 1, it is characterised in that the brightness correction treatment, including:
Detect the designated area in target object image in first picture;
Luminance evaluation is carried out to the designated area;
According to the result of the luminance evaluation, the brightness to the designated area is adjusted.
3. processing method according to claim 2, it is characterised in that luminance evaluation is carried out to the designated area, including:
Using the first predefined function, the chroma blue component assessment coefficient of pixel in the designated area is determined;
Using the second predefined function, the red chrominance component metewand of pixel in the designated area is determined;
Wherein, the functional value of first predefined function is described in the chroma blue component assessment coefficient, variable at least include The chroma blue component value of pixel;The functional value of second predefined function is the red chrominance component metewand, variable At least include the red chrominance component value of the pixel.
4. processing method according to claim 2, it is characterised in that the brightness to the designated area is adjusted, bag Include:
Determine the chroma blue component adjusted value of pixel in the designated area using the 3rd predefined function, and by the pixel Chroma blue component is updated to the chroma blue component adjusted value;
Determine the red chrominance component adjusted value of pixel in the designated area using the 4th predefined function, and by the pixel Red chrominance component is updated to the red chrominance component adjusted value;
Wherein, the functional value of the 3rd predefined function is that the chroma blue component adjusted value, variable at least include the picture The chroma blue component value and the chroma blue component assessment coefficient of element;The functional value of the 4th predefined function is described red Red chrominance component value and the red chrominance component assessment system of chroma color component adjusted value, variable at least including the pixel Number.
5. processing method according to claim 1, it is characterised in that the saturation boost treatment includes:
Obtain the intensity value of pixel in first picture;
Saturation degree assessment is carried out to pixel in first picture;
According to the result that the saturation degree is assessed, the saturation degree to pixel in first picture is adjusted.
6. processing method according to claim 5, it is characterised in that saturation degree is carried out to pixel in first picture and is commented Estimate, including:
Intensity value based on the pixel determines the saturation degree metewand of the pixel using the 5th predefined function;
Wherein, the functional value of the 5th predefined function is the saturation degree metewand, the variable of the 5th predefined function At least include intensity value.
7. processing method according to claim 6, it is characterised in that the saturation degree to pixel in first picture is carried out Adjustment, including:
Intensity value and saturation degree metewand based on the pixel determine the saturation of the pixel using the 6th predefined function Degree adjusted value;
The intensity value of the pixel is updated to the saturation degree adjusted value;
Wherein, the functional value of the 6th predefined function is the saturation degree adjusted value, and the variable of the 6th predefined function is extremely Include intensity value and saturation degree metewand less.
8. a kind of processing unit of picture, it is characterised in that including:
Read module, for reading original image;
Image processing module, for being processed the target object image in the original image according to predetermined process pattern, Obtain the first picture;
Brightness correction module, for carrying out brightness correction treatment to designated area in target object image in first picture;
Saturation degree processing module, for carrying out saturation boost treatment to the first picture after the brightness correction resume module.
9. processing unit according to claim 8, it is characterised in that the brightness correction module includes:
Detection sub-module, for detecting the designated area in first picture in target object image;
First assessment submodule, for carrying out luminance evaluation to the designated area;
First adjustment submodule, for the result according to the luminance evaluation, the brightness to the designated area is adjusted.
10. processing unit according to claim 8, it is characterised in that the saturation degree processing module includes:
Obtain submodule, the intensity value for obtaining pixel in first picture;
Second assessment submodule, for carrying out saturation degree assessment to pixel in first picture;
Second adjustment submodule, for the result according to the assessment, the saturation degree to pixel in first picture is adjusted It is whole.
CN201611082548.0A 2016-11-30 2016-11-30 The processing method and processing device of picture Pending CN106855997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611082548.0A CN106855997A (en) 2016-11-30 2016-11-30 The processing method and processing device of picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611082548.0A CN106855997A (en) 2016-11-30 2016-11-30 The processing method and processing device of picture

Publications (1)

Publication Number Publication Date
CN106855997A true CN106855997A (en) 2017-06-16

Family

ID=59126191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611082548.0A Pending CN106855997A (en) 2016-11-30 2016-11-30 The processing method and processing device of picture

Country Status (1)

Country Link
CN (1) CN106855997A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335271A (en) * 2018-01-26 2018-07-27 努比亚技术有限公司 A kind of method of image procossing, equipment and computer readable storage medium
CN109035159A (en) * 2018-06-27 2018-12-18 努比亚技术有限公司 A kind of image optimization processing method, mobile terminal and computer readable storage medium
CN110009588A (en) * 2019-04-09 2019-07-12 成都品果科技有限公司 A kind of portrait image color enhancement method and device
CN110276727A (en) * 2019-05-21 2019-09-24 杭州电子科技大学 A kind of color image color Enhancement Method towards dyschromatopsia

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141653A (en) * 2006-09-05 2008-03-12 帆宣系统科技股份有限公司 Image regulation device
CN101729913A (en) * 2008-10-14 2010-06-09 华映视讯(吴江)有限公司 Method and system for adjusting image saturation
CN103971330A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Image enhancing method and device
JP2015035755A (en) * 2013-08-09 2015-02-19 大日本印刷株式会社 Luminosity adjusting device, luminosity adjusting method, and program
CN105225647A (en) * 2015-10-15 2016-01-06 小米科技有限责任公司 Luminance regulating method and device
CN106056552A (en) * 2016-05-31 2016-10-26 努比亚技术有限公司 Image processing method and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141653A (en) * 2006-09-05 2008-03-12 帆宣系统科技股份有限公司 Image regulation device
CN101729913A (en) * 2008-10-14 2010-06-09 华映视讯(吴江)有限公司 Method and system for adjusting image saturation
CN103971330A (en) * 2013-02-05 2014-08-06 腾讯科技(深圳)有限公司 Image enhancing method and device
JP2015035755A (en) * 2013-08-09 2015-02-19 大日本印刷株式会社 Luminosity adjusting device, luminosity adjusting method, and program
CN105225647A (en) * 2015-10-15 2016-01-06 小米科技有限责任公司 Luminance regulating method and device
CN106056552A (en) * 2016-05-31 2016-10-26 努比亚技术有限公司 Image processing method and mobile terminal

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108335271A (en) * 2018-01-26 2018-07-27 努比亚技术有限公司 A kind of method of image procossing, equipment and computer readable storage medium
CN109035159A (en) * 2018-06-27 2018-12-18 努比亚技术有限公司 A kind of image optimization processing method, mobile terminal and computer readable storage medium
CN110009588A (en) * 2019-04-09 2019-07-12 成都品果科技有限公司 A kind of portrait image color enhancement method and device
CN110009588B (en) * 2019-04-09 2022-12-27 成都品果科技有限公司 Portrait image color enhancement method and device
CN110276727A (en) * 2019-05-21 2019-09-24 杭州电子科技大学 A kind of color image color Enhancement Method towards dyschromatopsia

Similar Documents

Publication Publication Date Title
CN105825485B (en) A kind of image processing system and method
CN106780634B (en) Picture dominant tone extracting method and device
CN105160628B (en) A kind of method and apparatus obtaining RGB data
CN106900036A (en) A kind of display methods and terminal
CN106447641A (en) Image generation device and method
CN106453885A (en) Eye protecting terminal and eye protecting method
CN105227865B (en) A kind of image processing method and terminal
CN105263226B (en) Control the method and mobile terminal of lighting apparatus
CN105956999A (en) Thumbnail generating device and method
CN104811532A (en) Terminal screen display parameter adjustment method and device
CN106855997A (en) The processing method and processing device of picture
CN105897564A (en) Photo sharing apparatus and method
CN104679890B (en) Picture method for pushing and device
CN106873855A (en) A kind of suspension icon control method, device and terminal
CN107087074A (en) A kind of method, device and terminal for adjusting screen intensity
CN106569709A (en) Device and method for controlling mobile terminal
CN105095903A (en) Electronic equipment and image processing method
CN105979237A (en) Image processing method and device
CN106791365A (en) Facial image preview processing method and processing device
CN107135531A (en) Resource share method and device
CN106953979A (en) The method and device that a kind of double antenna in call intelligently switches
CN105979195B (en) A kind of video image processing device and method
CN106973156A (en) Screen brightness regulation method and device
CN106130981A (en) The self-defined device and method of digital label of augmented reality equipment
CN105405108B (en) Image sharpening method and mobile terminal

Legal Events

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

Application publication date: 20170616

RJ01 Rejection of invention patent application after publication