CN109309826A - A kind of image color equalization methods and terminal - Google Patents

A kind of image color equalization methods and terminal Download PDF

Info

Publication number
CN109309826A
CN109309826A CN201710627195.6A CN201710627195A CN109309826A CN 109309826 A CN109309826 A CN 109309826A CN 201710627195 A CN201710627195 A CN 201710627195A CN 109309826 A CN109309826 A CN 109309826A
Authority
CN
China
Prior art keywords
image
brightness value
pixel
color
color component
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
CN201710627195.6A
Other languages
Chinese (zh)
Other versions
CN109309826B (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.)
TCL Corp
Original Assignee
TCL Corp
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 TCL Corp filed Critical TCL Corp
Priority to CN201710627195.6A priority Critical patent/CN109309826B/en
Publication of CN109309826A publication Critical patent/CN109309826A/en
Application granted granted Critical
Publication of CN109309826B publication Critical patent/CN109309826B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters

Abstract

The present invention provides a kind of image color equalization methods and terminals, are related to technical field of image processing.Wherein method includes: to obtain tri- corresponding histograms of color component of image R, G, B to be processed;Respectively according to most dark pixel ratio, brightest pixel ratio of the image on three color components after the corresponding histogram of three color components and preset processing, minimum luminance value and maximum brightness value of the image on three color components after processing is calculated;According to image after the processing in the minimum luminance value on three color components, brightness value of each pixel on three color components in maximum brightness value and image to be processed, the color of the image to be processed is adjusted.The embodiment of the present invention can effectively improve the dynamic range of image color, promote the visual effect of image.

Description

A kind of image color equalization methods and terminal
Technical field
The invention belongs to technical field of image processing more particularly to a kind of image color equalization methods and terminals.
Background technique
When the dynamic range of the color of piece image is too small, it usually needs be adjusted to it to improve the view of viewer Feel impression.Wherein, color included in the dynamic range table diagram picture of color is from " most dark " to the range of " most bright ", dynamic model Enclose bigger, the level that can be showed is abundanter, and the color space for being included is also wider.
Currently, the basic skills of color balance is affine, this side for directlying adopt linear transformation form to input picture There is the brightness value of only a few pixel to be respectively at the situation of " most dark " and " most bright " nearby, nothing if formula is directed in input picture Method is effectively improved the dynamic range of image color.
Summary of the invention
In view of this, the present invention provides a kind of image color equalization methods and terminals, if with solve it is above-mentioned be directed to it is defeated Enter to have in image the brightness value of only a few pixel to be respectively at the situation of " most dark " and " most bright " nearby, then can not be effectively improved figure As color dynamic range the problem of.
In a first aspect, the present invention provides a kind of image color equalization methods, comprising:
Obtain tri- corresponding histograms of color component of image R, G, B to be processed;
Respectively according to image after the corresponding histogram of three color components and preset processing at three Most dark pixel ratio, brightest pixel ratio on color component, image is on three color components after processing is calculated Minimum luminance value and maximum brightness value;
According to minimum luminance value of the image after the processing on three color components, maximum brightness value and wait locate Brightness value of each pixel on three color components in image is managed, the color of the image to be processed is adjusted.
Second aspect, the present invention also provides one kind terminals, comprising:
Histogram acquiring unit, for obtaining tri- corresponding histograms of color component of image R, G, B to be processed;
Luminance threshold acquiring unit, for being set respectively according to the corresponding histogram of three color components and in advance Image after processing is calculated in most dark pixel ratio, brightest pixel ratio of the image on three color components after fixed processing Minimum luminance value and maximum brightness value on three color components;
Color adjusting unit, for according to minimum luminance value of the image after the processing on three color components, Brightness value of each pixel on three color components in maximum brightness value and image to be processed, adjustment are described wait locate Manage the color of image.
The third aspect the present invention also provides a kind of terminal device, including memory, processor and is stored in described deposit In reservoir and the computer program that can run on the processor, wherein when the processor executes the computer program It realizes such as the step of above-mentioned first aspect the method.
Fourth aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium It is stored with computer program, wherein such as above-mentioned first aspect the method is realized when the computer program is executed by processor The step of.
The medicine have the advantages that
The present invention due to obtaining tri- corresponding histograms of color component of image R, G, B to be processed first;Then root According to most dark pixel ratio, brightest pixel ratio of the image after histogram and preset processing on three color components, meter Minimum luminance value and maximum brightness value of the image on three color components after calculation is handled;Finally further according to the place Image is in the minimum luminance value on three color components, each pixel in maximum brightness value and image to be processed after reason Brightness value on three color components adjusts the color of the image to be processed, so as to effectively improve image The dynamic range of color, promotes the visual effect of image, if overcoming existing in the prior art be directed in input picture has pole The brightness value of a few pixels is respectively at the situation of " most dark " and " most bright " nearby, can not be effectively improved the dynamic model of image color The problem of enclosing.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of schematic flow diagram for image color equalization methods that first embodiment of the invention provides;
Fig. 2 is the specific implementation stream of step S102 in a kind of image color equalization methods of first embodiment of the invention offer Cheng Tu;
Fig. 3 is the specific implementation stream of step S103 in a kind of image color equalization methods of first embodiment of the invention offer Cheng Tu;
Fig. 4 is a kind of schematic block diagram for terminal that second embodiment of the invention provides;
Fig. 5 is a kind of schematic block diagram for terminal device that third embodiment of the invention provides.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
Fig. 1 is a kind of schematic flow diagram for image color equalization methods that first embodiment of the invention provides.Referring to Fig. 1 institute Show, a kind of image color equalization methods provided in this embodiment, comprising:
Step S101 obtains tri- corresponding histograms of color component of image R, G, B to be processed.
In the present embodiment, each pixel has tri- color components of R, G, B in the image to be processed, by described R, G, B value of each pixel carry out statistic of classification on image to be processed, and tri- color components of R, G, B can be obtained, and respectively institute is right The histogram answered, the abscissa of the histogram are gray scale, and ordinate is the quantity of pixel.
Step S102, respectively according to scheming after the corresponding histogram of three color components and preset processing As most dark pixel ratio, the brightest pixel ratio on three color components, image is in three colors after processing is calculated Minimum luminance value and maximum brightness value on color component.
It is shown in Figure 2, it is the specific implementation flow chart of step S102 in first embodiment of the invention.It is shown in Figure 2, Step S102 is specifically included:
Step S201 counts histogram corresponding to color component in the image to be processed, and it is straight to obtain accumulation Square figure distribution function H (n)=| 1≤x≤N | Ii≤n|。
Wherein, N indicates the pixel number in image to be processed, IiIndicate image ith pixel point to be processed in the color minute Brightness value in amount, H (n) indicate pixel of brightness value of the pixel on the color component less than numerical value n in image to be processed Quantity.
For example, in a concrete application, if gray scale is 1 in histogram, 2,3 pair pixel quantity be respectively 5, 10,15, then in accumulation histogram corresponding to the histogram gray scale be pixel quantity corresponding to 1,2,3 be respectively 5, 15、30。
Step S202, respectively most dark pixel ratio, brightest pixel ratio and institute according to corresponding to the color component The pixel number in image is stated, is calculated in described image and most dark pixel quantity A corresponding to the color component and most bright Pixel quantity B.
Step S203, respectively according to equation: Vmin=H-1(A),Vmax=H-1(B), described image is calculated in the color Corresponding minimum luminance value and maximum brightness value on color component.
Wherein, VminIndicate minimum luminance value, VmaxIndicate maximum brightness value, H-1It is the inverse operation of H.
It should be noted that carrying out independent place respectively to three color components of the image to be processed in the present embodiment Reason, corresponding to algorithm it is identical, such as above-mentioned steps S201~step S203, wherein each color component be corresponding with it is respective Most dark pixel ratio, brightest pixel ratio and respective minimum luminance value and maximum brightness value.Corresponding to each color component Most dark pixel ratio or brightest pixel ratio may be the same or different.
Step S103, according to minimum luminance value of the image after the processing on three color components, maximum brightness Brightness value of each pixel on three color components in value and image to be processed adjusts the image to be processed Color.
It is shown in Figure 3, it is the specific implementation flow chart of step S103 in one embodiment of the invention.As shown in figure 3, step Rapid S103 is specifically included:
Step S301, if brightness value of some pixel on color component is less than the color point in the image to be processed The corresponding minimum luminance value of amount, then be adjusted to the minimum luminance value for brightness value of the pixel on the color component.
Step S302, if brightness value of some pixel on color component is greater than the color point in the image to be processed The corresponding maximum brightness value of amount, then be adjusted to the maximum brightness value for brightness value of the pixel on the color component.
In the present embodiment, due to minimum luminance value of the image on each color component after the processing of acquisition in advance and most light Angle value, then when handling image to be processed, if brightness value of the pixel on image to be processed on color component exists Except the minimum luminance value and the maximum brightness value, then brightness value of its pixel on the color component is adjusted to described Even if minimum luminance value perhaps maximum brightness value to guarantee the picture that color in image to be processed is located near most dark or most bright Vegetarian refreshments is few, and the equilibrium for the image color that can also guarantee that treated improves the visual effect of image.
Step S303, if brightness value of some pixel on color component divides with the color in the image to be processed Between the corresponding minimum luminance value of amount and maximum brightness value, then the pixel is adjusted in the color according to preset output equation Brightness value on component.
Further, in the present embodiment, the preset output equation are as follows:Wherein, Qi For brightness value of the pixel on the color component described in image after processing, m is that pixel described in image to be processed exists The number of bits of brightness value on the color component.
In the present embodiment, when the brightness value on color component of pixel in image to be processed in minimum luminance value and When between maximum brightness value, then color adjustment is carried out to it according to above-mentioned preset output equation, when the pixel is in three colors After color component adjusts, then picture element point chromatic synthesis is carried out, the color after pixel output can be obtained, in image to be processed After the completion of the color adjustment of upper all pixels point, i.e., exportable treated image obtains the image of color balance.
A kind of image equalization method provided in this embodiment is due to presetting the most dark pixel ratio after processing on image With brightest pixel ratio, processing is then determined in conjunction with the histogram of each color component on image to be processed according to Set scale Minimum luminance value and maximum brightness value of the image on each color component afterwards, finally further according to each color on image after processing Each pixel is bright on three color components on minimum luminance value and maximum brightness value and image to be processed on component Angle value carries out independent process to three color components of image to be processed respectively, then integrates and handles on three color components again As a result the image after output color is balanced, is shown to user, to effectively improve the dynamic range of image color, improves The visual effect of image, if overcoming existing in the prior art for the brightness value for having only a few pixel in input picture difference Situation in " most dark " and " most bright " nearby, the problem of dynamic range of image color can not be effectively improved.
Fig. 4 is a kind of schematic block diagram for terminal that second embodiment of the invention provides.It only shows for ease of description Part related to the present embodiment.
A kind of terminal 4 shown in Figure 4, that second embodiment of the invention provides, comprising:
Histogram acquiring unit 41, for obtaining tri- corresponding histograms of color component of image R, G, B to be processed;
Luminance threshold acquiring unit 42, for respectively according to the corresponding histogram of three color components and in advance Most dark pixel ratio, brightest pixel ratio of the image on three color components after the processing of setting are schemed after processing is calculated As the minimum luminance value and maximum brightness value on three color components;
Color adjusting unit 43, for the minimum brightness according to image after the processing on three color components It is worth, brightness value of each pixel on three color components in maximum brightness value and image to be processed, described in adjustment The color of image to be processed.
Optionally, the luminance threshold acquiring unit 42 is specifically used for:
Histogram corresponding to color component in the image to be processed is counted, accumulation histogram distribution letter is obtained Number H (n)=| 1≤x≤N | Ii≤ n |, wherein N indicates the pixel number in image to be processed, IiIndicate i-th of picture of image to be processed Brightness value of the vegetarian refreshments on the color component, H (n) indicate that brightness value of the pixel on the color component is less than in image to be processed The quantity of the pixel of numerical value n;
Respectively in most dark pixel ratio, brightest pixel ratio and described image according to corresponding to the color component Pixel number is calculated in described image and most dark pixel quantity A corresponding to the color component and brightest pixel quantity B;
Respectively according to equation: Vmin=H-1(A),Vmax=H-1(B), described image is calculated on the color component Corresponding minimum luminance value and maximum brightness value, wherein VminIndicate minimum luminance value, VmaxIndicate maximum brightness value, H-1It is H Inverse operation.
Optionally, the color adjusting unit 43 is specifically used for:
If brightness value of some pixel on color component is less than corresponding to the color component in the image to be processed Minimum luminance value, then brightness value of the pixel on the color component is adjusted to the minimum luminance value;
If brightness value of some pixel on color component is greater than corresponding to the color component in the image to be processed Maximum brightness value, then brightness value of the pixel on the color component is adjusted to the maximum brightness value;
If in the image to be processed brightness value of some pixel on color component with corresponding to the color component Minimum luminance value and maximum brightness value between, then adjust the pixel on the color component according to preset output equation Brightness value.
Optionally, the preset output equation are as follows:Wherein, QiFor in image after processing Brightness value of the pixel on the color component, m are pixel described in image to be processed on the color component Brightness value number of bits.
It should be noted that each unit in above-mentioned terminal provided in an embodiment of the present invention, due to the method for the present invention Embodiment is based on same design, and bring technical effect is identical as embodiment of the present invention method, and particular content can be found in this hair Narration in bright embodiment of the method, details are not described herein again.
Above as can be seen that terminal provided in an embodiment of the present invention equally can effectively improve the dynamic model of image color It encloses, promotes the visual effect of image, if overcoming existing in the prior art be directed in input picture has the bright of only a few pixel The problem of angle value is respectively at the situation of " most dark " and " most bright " nearby, can not be effectively improved the dynamic range of image color.
Fig. 5 is the schematic diagram for the terminal device that third embodiment of the invention provides.As shown in figure 5, the terminal of the embodiment Equipment 5 includes: processor 50, memory 51 and is stored in the memory 51 and can run on the processor 50 Computer program 52.The processor 50 realizes the step in above-mentioned each embodiment of the method when executing the computer program 52 Suddenly, such as step 101 shown in FIG. 1 is to 103.Alternatively, the processor 50 realized when executing the computer program 52 it is above-mentioned The function of each module/unit in each Installation practice, such as the function of module 41 to 43 shown in Fig. 4.
Illustratively, the computer program 52 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 51, and are executed by the processor 50, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 52 in the terminal 5 is described.For example, the computer program 52 can be divided into Histogram acquiring unit, luminance threshold acquiring unit and color adjusting unit, each unit concrete function are as follows:
Histogram acquiring unit, for obtaining tri- corresponding histograms of color component of image R, G, B to be processed;
Luminance threshold acquiring unit, for being set respectively according to the corresponding histogram of three color components and in advance Image after processing is calculated in most dark pixel ratio, brightest pixel ratio of the image on three color components after fixed processing Minimum luminance value and maximum brightness value on three color components;
Color adjusting unit, for according to minimum luminance value of the image after the processing on three color components, Brightness value of each pixel on three color components in maximum brightness value and image to be processed, adjustment are described wait locate Manage the color of image.
The terminal device 5 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal may include, but be not limited only to, processor 50, memory 51.It will be understood by those skilled in the art that Fig. 5 is only It is the example of terminal 5, does not constitute the restriction to terminal device 5, may include than illustrating more or fewer components or group Close certain components or different components, for example, the terminal can also include input-output equipment, it is network access equipment, total Line etc..
Alleged processor 50 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 51 can be the internal storage unit of the terminal 5, such as the hard disk or memory of terminal 5.It is described Memory 51 is also possible to the External memory equipment of the terminal 5, such as the plug-in type hard disk being equipped in the terminal 5, intelligence Storage card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) Deng.Further, the memory 51 can also both include the internal storage unit of the terminal 5 or set including external storage It is standby.The memory 51 is for other programs and data needed for storing the computer program and the terminal.It is described to deposit Reservoir 51 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed terminal and method can pass through others Mode is realized.For example, device described above/terminal device embodiment is only schematical, for example, the module or list Member division, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or Component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point is shown The mutual coupling or direct-coupling or communication connection shown or discussed can be through some interfaces, between device or unit Coupling or communication connection are connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium do not include be electric carrier signal and Telecommunication signal.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of image color equalization methods characterized by comprising
Obtain tri- corresponding histograms of color component of image R, G, B to be processed;
Respectively according to image after the corresponding histogram of three color components and preset processing in three colors Most dark pixel ratio, brightest pixel ratio on component, be calculated processing after image on three color components most Small brightness value and maximum brightness value;
According to minimum luminance value, maximum brightness value and to be processed figure of the image after the processing on three color components Brightness value of each pixel on three color components as in adjusts the color of the image to be processed.
2. image color equalization methods as described in claim 1, which is characterized in that described respectively according to three colors point Measure most dark pixel ratio on three color components of image after corresponding histogram and preset processing, most bright picture Plain ratio, minimum luminance value and maximum brightness value of the image on three color components include: after processing is calculated
Histogram corresponding to color component in the image to be processed is counted, accumulation histogram distribution function H is obtained (n)=| 1≤x≤N | Ii≤ n |, wherein N indicates the pixel number in image to be processed, IiIndicate image ith pixel point to be processed Brightness value on the color component, H (n) indicate that brightness value of the pixel on the color component is less than numerical value in image to be processed The quantity of the pixel of n;
Pixel in most dark pixel ratio, brightest pixel ratio and described image according to corresponding to the color component respectively Number, is calculated in described image and most dark pixel quantity A corresponding to the color component and brightest pixel quantity B;
Respectively according to equation: Vmin=H-1(A),Vmax=H-1(B), it is corresponding on the color component that described image is calculated Minimum luminance value and maximum brightness value, wherein VminIndicate minimum luminance value, VmaxIndicate maximum brightness value, H-1It is the inverse fortune of H It calculates.
3. image color equalization methods as claimed in claim 2, which is characterized in that according to image after the processing described three Each pixel is in three colors in minimum luminance value and maximum brightness value and image to be processed on a color component Brightness value on component, the color for adjusting the image to be processed include:
If brightness value of some pixel on color component is less than corresponding to the color component most in the image to be processed Brightness value of the pixel on the color component is then adjusted to the minimum luminance value by small brightness value;
If brightness value of some pixel on color component is greater than corresponding to the color component most in the image to be processed Brightness value of the pixel on the color component is then adjusted to the maximum brightness value by big brightness value;
If in the image to be processed brightness value of some pixel on color component with corresponding to the color component most Between small brightness value and maximum brightness value, then brightness of the pixel on the color component is adjusted according to preset output equation Value.
4. image color equalization methods as claimed in claim 3, which is characterized in that the preset output equation are as follows:Wherein, QiFor brightness value of the pixel on the color component described in image after processing, m For the number of bits of brightness value of the pixel described in image to be processed on the color component.
5. a kind of terminal characterized by comprising
Histogram acquiring unit, for obtaining tri- corresponding histograms of color component of image R, G, B to be processed;
Luminance threshold acquiring unit, for respectively according to the corresponding histogram of three color components and preset Most dark pixel ratio, brightest pixel ratio of the image on three color components after processing, image is in institute after processing is calculated State the minimum luminance value and maximum brightness value on three color components;
Color adjusting unit, for according to minimum luminance value of the image after the processing on three color components, maximum Brightness value of each pixel on three color components in brightness value and image to be processed adjusts the figure to be processed The color of picture.
6. terminal as claimed in claim 5, which is characterized in that the luminance threshold acquiring unit is specifically used for:
Histogram corresponding to color component in the image to be processed is counted, accumulation histogram distribution function H is obtained (n)=| 1≤x≤N | Ii≤ n |, wherein N indicates the pixel number in image to be processed, IiIndicate image ith pixel point to be processed Brightness value on the color component, H (n) indicate that brightness value of the pixel on the color component is less than numerical value in image to be processed The quantity of the pixel of n;
Pixel in most dark pixel ratio, brightest pixel ratio and described image according to corresponding to the color component respectively Number, is calculated in described image and most dark pixel quantity A corresponding to the color component and brightest pixel quantity B;
Respectively according to equation: Vmin=H-1(A),Vmax=H-1(B), it is corresponding on the color component that described image is calculated Minimum luminance value and maximum brightness value, wherein VminIndicate minimum luminance value, VmaxIndicate maximum brightness value, H-1It is the inverse fortune of H It calculates.
7. terminal as claimed in claim 6, which is characterized in that the color adjusting unit is specifically used for:
If brightness value of some pixel on color component is less than corresponding to the color component most in the image to be processed Brightness value of the pixel on the color component is then adjusted to the minimum luminance value by small brightness value;
If brightness value of some pixel on color component is greater than corresponding to the color component most in the image to be processed Brightness value of the pixel on the color component is then adjusted to the maximum brightness value by big brightness value;
If in the image to be processed brightness value of some pixel on color component with corresponding to the color component most Between small brightness value and maximum brightness value, then brightness of the pixel on the color component is adjusted according to preset output equation Value.
8. terminal as claimed in claim 7, which is characterized in that the preset output equation are as follows: Wherein, QiFor brightness value of the pixel on the color component described in image after processing, m is picture described in image to be processed The number of bits of brightness value of the vegetarian refreshments on the color component.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as Claims 1-4 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as Claims 1-4 of realization the method.
CN201710627195.6A 2017-07-27 2017-07-27 Image color balancing method and device, terminal equipment and readable storage medium Active CN109309826B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710627195.6A CN109309826B (en) 2017-07-27 2017-07-27 Image color balancing method and device, terminal equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710627195.6A CN109309826B (en) 2017-07-27 2017-07-27 Image color balancing method and device, terminal equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN109309826A true CN109309826A (en) 2019-02-05
CN109309826B CN109309826B (en) 2020-11-13

