CN108234893A - A kind of brightness adjusting method, equipment and computer readable storage medium - Google Patents

A kind of brightness adjusting method, equipment and computer readable storage medium Download PDF

Info

Publication number
CN108234893A
CN108234893A CN201810002653.1A CN201810002653A CN108234893A CN 108234893 A CN108234893 A CN 108234893A CN 201810002653 A CN201810002653 A CN 201810002653A CN 108234893 A CN108234893 A CN 108234893A
Authority
CN
China
Prior art keywords
pixel
brightness value
pending image
brightness
interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810002653.1A
Other languages
Chinese (zh)
Other versions
CN108234893B (en
Inventor
马栋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201810002653.1A priority Critical patent/CN108234893B/en
Publication of CN108234893A publication Critical patent/CN108234893A/en
Application granted granted Critical
Publication of CN108234893B publication Critical patent/CN108234893B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a kind of brightness adjusting methods, which is characterized in that the method includes:Obtain the total quantity of the corresponding brightness value of each pixel and the pixel in the pending image in pending image;Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;The total quantity of pixel in quantity and the pending image based on the corresponding pixel of each brightness value adjusts the brightness of the pixel of the pending image.The embodiment of the present invention also discloses a kind of brightness regulation equipment and computer readable storage medium simultaneously, solves the problems, such as that picture of the prior art is non-uniform there are Luminance Distribution.

Description

A kind of brightness adjusting method, equipment and computer readable storage medium
Technical field
The present invention relates to a kind of image processing techniques in the communications field more particularly to brightness adjusting method, equipment and meters Calculation machine readable storage medium storing program for executing.
Background technology
With the development of science and technology, the function of intelligent terminal is stronger and stronger;Also, with carrying for living standards of the people Height, the use of intelligent terminal are more and more universal.For a user, the camera function of intelligent terminal such as smart mobile phone is most often .
But the distribution that existing intelligent terminal takes the brightness value of the pixel of the picture come is not necessarily all uniformly distributed 's;The distribution of the brightness value of the pixel of some pictures concentrates on some or certain two sections, may result in entire figure in this way Bright-dark degree's unobvious of piece, and then the clarity of picture can be influenced.
Invention content
In view of this, an embodiment of the present invention is intended to provide a kind of brightness adjusting method, equipment and computer-readable storage mediums Matter solves the problems, such as that picture of the prior art is non-uniform there are Luminance Distribution, ensures the bright-dark degree point of the brightness of picture It is bright;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
In order to achieve the above objectives, the technical proposal of the invention is realized in this way:
A kind of brightness adjusting method, the method includes:
Obtain the total of the corresponding brightness value of each pixel and the pixel in the pending image in pending image Quantity;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The total quantity of quantity based on the corresponding pixel of each brightness value and the pixel in the pending image is adjusted Save the brightness of the pixel of the pending image.
Optionally, the picture in the quantity and the pending image based on the corresponding pixel of each brightness value The total quantity of vegetarian refreshments adjusts the brightness of the pixel of the pending image, including:
Based on the quantity of the corresponding pixel of each brightness value, the bright of pixel in the pending image is obtained Spend distributed intelligence;
Based on the total quantity of the pixel in the Luminance Distribution information and the pending image, adjust described pending The brightness value of the pixel of image.
Optionally, the quantity based on the corresponding pixel of each brightness value, obtains in the pending image Pixel Luminance Distribution information, including:
The quantity of the corresponding pixel of each brightness value is analyzed based on Benchmark brightness value, obtains the pending image In pixel Luminance Distribution information.
Optionally, the total quantity of the pixel based in the Luminance Distribution information and the pending image is adjusted The brightness value of the pixel of the pending image is saved, including:
Based on the Luminance Distribution information, the default item of the no satisfaction of brightness value of the pixel of the pending image is detected Part;
If the brightness value of the pixel of the pending image is unsatisfactory for the preset condition, based on the luminance information and The total quantity of pixel in the pending image adjusts the brightness value of the pixel of the pending image.
Optionally, described based on the Luminance Distribution information, detecting the brightness value of the pixel of the pending image is It is no to meet preset condition, including:
The Luminance Distribution information is analyzed, whether the brightness value for detecting the pixel of the pending image is uniformly distributed 's;
If the brightness value of the pixel of the pending image is not uniformly distributed, the pixel of the pending image is detected Brightness value be distributed in the quantity of first interval and whether meet preset quantity;
If the quantity that the brightness value of the pixel of the pending image is distributed in the first interval meets preset quantity, Determine that the brightness value of the pixel of the pending image is unsatisfactory for preset condition.
Optionally, the brightness value of the pixel of the detection pending image be distributed in first interval quantity whether Meet preset quantity, including:
If the brightness value of the pixel of the pending image is not uniformly distributed, the pixel of the pending image is determined Brightness value be distributed in the quantity of first interval;
The brightness value for calculating the pixel of the pending image is distributed in the quantity of first interval and the total quantity Ratio;
If the brightness value of the pixel of the pending image is distributed in the quantity of first interval and the ratio of the total quantity Example is less than preset ratio, determines that the brightness value of the pixel of the pending image is distributed in described in the quantity satisfaction of first interval Preset quantity.
Optionally, if the brightness value of the pixel of the pending image is unsatisfactory for the preset condition, based on institute The total quantity of luminance information and the pixel in the pending image is stated, adjusts the brightness of the pixel of the pending image Value, including:
If the brightness value of the pixel of the pending image is unsatisfactory for the preset condition, obtains and adjust proportionate relationship;
According to the adjusting proportionate relationship, the brightness value of pixel of the pending image is adjusted in second interval The brightness value of pixel;Wherein, second interval in the Benchmark brightness value in addition to brightness value where the first interval Section where brightness value.
Optionally, described obtain adjusts proportionate relationship, including:
Obtain the minimum luminance value and maximum brightness value of the second interval;
Obtain the maximum brightness value in the present intensity value and Benchmark brightness value of pixel to be regulated;
The maximum brightness value of minimum luminance value, second interval based on the second interval, pixel to be regulated are worked as Maximum brightness value in preceding brightness value and Benchmark brightness value determines the adjusting proportionate relationship.
A kind of brightness regulation equipment, the equipment include:Processor, memory and communication bus;
The communication bus is used to implement the communication connection between processor and memory;
The processor is used to perform the brightness regulation program stored in memory, to realize following steps:
Obtain the total of the corresponding brightness value of each pixel and the pixel in the pending image in pending image Quantity;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The sum of pixel in quantity and the pending image based on the corresponding pixel of each brightness value Amount adjusts the brightness of the pixel of the pending image.
A kind of computer readable storage medium, there are one the computer-readable recording medium storages or multiple programs, One or more of programs can be performed by one or more processor, to realize brightness adjusting method as described above Step.
Brightness adjusting method, equipment and the computer readable storage medium that the embodiment of the present invention is provided, obtain and wait to locate The total quantity of each corresponding brightness value of pixel and the pixel in pending image in image is managed, based on each pixel Brightness value determines the quantity of the corresponding pixel of each brightness value, the quantity based on the corresponding pixel of each brightness value and waits to locate The total quantity of the pixel in image is managed, the brightness of the pixel of pending image is adjusted, in this way, equipment can be automatically according to figure The brightness of each pixel of picture is worth to the quantity of the corresponding pixel of each brightness value, and corresponding according to each brightness value The brightness of the pixel of image is adjusted in the quantity of pixel, solves picture of the prior art there are Luminance Distribution not The problem of uniform, ensures that the bright-dark degree of the brightness of picture is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that picture Quality.
Description of the drawings
The hardware architecture diagram of Fig. 1 optional mobile terminal of each embodiment to realize the present invention;
Fig. 2 is the communication system architecture schematic diagram that mobile terminal provided in an embodiment of the present invention can operate;
Fig. 3 is a kind of flow diagram of brightness adjusting method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another brightness adjusting method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another brightness adjusting method provided in an embodiment of the present invention;
Fig. 6 is the Luminance Distribution schematic diagram of the pixel in a kind of pending image provided in an embodiment of the present invention;
Fig. 7 is the flow diagram of a kind of brightness adjusting method that another embodiment of the present invention provides;
Fig. 8 is a kind of schematic diagram of image provided in an embodiment of the present invention;
Fig. 9 is the schematic diagram of another image provided in an embodiment of the present invention;
Figure 10 is a kind of structure diagram of brightness regulation equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes.
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.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting Dynamic terminal 100 can include:Radio frequency (Radio Frequency, RF) unit 101, Wi-Fi module 102, audio output unit 103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1 Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components, Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication Standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more Location 2000 (Code Division Multiple Access 2000, CDMA2000), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), TD SDMA (Time Division- Synchronous Code Division Multiple Access, TD-SCDMA), frequency division duplex long term evolution (Frequency Division Duplexing-Long Term Evolution, FDD-LTE) and time division duplex long term evolution (Time Division Duplexing-Long Term Evolution, TDD-LTE) etc..
Wi-Fi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch by Wi-Fi module 102 Email, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 Show Wi-Fi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can basis It needs to omit in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100 Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or Wi-Fi module 102 are received or The audio data that person stores in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103 can also provide performed with mobile terminal 100 the relevant audio output of specific function (for example, call signal receive sound, Message sink sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor (Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or Wi-Fi module 102.Mike Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042 Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model. Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition) The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.; The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation (for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071 Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc. It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel 1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example, External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as Audio data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111 Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system The LTE system united as universal mobile communications technology, the LTE system include communicating the user equipment (User of connection successively Equipment, UE) 201, evolved UMTS Terrestrial radio access network (Evolved UMTS Terrestrial Radio Access Network, E-UTRAN) 202, evolved packet-based core networks (Evolved Packet Core, EPC) 203 and operation The IP operation 204 of quotient.
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203, ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include mobility management entity (Mobility Management Entity, MME) 2031, ownership Client server (Home Subscriber Server, HSS) 2032, other MME2033, gateway (Serving Gate Way, SGW) 2034, grouped data network gateway (PDN Gate Way, PGW) 2035 and policy and rate functional entity (Policy and Charging Rules Function, PCRF) 2036 etc..Wherein, MME2031 be processing UE201 and The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201 Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IP multimedia subsystem (IP Multimedia Subsystem, IMS) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with And following new network system etc., it does not limit herein.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the present invention is proposed.
The embodiment of the present invention provides a kind of brightness adjusting method, and with reference to shown in Fig. 3, this method includes the following steps:
Step 301 obtains the picture in each corresponding brightness value of pixel and the pending image in pending image The total quantity of vegetarian refreshments.
Wherein, step 301 is obtained in pending image in the corresponding brightness value of each pixel and the pending image The total quantity of pixel can be realized by brightness regulation equipment;The brightness regulation equipment can be the work(with display image The terminal of energy can be preferably the mobile terminal for having display screen and can showing image.For example, the terminal can wrap It includes:Mobile phone, camera, computer, tablet, notebook etc..
Pending image can be the image of terminal local storage or terminal from other-end or server etc. The image received;Certainly, there is image acquisition device if in pending image, then pending image can be that terminal is led to Cross image acquisition device the image collected;Wherein, image acquisition device also refers to the camera in terminal, before being specifically It can also be rear camera to put camera.The total quantity of the pixel of pending image refers to what pending image included All numbers of pixel, the total quantity of the pixel of pending image can be calculated according to the resolution ratio of pending image It obtains.
Pixel in pending image is obtained in each corresponding brightness value of pixel and the pending image Before total quantity, need first detection terminal whether in running order;Whether in running order detection terminal can be passed through Whether detection terminal is currently realized in open state, if terminal is currently at open state, illustrates that terminal is currently at work Make state.
Pixel is the minimum flat light emission that display shows picture, is made of three pixel units of red, green, blue, in coloured silk In color display tube, the Monocolour electron gun that electron gun is usually arranged in triangle by three forms, referred to as △ (delta) configurations, and The fluorescence coating of display is also using Trinitarian fluorophor, i.e., containing red, green, blue emitting phophor, their arrangement side Formula is identical with the arrangement mode of electron gun, these three primary colours can generate a variety of colors by different brightness combinations.In screen Pixel it is more, the resolution ratio of picture is higher, and the image the fine and smooth true to nature.Pixel refers to i.e. so-called by the lattice of image Pixel (pixel) composition, these blockages are all there are one specific position and assigned color value, and these small sides The color of lattice and position just determine the appearance that the image is showed.Pixel can be considered as indivisible in whole image Unit either element, indivisible to mean that it cut into more subsection or be element again, it is with one The small lattice of solid color exist.Each dot matrix image contains a certain amount of pixel, these pixels determine image on the screen The size presented.Pixel is also resolution ratio, refers to the array of horizontal and vertical pixel that can be shown, if value usually with Dry display mode is corresponding.When resolution ratio is 1366 × 768, just refer to divide 1366 pictures in the transverse direction of plasma screen Vegetarian refreshments, it is vertical on divided 768 pixels.Resolution ratio is higher, then the range that can receive resolution ratio is bigger, then the letter of plasma Number range of receiving is wider.
Step 302, the brightness value based on each pixel determine the quantity of the corresponding pixel of each brightness value.
Wherein, brightness value of the step 302 based on each pixel determines that the quantity of the corresponding pixel of each brightness value can To be realized by brightness regulation equipment;Terminal can obtain each brightness value after the brightness value of each pixel is obtained The number of corresponding pixel obtains the corresponding pixel quantity of each brightness value.Pixel in pending image it is bright Angle value can be from any one numerical value that can define brightness between 0-255;For example, each pixel pair in pending image The brightness value answered can be from numerical value between 10-250 etc..
The sum of step 303, pixel in quantity and pending image based on the corresponding pixel of each brightness value Amount, adjusts the brightness of the pixel of pending image.
Wherein, pixel in quantity and pending image of the step 303 based on the corresponding pixel of each brightness value Total quantity, adjusting the brightness of the pixel of pending image can be realized by brightness regulation equipment;Brightness regulation equipment is come The sum of pixel that the quantity of the corresponding pixel of each brightness value into pending image and pending image include After amount, the Luminance Distribution situation of the pixel in pending image can be obtained according to it, and according in pending image The Luminance Distribution situation of pixel adjusts the brightness value of the pixel of pending image, to realize the brightness to pending image Adjusting.
It is corresponding bright to obtain each pixel in pending image for the brightness adjusting method that the embodiment of the present invention is provided The total quantity of angle value and the pixel in pending image determines that each brightness value is corresponding based on the brightness value of each pixel The quantity of pixel, the total quantity of the pixel in quantity and pending image based on the corresponding pixel of each brightness value, The brightness of the pixel of pending image is adjusted, in this way, equipment can be obtained automatically according to the brightness value of each pixel of image To the quantity of the corresponding pixel of each brightness value, and according to the quantity of the corresponding pixel of each brightness value to the pixel of image The brightness of point is adjusted, and solves the problems, such as picture of the prior art there are Luminance Distribution is non-uniform, ensures the bright of picture The bright-dark degree of degree is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
Based on previous embodiment, the embodiment of the present invention provides a kind of brightness adjusting method, with reference to shown in Fig. 4, this method Include the following steps:
Step 401, brightness regulation equipment obtain each corresponding brightness value of pixel and pending figure in pending image The total quantity of pixel as in.
The brightness value of step 402, brightness regulation equipment based on each pixel determines the corresponding pixel of each brightness value Quantity.
The quantity of step 403, brightness regulation equipment based on the corresponding pixel of each brightness value, obtains in pending image Pixel Luminance Distribution information.
Wherein, Luminance Distribution information also refers to the Luminance Distribution feelings of all pixels point that pending image includes Condition;What can specifically be included is the corresponding brightness value of each pixel in pending image, corresponding in Benchmark brightness value The quantity of pixel that distributed area and each Luminance Distribution section in brightness section include.
The total quantity of step 404, brightness regulation equipment based on the pixel in Luminance Distribution information and pending image is adjusted Save the brightness value of the pixel of pending image.
It wherein, can be according to pending image after terminal obtains the Luminance Distribution information of the pixel in pending image In the Luminance Distribution information of pixel and the total quantity of the pixel in pending image between relationship, adjust pending figure The brightness value of the pixel of picture.
It should be noted that the explanation in the present embodiment with same steps in other embodiment or related notion is referred to Description in other embodiment, details are not described herein again.
It is corresponding bright to obtain each pixel in pending image for the brightness adjusting method that the embodiment of the present invention is provided The total quantity of angle value and the pixel in pending image determines that each brightness value is corresponding based on the brightness value of each pixel The quantity of pixel, the total quantity of the pixel in quantity and pending image based on the corresponding pixel of each brightness value, The brightness of the pixel of pending image is adjusted, in this way, equipment can be obtained automatically according to the brightness value of each pixel of image To the quantity of the corresponding pixel of each brightness value, and according to the quantity of the corresponding pixel of each brightness value to the pixel of image The brightness of point is adjusted, and solves the problems, such as picture of the prior art there are Luminance Distribution is non-uniform, ensures the bright of picture The bright-dark degree of degree is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
Based on previous embodiment, the embodiment of the present invention provides a kind of brightness adjusting method, with reference to shown in Fig. 5, this method Include the following steps:
Step 501, brightness regulation equipment obtain each corresponding brightness value of pixel and pending figure in pending image The total quantity of pixel as in.
The brightness value of step 502, brightness regulation equipment based on each pixel determines the corresponding pixel of each brightness value Quantity.
Step 503, brightness regulation equipment analyze the quantity of the corresponding pixel of each brightness value based on Benchmark brightness value, obtain To the Luminance Distribution information of the pixel in pending image.
Wherein, the Luminance Distribution information of pixel of the terminal in pending image is obtained, can be by according to benchmark What brightness value obtained after analyzing the quantity of the corresponding pixel of each brightness value;Benchmark brightness value can be 0-255 it Between brightness value.For example, the distributed intelligence of the pixel of pending image can using as shown in fig. 6, distributed area as 10-230, That is the brightness value of the pixel of pending image is distributed between 10-230.It should be noted that the picture of pending image The distributed intelligence of vegetarian refreshments can be identified in a manner of coordinate curve as shown in Figure 6, and abscissa represents brightness, ordinate mark Number of pixels;It is, of course, also possible to it represents otherwise.
Step 504, brightness regulation equipment are based on Luminance Distribution information, and the brightness value for detecting the pixel of pending image is no Meet preset condition.
Preset condition can be pre-set, need the condition that the brightness value of respective pixel point is adjusted.
Wherein, step 504 is based on Luminance Distribution information, and the no satisfaction of brightness value for detecting the pixel of pending image is default Condition can be accomplished by the following way:
Step 504a, brightness regulation device analysis Luminance Distribution information detects the brightness value of the pixel of pending image Whether it is equally distributed.
Wherein, terminal can be bright by each benchmark in the Luminance Distribution information for the pixel for detecting pending image The quantity of the corresponding pixel of angle value it is whether identical either between difference realize less than preset difference value or inspection can be passed through Survey whether distribution of the brightness value of the pixel of pending image on the corresponding section of Benchmark brightness value spreads all over entire section It realizes.For example, if the Luminance Distribution information of pending image, as shown in fig. 6, entire brightness value is distributed between 10-230, that is said The brightness value of the pixel of bright pending image is unevenly distributed.
If the brightness value of the pixel of step 504b, pending image is not uniformly distributed, brightness regulation equipment, which detects, to be waited to locate Whether the quantity that the brightness value of the pixel of reason image is distributed in first interval meets preset quantity.
Wherein, detect the pixel of pending image brightness value be distributed in first interval quantity whether meet it is default Number, can be distributed in the quantity of first interval and pending image by detecting the brightness value of the pixel of pending image Relationship between the ratio and preset ratio of the total quantity of pixel is realized.
If the quantity that the brightness value of the pixel of step 504c, pending image is distributed in first interval meets present count Amount, brightness regulation equipment determine that the brightness value of the pixel of pending image is unsatisfactory for preset condition.
If the brightness value of the pixel of step 505, pending image is unsatisfactory for preset condition, brightness regulation equipment is based on bright Information and the total quantity of the pixel in pending image are spent, adjusts the brightness value of the pixel of pending image.
It wherein, can be according to pending after obtaining the brightness value of pixel of pending image and being unsatisfactory for preset condition The Luminance Distribution information of the pixel of image and the total quantity of the pixel in pending image.To the pixel of pending image Brightness value be adjusted, specific can be adjusted according to certain adjusting ratio when adjust.
It should be noted that the explanation in the present embodiment with same steps in other embodiment or related notion is referred to Description in other embodiment, details are not described herein again.
The brightness adjusting method that the embodiment of the present invention is provided, equipment can be automatically according to each pixels of image Brightness is worth to the quantity of the corresponding pixel of each brightness value, and according to the quantity of the corresponding pixel of each brightness value to figure The brightness of the pixel of picture is adjusted, and solves the problems, such as that picture of the prior art is non-uniform there are Luminance Distribution, ensures The bright-dark degree of the brightness of picture is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
Based on previous embodiment, the embodiment of the present invention provides a kind of brightness adjusting method, with reference to shown in Fig. 7, this method Include the following steps:
Step 601, brightness regulation equipment obtain each corresponding brightness value of pixel and pending figure in pending image The total quantity of pixel as in.
The brightness value of step 602, brightness regulation equipment based on each pixel determines the corresponding pixel of each brightness value Quantity.
Step 603, brightness regulation equipment analyze the quantity of the corresponding pixel of each brightness value based on Benchmark brightness value, obtain To the Luminance Distribution information of the pixel in pending image.
Step 604, brightness regulation device analysis Luminance Distribution information, detecting the brightness value of the pixel of pending image is No is equally distributed.
If the brightness value of the pixel of step 605, pending image is not uniformly distributed, brightness regulation equipment determines processing figure The brightness value of the pixel of picture is distributed in the quantity of first interval.
Wherein, first interval can be a section in the corresponding interval range of Benchmark brightness value, such as can take 0- 10 and 230-255;In a kind of feasible realization method, the minimum value in a section of first interval can be 0, greatest measure Can be numerical value of the difference more than or equal to 10 with 0;The minimum value in another section can be the difference with 255 more than or equal to 10 Numerical value, maximum value can be 255.
Step 606, brightness regulation equipment calculation processing image the brightness value of pixel be distributed in the quantity of first interval With the ratio of total quantity.
If step 607, the brightness value for the pixel for handling image are distributed in the quantity of first interval and the ratio of total quantity Less than preset ratio, brightness regulation equipment, which obtains, adjusts proportionate relationship.
Wherein, preset ratio can be pre-set, and can show that the very few numerical value of the quantity of pixel, can be with It is a numerical intervals, such as can is 3%-5%.If the quantity of the pixel in any one section in first interval with it is total The ratio of quantity is less than preset ratio, can think that the brightness of the pixel of pending image needs to adjust.
It can be accomplished by the following way it should be noted that step 607 obtains adjusting proportionate relationship:
Step 607a, brightness regulation equipment obtains the minimum luminance value and maximum brightness value of second interval.
Step 607b, brightness regulation equipment is obtained in the present intensity value of pixel to be regulated and Benchmark brightness value most Big brightness value.
Step 607c, minimum luminance value of the brightness regulation equipment based on the second interval, second interval maximum brightness Maximum brightness value in value, the present intensity value and Benchmark brightness value of pixel to be regulated, determines the adjusting proportionate relationship.
Wherein, if second interval be 10-230, then the minimum luminance value of second interval be 10, second interval it is most light Angle value is 230, and the present intensity value of pixel to be regulated is A, and the maximum brightness value in Benchmark brightness value is 255, then To adjusting proportionate relationship can be expressed as:A-10/X=230-10/255;Wherein, X represents that A will adjust target brightness value, Brightness value A is adjusted to brightness value X.
Step 608, brightness regulation equipment exist according to proportionate relationship, the brightness value for adjusting the pixel of pending image is adjusted The brightness value of pixel in second interval.
Wherein, the area where the brightness value on the basis of second interval in brightness value in addition to brightness value where first interval Between.
If first interval is 0-10 and 230-255, as shown in Figure 6, second interval 10-230;It can stretch and treat at this time The distribution curve of the pixel of image is handled, i.e., the value in second interval 10-230 is stretched to interval range and becomes 0-255, into And obtain curve graph shown in dotted lines in Figure 6.
By taking the photo of a woman for wearing a cap that pending image takes for the camera in using terminal as an example It illustrates:As shown in figure 8, having the bright spot as shown in a in initial photo, the brightness value mistake of the pixel at this is represented Greatly;The brightness of this photo is adjusted at this point, the brightness adjusting method provided in the embodiment of the present invention may be used in terminal, Photo as shown in Figure 9 can be obtained after adjusting, the distribution of the brightness in the photo at this time is all uniform, and in photo Each section is all high-visible.
It should be noted that the explanation in the present embodiment with same steps in other embodiment or related notion is referred to Description in other embodiment, details are not described herein again.
It is corresponding bright to obtain each pixel in pending image for the brightness adjusting method that the embodiment of the present invention is provided The total quantity of angle value and the pixel in pending image determines that each brightness value is corresponding based on the brightness value of each pixel The quantity of pixel, the total quantity of the pixel in quantity and pending image based on the corresponding pixel of each brightness value, The brightness of the pixel of pending image is adjusted, in this way, equipment can be obtained automatically according to the brightness value of each pixel of image To the quantity of the corresponding pixel of each brightness value, and according to the quantity of the corresponding pixel of each brightness value to the pixel of image The brightness of point is adjusted, and solves the problems, such as picture of the prior art there are Luminance Distribution is non-uniform, ensures the bright of picture The bright-dark degree of degree is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
Based on previous embodiment, the embodiment of the present invention provides a kind of brightness regulation equipment, which can be with In a kind of brightness adjusting method provided applied to Fig. 3~5 and 7 corresponding embodiments, with reference to shown in Figure 10, which sets Standby 7 can include:Processor 71, memory 72 and communication bus 73;
Communication bus 73 is used to implement the communication connection between processor 71 and memory 72;
Processor 71 is used to perform the brightness regulation program stored in memory 72, to realize following steps:
Obtain the total quantity of the corresponding brightness value of each pixel and the pixel in pending image in pending image;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The total quantity of pixel in quantity and pending image based on the corresponding pixel of each brightness value, adjusting are treated Handle the brightness of the pixel of image.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 The total quantity of pixel in quantity and pending image based on the corresponding pixel of each brightness value, adjusts pending image Pixel brightness, to realize following steps:
Based on the quantity of the corresponding pixel of each brightness value, the Luminance Distribution letter of the pixel in pending image is obtained Breath;
Based on the total quantity of the pixel in Luminance Distribution information and pending image, the pixel of pending image is adjusted Brightness value.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 Based on the quantity of the corresponding pixel of each brightness value, the Luminance Distribution information of the pixel in pending image is obtained, with reality Existing following steps:
The quantity of the corresponding pixel of each brightness value is analyzed based on Benchmark brightness value, obtains the pixel in pending image The Luminance Distribution information of point.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 Based on the total quantity of the pixel in Luminance Distribution information and pending image, the brightness of the pixel of pending image is adjusted Value, to realize following steps:
Based on Luminance Distribution information, the brightness value for detecting the pixel of pending image no meets preset condition;
If the brightness value of the pixel of pending image is unsatisfactory for preset condition, based in luminance information and pending image Pixel total quantity, adjust the brightness value of the pixel of pending image.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 Based on Luminance Distribution information, detect the pixel of pending image brightness value it is no meet preset condition, to realize following steps:
Luminance Distribution information is analyzed, whether the brightness value for detecting the pixel of pending image is equally distributed;
If the brightness value of the pixel of pending image is not uniformly distributed, the brightness value of the pixel of pending image is detected Whether the quantity for being distributed in first interval meets preset quantity;
If the quantity that the brightness value of the pixel of pending image is distributed in first interval meets preset quantity, determine to wait to locate The brightness value for managing the pixel of image is unsatisfactory for preset condition.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 If the brightness value of the pixel of pending image is not uniformly distributed, the brightness value for detecting the pixel of pending image is distributed in Whether the quantity in one section meets preset quantity, to realize following steps:
If the brightness value of the pixel of pending image is not uniformly distributed, the brightness value point of the pixel of processing image is determined Cloth is in the quantity of first interval;
The brightness value for calculating the pixel of pending image is distributed in the quantity of first interval and the ratio of the total quantity;
If the ratio of quantity and total quantity that the brightness value of the pixel of pending image is distributed in first interval is less than pre- If ratio, determine that the brightness value of the pixel of pending image is distributed in the quantity of first interval and meets preset quantity.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 If the brightness value of the pixel of pending image is unsatisfactory for preset condition, based on the pixel in luminance information and pending image Total quantity, the brightness value of the pixel of pending image is adjusted, to realize following steps:
If the brightness value of the pixel of pending image is unsatisfactory for preset condition, obtains and adjust proportionate relationship;
According to proportionate relationship is adjusted, pixel of the brightness value in second interval of the pixel of pending image is adjusted Brightness value;
Wherein, the area where the brightness value on the basis of second interval in brightness value in addition to brightness value where first interval Between.
In other embodiments of the invention, processor 71 is used to perform the brightness regulation program that stores in memory 72 It obtains and adjusts proportionate relationship, to realize following steps:
Obtain the minimum luminance value and maximum brightness value of second interval;
Obtain the maximum brightness value in the present intensity value and Benchmark brightness value of pixel to be regulated;
The maximum brightness value of minimum luminance value, second interval based on second interval, pixel to be regulated it is current bright Maximum brightness value in angle value and Benchmark brightness value determines to adjust proportionate relationship.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, be referred to Fig. 3~ Realization process in the brightness adjusting method that 5 and 7 corresponding embodiments provide, details are not described herein again.
The brightness regulation equipment that the embodiment of the present invention is provided, can be automatically according to the brightness of each pixel of image It is worth to the quantity of the corresponding pixel of each brightness value, and according to the quantity of the corresponding pixel of each brightness value to image The brightness of pixel is adjusted, and solves the problems, such as that picture of the prior art is non-uniform there are Luminance Distribution, ensures picture Brightness bright-dark degree it is clearly demarcated;Meanwhile the clarity of picture is improved, it ensure that the quality of picture.
Based on previous embodiment, the embodiment of the present invention provides a kind of computer readable storage medium, computer-readable to deposit Storage media is stored with one or more program, one or more program can be performed by one or more processor, with reality Existing following steps:
Obtain the total quantity of the corresponding brightness value of each pixel and the pixel in pending image in pending image;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The total quantity of pixel in quantity and pending image based on the corresponding pixel of each brightness value, adjusting are treated Handle the brightness of the pixel of image.
In other embodiments of the invention, one or more program can be performed by one or more processor and is based on The quantity of the corresponding pixel of each brightness value and the total quantity of the pixel in pending image adjust the picture of pending image The brightness of vegetarian refreshments, to realize following steps:
Based on the quantity of the corresponding pixel of each brightness value, the Luminance Distribution letter of the pixel in pending image is obtained Breath;
Based on the total quantity of the pixel in Luminance Distribution information and pending image, the pixel of pending image is adjusted Brightness value.
In other embodiments of the invention, one or more program can be performed by one or more processor and is based on The quantity of the corresponding pixel of each brightness value obtains the Luminance Distribution information of the pixel in pending image, with realize with Lower step:
The quantity of the corresponding pixel of each brightness value is analyzed based on Benchmark brightness value, obtains the pixel in pending image The Luminance Distribution information of point.
In other embodiments of the invention, one or more program can be performed by one or more processor and is based on The total quantity of Luminance Distribution information and the pixel in pending image adjusts the brightness value of the pixel of pending image, with Realize following steps:
Based on Luminance Distribution information, the brightness value for detecting the pixel of pending image no meets preset condition;
If the brightness value of the pixel of pending image is unsatisfactory for preset condition, based in luminance information and pending image Pixel total quantity, adjust the brightness value of the pixel of pending image.
In other embodiments of the invention, one or more program can be performed by one or more processor and is based on Luminance Distribution information, detect the pixel of pending image brightness value it is no meet preset condition, to realize following steps:
Luminance Distribution information is analyzed, whether the brightness value for detecting the pixel of pending image is equally distributed;
If the brightness value of the pixel of pending image is not uniformly distributed, the brightness value of the pixel of pending image is detected Whether the quantity for being distributed in first interval meets preset quantity;
If the quantity that the brightness value of the pixel of pending image is distributed in first interval meets preset quantity, determine to wait to locate The brightness value for managing the pixel of image is unsatisfactory for preset condition.
In other embodiments of the invention, it is treated if one or more program can be performed by one or more processor The brightness value for handling the pixel of image is not uniformly distributed, and the brightness value for detecting the pixel of pending image is distributed in the firstth area Between quantity whether meet preset quantity, to realize following steps:
If the brightness value of the pixel of pending image is not uniformly distributed, the brightness value point of the pixel of processing image is determined Cloth is in the quantity of first interval;
The brightness value for calculating the pixel of pending image is distributed in the quantity of first interval and the ratio of the total quantity;
If the ratio of quantity and total quantity that the brightness value of the pixel of pending image is distributed in first interval is less than pre- If ratio, determine that the brightness value of the pixel of pending image is distributed in the quantity of first interval and meets preset quantity.
In other embodiments of the invention, it is treated if one or more program can be performed by one or more processor The brightness value for handling the pixel of image is unsatisfactory for preset condition, based on the total of the pixel in luminance information and pending image Quantity adjusts the brightness value of the pixel of pending image, to realize following steps:
If the brightness value of the pixel of pending image is unsatisfactory for preset condition, obtains and adjust proportionate relationship;
According to proportionate relationship is adjusted, pixel of the brightness value in second interval of the pixel of pending image is adjusted Brightness value;
Wherein, the area where the brightness value on the basis of second interval in brightness value in addition to brightness value where first interval Between.
In other embodiments of the invention, one or more program can perform acquisition by one or more processor Proportionate relationship is adjusted, to realize following steps:
Obtain the minimum luminance value and maximum brightness value of second interval;
Obtain the maximum brightness value in the present intensity value and Benchmark brightness value of pixel to be regulated;
The maximum brightness value of minimum luminance value, second interval based on second interval, pixel to be regulated it is current bright Maximum brightness value in angle value and Benchmark brightness value determines to adjust proportionate relationship.
It should be noted that the specific implementation process of the step in the present embodiment performed by processor, be referred to Fig. 3~ Realization process in the brightness adjusting method that 5 and 7 corresponding embodiments provide, details are not described herein again.
Wherein, the memory 72 in the embodiment corresponding with Figure 10 of memory 109 in the corresponding embodiments of Fig. 1 of the present invention Unanimously, the processor 71 in the embodiment corresponding with Figure 10 of processor 110 in the corresponding embodiments of Fig. 1 is consistent.
It should be noted that above computer readable storage medium storing program for executing can be read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable programmable is read-only deposits Reservoir (Erasable Programmable Read-Only Memory, EPROM), electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), magnetic random access store Device (Ferromagnetic Random Access Memory, FRAM), flash memory (Flash Memory), magnetic surface are deposited The memories such as reservoir, CD or CD-ROM (Compact Disc Read-Only Memory, CD-ROM);It can also be packet The various electronic equipments for including one of above-mentioned memory or arbitrarily combining, such as mobile phone, computer, tablet device, individual digital Assistant etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those elements, and And it further includes other elements that are not explicitly listed or further includes intrinsic for this process, method, article or device institute Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this Also there are other identical elements in the process of element, method, article or device.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
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 embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes Business device, air conditioner or the network equipment etc.) perform each described method of embodiment of the present invention.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that it can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided The processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that the instruction performed by computer or the processor of other programmable data processing devices is generated for real The device of function specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction generation being stored in the computer-readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps are performed on calculation machine or other programmable devices to generate computer implemented processing, so as in computer or The instruction offer performed on other programmable devices is used to implement in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of brightness adjusting method, which is characterized in that the method includes:
Obtain the total quantity of the corresponding brightness value of each pixel and the pixel in the pending image in pending image;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The total quantity of pixel in quantity and the pending image based on the corresponding pixel of each brightness value is adjusted Save the brightness of the pixel of the pending image.
It is 2. according to the method described in claim 1, it is characterized in that, described based on the corresponding pixel of each brightness value The total quantity of quantity and the pixel in the pending image adjusts the brightness of the pixel of the pending image, including:
Based on the quantity of the corresponding pixel of each brightness value, the brightness point of the pixel in the pending image is obtained Cloth information;
Based on the total quantity of the pixel in the Luminance Distribution information and the pending image, the pending image is adjusted Pixel brightness value.
It is 3. according to the method described in claim 2, it is characterized in that, described based on the corresponding pixel of each brightness value Quantity obtains the Luminance Distribution information of the pixel in the pending image, including:
The quantity of the corresponding pixel of each brightness value is analyzed based on Benchmark brightness value, is obtained in the pending image The Luminance Distribution information of pixel.
4. according to the method in claim 2 or 3, which is characterized in that described based on the Luminance Distribution information and described to treat The total quantity of the pixel in image is handled, adjusts the brightness value of the pixel of the pending image, including:
Based on the Luminance Distribution information, the brightness value of the pixel of the detection pending image is no to meet preset condition;
If the brightness value of the pixel of the pending image is unsatisfactory for the preset condition, based on the luminance information and described The total quantity of pixel in pending image adjusts the brightness value of the pixel of the pending image.
5. according to the method described in claim 4, it is characterized in that, described based on the Luminance Distribution information, treated described in detection The brightness value of the pixel of processing image is no to meet preset condition, including:
The Luminance Distribution information is analyzed, whether the brightness value for detecting the pixel of the pending image is equally distributed;
If the brightness value of the pixel of the pending image is not uniformly distributed, detect the pending image pixel it is bright Whether the quantity that angle value is distributed in first interval meets preset quantity;
If the quantity that the brightness value of the pixel of the pending image is distributed in the first interval meets preset quantity, determine The brightness value of the pixel of the pending image is unsatisfactory for preset condition.
6. if the according to the method described in claim 5, it is characterized in that, brightness value of the pixel of the pending image It is not uniformly distributed, detect the pixel of the pending image brightness value be distributed in first interval quantity whether meet it is default Quantity, including:
If the brightness value of the pixel of the pending image is not uniformly distributed, determine the pending image pixel it is bright Angle value is distributed in the quantity of first interval;
The brightness value for calculating the pixel of the pending image is distributed in the quantity of first interval and the ratio of the total quantity;
If the brightness value of the pixel of the pending image be distributed in first interval quantity and the total quantity ratio it is small In preset ratio, determine the pixel of the pending image brightness value be distributed in first interval quantity meet it is described default Quantity.
7. if the according to the method described in claim 4, it is characterized in that, brightness value of the pixel of the pending image The preset condition is unsatisfactory for, based on the total quantity of the pixel in the luminance information and the pending image, adjusts institute The brightness value of the pixel of pending image is stated, including:
If the brightness value of the pixel of the pending image is unsatisfactory for the preset condition, obtains and adjust proportionate relationship;
According to the adjusting proportionate relationship, pixel of the brightness value in second interval of the pixel of the pending image is adjusted The brightness value of point;Wherein, second interval is the brightness in the Benchmark brightness value in addition to brightness value where the first interval Section where being worth.
8. the method according to the description of claim 7 is characterized in that it is described obtain adjust proportionate relationship, including:
Obtain the minimum luminance value and maximum brightness value of the second interval;
Obtain the maximum brightness value in the present intensity value and Benchmark brightness value of pixel to be regulated;
The maximum brightness value of minimum luminance value, second interval based on the second interval, pixel to be regulated it is current bright Maximum brightness value in angle value and Benchmark brightness value determines the adjusting proportionate relationship.
9. a kind of brightness regulation equipment, which is characterized in that the equipment includes:Processor, memory and communication bus;
The communication bus is used to implement the communication connection between processor and memory;
The processor is used to perform the brightness regulation program stored in memory, to realize following steps:
Obtain the total quantity of the corresponding brightness value of each pixel and the pixel in the pending image in pending image;
Based on the brightness value of each pixel, the quantity of the corresponding pixel of each brightness value is determined;
The total quantity of pixel in quantity and the pending image based on the corresponding pixel of each brightness value is adjusted Save the brightness of the pixel of the pending image.
10. a kind of computer readable storage medium, which is characterized in that the computer-readable recording medium storage there are one or Multiple programs, one or more of programs can be performed by one or more processor, to realize such as claim 1 to 8 Any one of described in brightness adjusting method the step of.
CN201810002653.1A 2018-01-02 2018-01-02 Brightness adjusting method, brightness adjusting equipment and computer readable storage medium Active CN108234893B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810002653.1A CN108234893B (en) 2018-01-02 2018-01-02 Brightness adjusting method, brightness adjusting equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810002653.1A CN108234893B (en) 2018-01-02 2018-01-02 Brightness adjusting method, brightness adjusting equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN108234893A true CN108234893A (en) 2018-06-29
CN108234893B CN108234893B (en) 2021-02-05

Family

ID=62645080

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810002653.1A Active CN108234893B (en) 2018-01-02 2018-01-02 Brightness adjusting method, brightness adjusting equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN108234893B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672829A (en) * 2019-01-04 2019-04-23 Oppo广东移动通信有限公司 Method of adjustment, device, storage medium and the terminal of brightness of image
CN110971781A (en) * 2019-11-08 2020-04-07 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111917986A (en) * 2020-08-20 2020-11-10 安谋科技(中国)有限公司 Image processing method, medium thereof, and electronic device
CN114374796A (en) * 2021-12-31 2022-04-19 北京瞰瞰智能科技有限公司 Image processing method and device, image sensor and vehicle

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070126661A1 (en) * 2005-12-07 2007-06-07 Marketech Internation Corp. Apparatus and method for adjusting image on the basis of characteristics of display system
CN101710955A (en) * 2009-11-24 2010-05-19 北京中星微电子有限公司 Method and equipment for adjusting brightness and contrast
CN103617792A (en) * 2013-11-14 2014-03-05 天津三星电子有限公司 Method for adjusting image display of display terminal and display terminal
CN104200794A (en) * 2014-08-20 2014-12-10 明基电通有限公司 Image adjusting method and display
CN105513566A (en) * 2016-01-25 2016-04-20 明基电通有限公司 Image adjusting method of executing optimal adjustment according to different environments and displayer
CN106570833A (en) * 2016-10-31 2017-04-19 湖南国科微电子股份有限公司 Video image self-adaptive contrast enhancement method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070126661A1 (en) * 2005-12-07 2007-06-07 Marketech Internation Corp. Apparatus and method for adjusting image on the basis of characteristics of display system
CN101710955A (en) * 2009-11-24 2010-05-19 北京中星微电子有限公司 Method and equipment for adjusting brightness and contrast
CN103617792A (en) * 2013-11-14 2014-03-05 天津三星电子有限公司 Method for adjusting image display of display terminal and display terminal
CN104200794A (en) * 2014-08-20 2014-12-10 明基电通有限公司 Image adjusting method and display
CN105513566A (en) * 2016-01-25 2016-04-20 明基电通有限公司 Image adjusting method of executing optimal adjustment according to different environments and displayer
CN106570833A (en) * 2016-10-31 2017-04-19 湖南国科微电子股份有限公司 Video image self-adaptive contrast enhancement method and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672829A (en) * 2019-01-04 2019-04-23 Oppo广东移动通信有限公司 Method of adjustment, device, storage medium and the terminal of brightness of image
CN109672829B (en) * 2019-01-04 2021-02-02 Oppo广东移动通信有限公司 Image brightness adjusting method and device, storage medium and terminal
CN110971781A (en) * 2019-11-08 2020-04-07 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN110971781B (en) * 2019-11-08 2021-06-15 Oppo广东移动通信有限公司 Image processing method, image processing device, storage medium and electronic equipment
CN111917986A (en) * 2020-08-20 2020-11-10 安谋科技(中国)有限公司 Image processing method, medium thereof, and electronic device
CN114374796A (en) * 2021-12-31 2022-04-19 北京瞰瞰智能科技有限公司 Image processing method and device, image sensor and vehicle
CN114374796B (en) * 2021-12-31 2023-10-31 北京瞰瞰智能科技有限公司 Image processing method and device, image sensor and vehicle

Also Published As

Publication number Publication date
CN108234893B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN108391025A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN107517494A (en) A kind of display methods of terminal battery electricity quantity, terminal and computer-readable recording medium
CN109213401A (en) Double-sided screen application icon method for sorting, mobile terminal and readable storage medium storing program for executing
CN108282771A (en) A kind of network access management method, mobile terminal and computer readable storage medium
CN108289174A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN107450796B (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN108234893A (en) A kind of brightness adjusting method, equipment and computer readable storage medium
CN108182028A (en) A kind of control method, terminal and computer readable storage medium
CN109992183A (en) Preview picture and the method for selection, terminal and storage medium
CN107688429A (en) Management method, mobile terminal and the computer-readable recording medium of application controls
CN108762926A (en) A kind of system optimization method, terminal and computer readable storage medium
CN109117105A (en) A kind of collaboration desktop interaction regulation method, equipment and computer readable storage medium
CN108776600A (en) Application program pretrigger method, mobile terminal and computer readable storage medium
CN110069122A (en) A kind of screen control method, terminal and computer readable storage medium
CN108182664A (en) A kind of image processing method, mobile terminal and computer readable storage medium
CN108322595A (en) A kind of control method, terminal and computer readable storage medium
CN108062669A (en) A kind of method of payment, terminal and computer readable storage medium
CN109445945A (en) Memory allocation method, mobile terminal, server and the storage medium of application program
CN108234979A (en) A kind of image pickup method, mobile terminal and computer readable storage medium
CN109325133A (en) A kind of method of Information locating, terminal and computer readable storage medium
CN109284110A (en) Terminal applies replacement method, terminal and computer readable storage medium
CN108063863A (en) A kind of information browsing method, terminal, server and computer readable storage medium
CN108184106A (en) Image processing method, mobile terminal and computer readable storage medium
CN108053383A (en) A kind of noise-reduction method, equipment and computer readable storage medium
CN108076222A (en) A kind of operating method, terminal and computer readable storage medium for screen

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant