[go: up one dir, main page]

CN110706161A - Image brightness adjusting method, medium, device and apparatus - Google Patents

Image brightness adjusting method, medium, device and apparatus Download PDF

Info

Publication number
CN110706161A
CN110706161A CN201910780181.7A CN201910780181A CN110706161A CN 110706161 A CN110706161 A CN 110706161A CN 201910780181 A CN201910780181 A CN 201910780181A CN 110706161 A CN110706161 A CN 110706161A
Authority
CN
China
Prior art keywords
brightness
image
value
adjusted
adjustment
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
CN201910780181.7A
Other languages
Chinese (zh)
Other versions
CN110706161B (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.)
Manuscript (xiamen) Technology Co Ltd
Original Assignee
Manuscript (xiamen) 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 Manuscript (xiamen) Technology Co Ltd filed Critical Manuscript (xiamen) Technology Co Ltd
Priority to CN201910780181.7A priority Critical patent/CN110706161B/en
Publication of CN110706161A publication Critical patent/CN110706161A/en
Application granted granted Critical
Publication of CN110706161B publication Critical patent/CN110706161B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Television Receiver Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a method, a medium, equipment and a device for adjusting the brightness of an image, wherein the method comprises the following steps: acquiring an image to be adjusted, and analyzing the image to be adjusted to acquire pixel information of the image to be adjusted; acquiring a brightness adjustment instruction, acquiring a corresponding brightness adjustment value according to the brightness adjustment instruction, and calculating a corresponding brightness adjustment coefficient according to the brightness adjustment value; calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information; calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value; adjusting the image to be adjusted according to the final pixel value; on the premise of ensuring the original contrast of the image, the brightness of the adjusted image changes continuously and naturally, and the user experience is improved.

Description

Image brightness adjusting method, medium, device and apparatus
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to a method for adjusting brightness of an image, a computer-readable storage medium, a computer device, and an apparatus for adjusting brightness of an image.
Background
With the development of society, the quality of images is more and more emphasized by people, and therefore people are also more and more interested in adjusting images by image adjusting methods so that the embodiment of the images can meet the needs of the people.
In the related art, when the brightness of an image is adjusted, in order to maintain the contrast of the image, the transition between bright and dark areas of the image after the brightness adjustment is often rigid, which affects the visual effect of the final image and brings poor experience to the user.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above. Therefore, an object of the present invention is to provide a method for adjusting brightness of an image, which can ensure that the brightness of the adjusted image changes continuously and naturally on the premise of ensuring the original contrast of the image, thereby improving user experience.
A second object of the invention is to propose a computer-readable storage medium.
A third object of the invention is to propose a computer device.
A fourth object of the present invention is to provide an image brightness adjusting apparatus.
In order to achieve the above object, a first embodiment of the present invention provides a method for adjusting brightness of an image, including: acquiring an image to be adjusted, and analyzing the image to be adjusted to acquire pixel information of the image to be adjusted; acquiring a brightness adjustment instruction, acquiring a corresponding brightness adjustment value according to the brightness adjustment instruction, and calculating a corresponding brightness adjustment coefficient according to the brightness adjustment value; calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information; calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value; and adjusting the image to be adjusted according to the final pixel value.
According to the brightness adjusting method of the image, firstly, the image to be adjusted is obtained, and the obtained image to be adjusted is analyzed to obtain the pixel information of the image to be adjusted; then, obtaining an adjusting instruction sent by a user, obtaining a corresponding brightness adjusting value according to the adjusting instruction, and calculating a brightness adjusting coefficient according to the brightness adjusting value, so that the brightness adjusting coefficient can be changed according to the brightness adjusting value of the user; then, calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information of the image to be adjusted, and calculating a brightness transition value according to the original pixel of the image to be adjusted, so that the final pixel value of the image to be adjusted is calculated according to the brightness transition value in the following process, and the brightness transition of the final image is more natural; then, according to the pixel information, calculating a final pixel value corresponding to each pixel in the image to be adjusted by the obtained brightness adjustment coefficient and the brightness transition value, and then adjusting the image to be adjusted according to the final pixel value corresponding to each pixel to obtain a final image; therefore, on the premise of ensuring the original contrast of the image, the brightness of the adjusted image changes continuously and naturally, and the user experience is improved.
In addition, the brightness adjusting method for the image proposed by the above embodiment of the present invention may further have the following additional technical features:
optionally, the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
Optionally, if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
Optionally, if the adjustment behavior corresponding to the brightness adjustment value is a brightness reduction adjustment, the brightness transition value is calculated by the following formula:
US=1-(b-0.08)7
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
Optionally, the final pixel value is calculated by the following formula:
B=b*U*US+b*1-US)
wherein, B represents the final pixel value corresponding to the current original pixel value, B represents the original pixel value of any normalized image to be adjusted, U represents the brightness adjustment coefficient, and US represents the brightness transition value.
To achieve the above object, a second aspect of the present invention provides a computer-readable storage medium, on which a brightness adjustment program for an image is stored, the brightness adjustment program for an image, when executed by a processor, implementing the brightness adjustment method for an image as described above.
According to the computer-readable storage medium of the embodiment of the invention, the brightness adjusting program of the image is stored, so that the brightness adjusting program of the image can realize the brightness adjusting method of the image when being executed by the processor, thereby realizing continuous and natural brightness change of the adjusted image on the premise of ensuring the original contrast of the image and improving the user experience.
In order to achieve the above object, a third embodiment of the present invention provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the brightness adjustment method of the image.
According to the computer device provided by the embodiment of the invention, the memory stores the computer program, so that the processor realizes the brightness adjusting method of the image when executing the program, and the brightness of the adjusted image changes continuously and naturally on the premise of ensuring the original contrast of the image, thereby improving the user experience.
In order to achieve the above object, a fourth aspect of the present invention provides an image brightness adjusting apparatus, including: the analysis module is used for acquiring an image to be adjusted and analyzing the image to be adjusted so as to acquire pixel information of the image to be adjusted; the acquisition module is used for acquiring a brightness adjustment instruction and acquiring a corresponding brightness adjustment value according to the brightness adjustment instruction; the first calculation module is used for calculating a corresponding brightness adjustment coefficient according to the brightness adjustment value; the second calculation module is used for calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information; the third calculating module is used for calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjusting coefficient and the brightness transition value; and the adjusting module is used for adjusting the image to be adjusted according to the final pixel value.
According to the brightness adjusting device of the image, an analysis module is arranged to acquire the image to be adjusted and analyze the acquired image to be adjusted so as to acquire pixel information of the image to be adjusted; the setting and obtaining module obtains a brightness adjusting instruction of a user for an image to be adjusted, and obtains a corresponding brightness adjusting value according to the obtained brightness adjusting instruction; setting a first calculation module to calculate a corresponding brightness adjustment coefficient according to the brightness adjustment value; setting a second calculation module to calculate the brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information, and setting a third calculation module to calculate the final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value; the adjustment module is arranged to adjust the image to be adjusted according to the final pixel value, so that the brightness of the adjusted image is continuously and naturally changed on the premise of ensuring the original contrast of the image, and the user experience is improved.
In addition, the brightness adjusting apparatus for an image according to the above embodiment of the present invention may further have the following additional technical features:
optionally, the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
Optionally, if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1-b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
Drawings
FIG. 1 is a flowchart illustrating a method for adjusting brightness of an image according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating a brightness adjustment curve according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a brightness enhancement smoothing curve according to an embodiment of the present invention;
FIG. 4 is a graph illustrating a brightness reduction smoothing curve according to an embodiment of the present invention;
fig. 5 is a block diagram of an image brightness adjusting apparatus according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
In the related art, the brightness of an image is adjusted, and the transition between bright and dark areas is rigid after adjustment, so that the visual effect of the final image is influenced; according to the brightness adjusting method of the image, firstly, the image to be adjusted is obtained, and the obtained image to be adjusted is analyzed to obtain the pixel information of the image to be adjusted; then, obtaining an adjusting instruction sent by a user, obtaining a corresponding brightness adjusting value according to the adjusting instruction, and calculating a brightness adjusting coefficient according to the brightness adjusting value, so that the brightness adjusting coefficient can be changed according to the brightness adjusting value of the user; then, calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information of the image to be adjusted, and calculating a brightness transition value according to the original pixel of the image to be adjusted, so that the final pixel value of the image to be adjusted is calculated according to the brightness transition value in the following process, and the brightness transition of the final image is more natural; then, according to the pixel information, calculating a final pixel value corresponding to each pixel in the image to be adjusted by the obtained brightness adjustment coefficient and the brightness transition value, and then adjusting the image to be adjusted according to the final pixel value corresponding to each pixel to obtain a final image; therefore, on the premise of ensuring the original contrast of the image, the brightness of the adjusted image changes continuously and naturally, and the user experience is improved.
In order to better understand the above technical solutions, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 1, fig. 1 is a flowchart illustrating a method for adjusting brightness of an image according to an embodiment of the invention, as shown in fig. 1, the method for adjusting brightness of an image includes the following steps:
s101, acquiring an image to be adjusted, and analyzing the image to be adjusted to acquire pixel information of the image to be adjusted.
That is, an image that needs to be adjusted is acquired, and after the image to be adjusted is acquired, the image to be adjusted is analyzed to acquire pixel information of the image to be adjusted (for example, a pixel value corresponding to each pixel position in the image to be adjusted).
S102, acquiring a brightness adjusting instruction, acquiring a corresponding brightness adjusting value according to the brightness adjusting instruction, and calculating a corresponding brightness adjusting coefficient according to the brightness adjusting value.
That is to say, a brightness adjustment instruction of a user for an image to be adjusted is obtained, a brightness adjustment value corresponding to the instruction is obtained according to the brightness adjustment instruction sent by the user, and a corresponding brightness adjustment coefficient is calculated according to the brightness adjustment value.
The manner of obtaining the brightness adjustment instruction and obtaining the corresponding brightness adjustment value according to the brightness adjustment instruction may be various.
As an example, a brightness adjustment slider is provided, and initially, the brightness adjustment slider is at a reference position, and when a user slides the brightness adjustment slider to the right, the brightness adjustment behavior at this time is considered as brightness boost adjustment; when the user slides the brightness adjusting slider to the left, the brightness adjusting action at the moment is considered as brightness reduction adjustment; and finally, determining the brightness adjustment value according to the brightness adjustment value and the adjustment behavior, namely brightness increase adjustment or brightness reduction adjustment.
As another example, the preset brightness reference value is 0, then, an adjustment value input by a user is obtained, and when the adjustment value is a positive number, the brightness adjustment behavior at this time is brightness increase adjustment; when the adjustment value is a negative number, the brightness adjustment behavior at the moment is brightness reduction adjustment; thus, the brightness adjustment value may be determined according to the adjustment value input by the user.
The brightness adjustment coefficient may be calculated in various ways.
As an example, the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
As an example, after a brightness adjustment instruction of a user is obtained, performing normalization processing on the brightness adjustment instruction to convert the brightness adjustment instruction into a brightness adjustment value of (-1,1), when the brightness adjustment value is (-1,0), it indicates that the current operation is brightness reduction adjustment, and when the brightness adjustment value is (0,1), it indicates that the current operation is brightness increase adjustment; specifically, when the luminance adjustment value obtained after the conversion is 0.5, the luminance adjustment coefficient is 1.732050808 calculated according to the above formula, and for better explaining the formula, it is explained with reference to fig. 2, and the curve shown in fig. 2 is the luminance adjustment curve corresponding to the formula.
And S103, calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information.
That is to say, the brightness transition value corresponding to each pixel is calculated according to the original pixel value of each pixel in the image to be adjusted, so that the brightness adjustment process is smoothed according to the brightness transition value, and the change of the brightness in the final image is more natural and does not appear to be excessively hard.
There are various ways to calculate the brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information.
In some embodiments, if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1-b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
As an example, when the brightness adjustment value is 0.7, the corresponding adjustment behavior is brightness boost adjustment, and at this time, the brightness transition value may be calculated by the above formula, for example, after any one original pixel value of the image to be adjusted is obtained, normalization processing is performed on the original pixel value to normalize the original pixel value to a value of (0,1), and when the normalized value is 0.4, the brightness transition value is 0.51475032 according to the above formula; to better explain the above formula, fig. 3 is used to illustrate, and the curve shown in fig. 3 is a brightness enhancement smooth curve corresponding to the brightness transition value calculated in the brightness enhancement adjustment process.
In some embodiments, if the adjustment behavior corresponding to the brightness adjustment value is a brightness reduction adjustment, the brightness transition value is calculated by the following formula:
US=1-(b-0.08)7
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
As an example, when the brightness adjustment value is-0.3, the corresponding adjustment behavior is brightness reduction adjustment, and the brightness transition value may be calculated by the above formula, for example, after any one original pixel value of the image to be adjusted is obtained, normalization processing is performed on the original pixel value to normalize the original pixel value to a value of (0,1), and when the normalized value is 0.4, the brightness transition value is 0.998926; to better explain the above formula, fig. 4 is used to illustrate that the curve shown in fig. 4 is a brightness reduction smooth curve corresponding to the brightness transition value calculated in the brightness reduction adjustment process.
And S104, calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value.
That is, the calculation of the final pixel value corresponding to each pixel in the image to be adjusted is performed according to the original pixel value of each pixel in the image to be adjusted, the brightness adjustment coefficient corresponding to the brightness adjustment value obtained by calculation, and the brightness transition value corresponding to each pixel, so as to determine how the image to be adjusted should be adjusted.
As an example, the final pixel value is calculated by the following formula:
B=b*U*US+b*1-US)
wherein, B represents the final pixel value corresponding to the current original pixel value, B represents the original pixel value of any normalized image to be adjusted, U represents the brightness adjustment coefficient, and US represents the brightness transition value.
It can be understood that, under the condition that the brightness adjustment coefficient, the brightness transition value and the original pixel of the image to be adjusted are known, the final pixel value corresponding to the original pixel can be accurately calculated through the above formula.
And S105, adjusting the image to be adjusted according to the final pixel value.
That is, the pixels of the image to be adjusted are adjusted according to the calculated final pixel value of each pixel, so as to complete the brightness adjustment process of the image to be adjusted.
In summary, according to the brightness adjustment method for an image in the embodiment of the present invention, first, an image to be adjusted is obtained, and the obtained image to be adjusted is analyzed to obtain pixel information of the image to be adjusted; then, obtaining an adjusting instruction sent by a user, obtaining a corresponding brightness adjusting value according to the adjusting instruction, and calculating a brightness adjusting coefficient according to the brightness adjusting value, so that the brightness adjusting coefficient can be changed according to the brightness adjusting value of the user; then, calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information of the image to be adjusted, and calculating a brightness transition value according to the original pixel of the image to be adjusted, so that the final pixel value of the image to be adjusted is calculated according to the brightness transition value in the following process, and the brightness transition of the final image is more natural; then, according to the pixel information, calculating a final pixel value corresponding to each pixel in the image to be adjusted by the obtained brightness adjustment coefficient and the brightness transition value, and then adjusting the image to be adjusted according to the final pixel value corresponding to each pixel to obtain a final image; therefore, on the premise of ensuring the original contrast of the image, the brightness of the adjusted image changes continuously and naturally, and the user experience is improved.
In order to achieve the above embodiments, a computer-readable storage medium is provided in an embodiment of a second aspect of the present invention, on which a brightness adjustment program of an image is stored, the brightness adjustment program of the image, when executed by a processor, implementing the brightness adjustment method of the image as described above.
According to the computer-readable storage medium of the embodiment of the invention, the brightness adjusting program of the image is stored, so that the brightness adjusting program of the image can realize the brightness adjusting method of the image when being executed by the processor, thereby realizing continuous and natural brightness change of the adjusted image on the premise of ensuring the original contrast of the image and improving the user experience.
In order to implement the foregoing embodiments, a computer device according to an embodiment of the third aspect of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the processor implements the brightness adjustment method for the image as described above.
According to the computer device provided by the embodiment of the invention, the memory stores the computer program, so that the processor realizes the brightness adjusting method of the image when executing the program, and the brightness of the adjusted image changes continuously and naturally on the premise of ensuring the original contrast of the image, thereby improving the user experience.
In order to achieve the above embodiments, a fourth aspect of the present invention provides a brightness adjustment device for an image, as shown in fig. 5, the brightness adjustment device for an image includes: the system comprises a parsing module 10, an obtaining module 20, a first calculating module 30, a second calculating module 40, a third calculating module 50 and an adjusting module 60.
The analysis module 10 is configured to obtain an image to be adjusted, and analyze the image to be adjusted to obtain pixel information of the image to be adjusted;
the obtaining module 20 is configured to obtain a brightness adjustment instruction, and obtain a corresponding brightness adjustment value according to the brightness adjustment instruction;
the first calculating module 30 is configured to calculate a corresponding brightness adjustment coefficient according to the brightness adjustment value;
the second calculating module 40 is configured to calculate a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information;
the third calculating module 50 is configured to calculate a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient, and the brightness transition value;
the adjusting module 60 is configured to adjust the image to be adjusted according to the final pixel value.
In some embodiments, the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
In some embodiments, if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1-b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
It should be noted that the above description about the brightness adjustment method of the image in fig. 1 is also applicable to the brightness adjustment apparatus of the image, and is not repeated herein.
In summary, according to the brightness adjustment device for an image in the embodiment of the present invention, the analysis module is configured to acquire an image to be adjusted, and analyze the acquired image to be adjusted to acquire pixel information of the image to be adjusted; the setting and obtaining module obtains a brightness adjusting instruction of a user for an image to be adjusted, and obtains a corresponding brightness adjusting value according to the obtained brightness adjusting instruction; setting a first calculation module to calculate a corresponding brightness adjustment coefficient according to the brightness adjustment value; setting a second calculation module to calculate the brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information, and setting a third calculation module to calculate the final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value; the adjustment module is arranged to adjust the image to be adjusted according to the final pixel value, so that the brightness of the adjusted image is continuously and naturally changed on the premise of ensuring the original contrast of the image, and the user experience is improved.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.
In the description of the present invention, it is to be understood that the terms "first", "second" and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, the first feature "on" or "under" the second feature may be directly contacting the first and second features or indirectly contacting the first and second features through an intermediate. Also, a first feature "on," "over," and "above" a second feature may be directly or diagonally above the second feature, or may simply indicate that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature may be directly under or obliquely under the first feature, or may simply mean that the first feature is at a lesser elevation than the second feature.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above should not be understood to necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A method for adjusting brightness of an image is characterized by comprising the following steps:
acquiring an image to be adjusted, and analyzing the image to be adjusted to acquire pixel information of the image to be adjusted;
acquiring a brightness adjustment instruction, acquiring a corresponding brightness adjustment value according to the brightness adjustment instruction, and calculating a corresponding brightness adjustment coefficient according to the brightness adjustment value;
calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information;
calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjustment coefficient and the brightness transition value;
and adjusting the image to be adjusted according to the final pixel value.
2. The method for adjusting brightness of an image according to claim 1, wherein the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
3. The method for adjusting brightness of an image according to claim 1 or 2, wherein if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1-b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
4. The method for adjusting brightness of an image according to claim 3, wherein if the adjustment behavior corresponding to the brightness adjustment value is a brightness reduction adjustment, the brightness transition value is calculated by the following formula:
US=1-(b-0.08)7
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
5. The method for adjusting brightness of an image according to claim 4, wherein the final pixel value is calculated by the following formula:
B=b*U*US+b*(1-US)
wherein, B represents the final pixel value corresponding to the current original pixel value, B represents the original pixel value of any normalized image to be adjusted, U represents the brightness adjustment coefficient, and US represents the brightness transition value.
6. A computer-readable storage medium, on which a brightness adjustment program of an image is stored, the brightness adjustment program of the image implementing a brightness adjustment method of an image according to any one of claims 1 to 5 when executed by a processor.
7. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor, when executing the program, implements a method of brightness adjustment of an image as claimed in any one of claims 1 to 5.
8. An apparatus for adjusting brightness of an image, comprising:
the analysis module is used for acquiring an image to be adjusted and analyzing the image to be adjusted so as to acquire pixel information of the image to be adjusted;
the acquisition module is used for acquiring a brightness adjustment instruction and acquiring a corresponding brightness adjustment value according to the brightness adjustment instruction;
the first calculation module is used for calculating a corresponding brightness adjustment coefficient according to the brightness adjustment value;
the second calculation module is used for calculating a brightness transition value corresponding to each pixel in the image to be adjusted according to the pixel information;
the third calculating module is used for calculating a final pixel value corresponding to each pixel in the image to be adjusted according to the pixel information, the brightness adjusting coefficient and the brightness transition value;
and the adjusting module is used for adjusting the image to be adjusted according to the final pixel value.
9. The apparatus for adjusting brightness of an image according to claim 8, wherein the brightness adjustment coefficient is calculated by the following formula:
U=3a
where U denotes a luminance adjustment coefficient and a denotes a luminance adjustment value.
10. The apparatus for adjusting brightness of an image according to claim 8 or 9, wherein if the adjustment behavior corresponding to the brightness adjustment value is brightness boost adjustment, the brightness transition value is calculated by the following formula:
US=(1-b)1.3
wherein US represents a luminance transition value, and b represents an original pixel value of any normalized image to be adjusted.
CN201910780181.7A 2019-08-22 2019-08-22 Image brightness adjusting method, medium, device and apparatus Active CN110706161B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910780181.7A CN110706161B (en) 2019-08-22 2019-08-22 Image brightness adjusting method, medium, device and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910780181.7A CN110706161B (en) 2019-08-22 2019-08-22 Image brightness adjusting method, medium, device and apparatus

Publications (2)

Publication Number Publication Date
CN110706161A true CN110706161A (en) 2020-01-17
CN110706161B CN110706161B (en) 2022-07-19

Family

ID=69193772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910780181.7A Active CN110706161B (en) 2019-08-22 2019-08-22 Image brightness adjusting method, medium, device and apparatus

Country Status (1)

Country Link
CN (1) CN110706161B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861903A (en) * 2020-06-12 2020-10-30 成都数之联科技有限公司 Brightness self-adaptive image enhancement method and system
CN112348761A (en) * 2020-11-30 2021-02-09 广州绿怡信息科技有限公司 Equipment appearance image brightness adjusting method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080123984A1 (en) * 2006-11-29 2008-05-29 Ipera Technology, Inc. System and method for efficiently enhancing videos and images
CN102244713A (en) * 2010-05-13 2011-11-16 鸿富锦精密工业(深圳)有限公司 Image processing device and method
CN105472228A (en) * 2014-06-27 2016-04-06 小米科技有限责任公司 Image processing method, image processing device and terminal
CN108961175A (en) * 2018-06-06 2018-12-07 平安科技(深圳)有限公司 Face luminance regulating method, device, computer equipment and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080123984A1 (en) * 2006-11-29 2008-05-29 Ipera Technology, Inc. System and method for efficiently enhancing videos and images
CN102244713A (en) * 2010-05-13 2011-11-16 鸿富锦精密工业(深圳)有限公司 Image processing device and method
CN105472228A (en) * 2014-06-27 2016-04-06 小米科技有限责任公司 Image processing method, image processing device and terminal
CN108961175A (en) * 2018-06-06 2018-12-07 平安科技(深圳)有限公司 Face luminance regulating method, device, computer equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李旭东: "《抗亮度和对比度攻击的DCT域图像数字水印算法》", 《计算机软件及计算机应用》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111861903A (en) * 2020-06-12 2020-10-30 成都数之联科技有限公司 Brightness self-adaptive image enhancement method and system
CN112348761A (en) * 2020-11-30 2021-02-09 广州绿怡信息科技有限公司 Equipment appearance image brightness adjusting method and device
CN112348761B (en) * 2020-11-30 2024-04-26 广州绿怡信息科技有限公司 Equipment appearance image brightness adjusting method and device

Also Published As

Publication number Publication date
CN110706161B (en) 2022-07-19

Similar Documents

Publication Publication Date Title
CN111031346B (en) A method and device for enhancing video quality
Ma et al. Perceptual quality assessment for multi-exposure image fusion
JP5726914B2 (en) Parameter interpolation for high dynamic range video tone mapping
CN102129693B (en) Image vision significance calculation method based on color histogram and global contrast
KR102567860B1 (en) Improved inverse tone mapping method and corresponding device
EP3491620B1 (en) Real-time adaptive shadow and highlight enhancement
WO2012170462A2 (en) Automatic exposure correction of images
CN112200736B (en) Image processing method based on reinforcement learning and model training method and device
Que et al. Exposure measurement and fusion via adaptive multiscale edge-preserving smoothing
KR101846743B1 (en) Objective quality assessment method and apparatus for tone mapped images
CN111046893B (en) Image similarity determining method and device, image processing method and device
CN103400367A (en) No-reference blurred image quality evaluation method
CN112669429A (en) Image distortion rendering method and device
CN110706161B (en) Image brightness adjusting method, medium, device and apparatus
Guthier et al. Flicker reduction in tone mapped high dynamic range video
CN112183224A (en) Model training method for image recognition, image recognition method and device
CN113284198A (en) Automatic image color matching method and device
Feng et al. Low-light image enhancement algorithm based on an atmospheric physical model
Gunawan et al. A review on high dynamic range (HDR) image quality assessment
Banić et al. Puma: A high-quality retinex-based tone mapping operator
CN111311584B (en) Video quality evaluation method and device, electronic equipment and readable medium
CN110874824B (en) Image restoration method and device
EP2564592A1 (en) Method and apparatus for measuring video quality using at least one semi -supervised learning regressor for mean observer score prediction
CN111127337B (en) Image local area highlight adjusting method, medium, equipment and device
Ortiz-Jaramillo et al. Content-aware contrast ratio measure for images

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