Family

ID=65202639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710627195.6A Active CN109309826B (en) 2017-07-27 2017-07-27 Image color balancing method and device, terminal equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN109309826B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110223217A (en) * 2019-06-11 2019-09-10 长春工程学院 A kind of planar design automatic addition decorative element information processing system and method
CN110796628A (en) * 2019-10-17 2020-02-14 浙江大华技术股份有限公司 Image fusion method and device, shooting device and storage medium
CN111738950A (en) * 2020-06-22 2020-10-02 北京字节跳动网络技术有限公司 Image processing method and device
CN111784590A (en) * 2019-04-29 2020-10-16 北京京东尚科信息技术有限公司 Image processing method, device and system and computer storage medium
CN113965663A (en) * 2020-07-21 2022-01-21 深圳Tcl新技术有限公司 Image quality optimization method, intelligent terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0665696A2 (en) * 1994-01-31 1995-08-02 Hitachi Denshi Kabushiki Kaisha Digital video signal processing device and tv camera device arranged to use it
CN101742285A (en) * 2008-11-11 2010-06-16 北京中星微电子有限公司 Video encoding system and method, and control method and device for regulating code bit width
CN102420997A (en) * 2010-09-28 2012-04-18 承景科技股份有限公司 Image processing method
CN102903086A (en) * 2012-10-17 2013-01-30 北京经纬恒润科技有限公司 Brightness adjustment method and device of image to be spliced
CN105957037A (en) * 2016-05-09 2016-09-21 北京小米移动软件有限公司 Image enhancing method and image enhancing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0665696A2 (en) * 1994-01-31 1995-08-02 Hitachi Denshi Kabushiki Kaisha Digital video signal processing device and tv camera device arranged to use it
CN101742285A (en) * 2008-11-11 2010-06-16 北京中星微电子有限公司 Video encoding system and method, and control method and device for regulating code bit width
CN102420997A (en) * 2010-09-28 2012-04-18 承景科技股份有限公司 Image processing method
CN102903086A (en) * 2012-10-17 2013-01-30 北京经纬恒润科技有限公司 Brightness adjustment method and device of image to be spliced
CN105957037A (en) * 2016-05-09 2016-09-21 北京小米移动软件有限公司 Image enhancing method and image enhancing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111784590A (en) * 2019-04-29 2020-10-16 北京京东尚科信息技术有限公司 Image processing method, device and system and computer storage medium
CN110223217A (en) * 2019-06-11 2019-09-10 长春工程学院 A kind of planar design automatic addition decorative element information processing system and method
CN110796628A (en) * 2019-10-17 2020-02-14 浙江大华技术股份有限公司 Image fusion method and device, shooting device and storage medium
CN110796628B (en) * 2019-10-17 2022-06-07 浙江大华技术股份有限公司 Image fusion method and device, shooting device and storage medium
CN111738950A (en) * 2020-06-22 2020-10-02 北京字节跳动网络技术有限公司 Image processing method and device
CN113965663A (en) * 2020-07-21 2022-01-21 深圳Tcl新技术有限公司 Image quality optimization method, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN109309826B (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN109309826A (en) A kind of image color equalization methods and terminal
JP6483221B2 (en) 3D code generation method
CN105681775B (en) A kind of white balance method and device
CN107358586A (en) A kind of image enchancing method, device and equipment
CN110473242A (en) A kind of texture characteristic extracting method, texture feature extraction device and terminal device
CN108337496A (en) White balancing treatment method, processing unit, processing equipment and storage medium
CN107392078B (en) Method, terminal device and the computer readable storage medium of multi-angle scanning
CN111679736A (en) Method and device for adjusting screen brightness of electronic equipment and terminal equipment
CN105389776B (en) Image scaling techniques
CN108600783A (en) A kind of method of frame rate adjusting, device and terminal device
CN110490204A (en) Image processing method, image processing apparatus and terminal
CN110473249A (en) A kind of control methods, device and the terminal device of web user interface and design original text
CN109215614A (en) A kind of image quality adjusting method, regulating device and terminal device
CN111383178A (en) Image enhancement method and device and terminal equipment
CN110445977A (en) The parameter setting method and terminal device of image-signal processor
CN104715735B (en) A kind of method and apparatus of backlight adjustment
CN108377372B (en) A kind of white balancing treatment method, device, terminal device and storage medium
CN108932703A (en) Image processing method, picture processing unit and terminal device
CN109308690A (en) A kind of brightness of image equalization methods and terminal
CN108922478A (en) A kind of back light brightness regulating method, system and display equipment
CN112634182A (en) Image correction method, device and equipment based on light field and storage medium
CN112489144A (en) Image processing method, image processing apparatus, terminal device, and storage medium
CN109947230A (en) A kind of screen luminance adjustment method of terminal device, device and terminal device
CN110458754A (en) Image generating method and terminal device
CN109388311A (en) A kind of image display method, device and equipment

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 516006 TCL technology building, No.17, Huifeng Third Road, Zhongkai high tech Zone, Huizhou City, Guangdong Province

Applicant after: TCL Technology Group Co.,Ltd.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Development Zone No. nineteen District

Applicant before: TCL RESEARCH AMERICA Inc.

GR01 Patent grant
GR01 Patent grant