CN115797537A - Image rendering method, display device, and storage medium - Google Patents

Image rendering method, display device, and storage medium Download PDF

Info

Publication number
CN115797537A
CN115797537A CN202211467971.8A CN202211467971A CN115797537A CN 115797537 A CN115797537 A CN 115797537A CN 202211467971 A CN202211467971 A CN 202211467971A CN 115797537 A CN115797537 A CN 115797537A
Authority
CN
China
Prior art keywords
image
determining
rendering
resolution
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211467971.8A
Other languages
Chinese (zh)
Inventor
刘贺
邱绪东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN202211467971.8A priority Critical patent/CN115797537A/en
Publication of CN115797537A publication Critical patent/CN115797537A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses an image rendering method, a display device and a storage medium. Wherein, the method comprises the following steps: acquiring a target image frame, and dividing the target image frame into a plurality of image areas; determining a uniformity analysis result corresponding to the image area according to the gray value of the pixel in the image area; determining rendering resolution according to a plurality of uniformity analysis results corresponding to the plurality of image areas; rendering the target image frame according to the rendering resolution. The invention aims to reduce energy consumption while ensuring the display effect in the image rendering process.

Description

Image rendering method, display device, and storage medium
Technical Field
The present invention relates to the field of display device technologies, and in particular, to an image rendering method, a display device, and a storage medium.
Background
When a display device (e.g., a head-mounted display device) plays a video or displays a single frame of image, some displayed contents are complicated, such as a city scene; some of them are simpler, such as large white wall or large night.
However, in the process of playing a video or displaying a single-frame image, no matter the display content is simple or complex, the display device can analyze the display content according to the preset fixed rendering resolution, however, the problem of energy waste can be caused when the rendering resolution is too large when the display content is simple, and the problem of poor display effect can be caused when the rendering resolution is too small when the display content is complex.
Disclosure of Invention
The invention mainly aims to provide an image rendering method, a display device and a storage medium, aiming at reducing energy consumption while ensuring display effect.
In order to achieve the above object, the present invention provides an image rendering method, including the steps of:
acquiring a target image frame, and dividing the target image frame into a plurality of image areas;
determining a uniformity analysis result corresponding to the image area according to the gray value of the pixel in the image area;
determining rendering resolution according to a plurality of uniformity analysis results corresponding to the plurality of image areas;
rendering the target image frame according to the rendering resolution.
Optionally, the uniformity analysis result includes whether the sub-image in the image region is uniform, and the step of determining the uniformity analysis result corresponding to the image region according to the gray-level value of the pixel in the image region includes:
determining a first mean value and a first standard deviation of all gray values corresponding to all pixels in the image area;
determining a corresponding first gray scale interval according to the first mean value and the first standard deviation;
and determining whether the corresponding sub-images are uniform or not according to the gray value of the pixel in the image area and the first gray interval.
Optionally, the step of determining whether the sub-image is uniform according to the gray-scale value of the pixel in the image area and the first gray-scale interval includes:
determining a first statistic amount of a target pixel in the image area, wherein the gray value corresponding to the target pixel is located in the first gray interval;
and determining whether the sub-images are uniform or not according to the first statistical quantity.
Optionally, the step of determining whether the corresponding sub-images are uniform according to the first statistical amount includes:
determining a first proportion of the first statistical quantity in a total number of pixels of the corresponding image area;
when the first occupation ratio is larger than or equal to a first preset occupation ratio, determining that the corresponding sub-images are uniform;
and when the first occupation ratio is smaller than the first preset occupation ratio, determining that the corresponding sub-image is not uniform.
Optionally, the uniformity analysis result includes whether the sub-images in the image area are uniform, and the step of determining the rendering resolution according to the plurality of uniformity analysis results corresponding to the plurality of image areas includes:
determining a second statistical number of target image areas in the plurality of image areas, wherein the uniformity analysis result of the target image areas is that the corresponding sub-images are uniform;
and determining the rendering resolution according to the second statistical quantity.
Optionally, the step of determining the rendering resolution according to the second statistical quantity includes:
determining a second fraction of the second statistical quantity in the total number of the plurality of image regions;
when the second ratio is larger than or equal to a second preset ratio, determining a first rendering resolution as the rendering resolution;
when the second occupation ratio is smaller than the second preset occupation ratio, determining a second rendering resolution as the rendering resolution;
wherein the first rendering resolution is less than the second rendering resolution.
Optionally, before the step of determining that the first rendering resolution is the rendering resolution when the second ratio is greater than or equal to a second preset ratio, the method further includes:
determining a resolution adjustment value according to the gray values of the pixels in the plurality of image areas;
and reducing the second rendering resolution according to the resolution adjustment value to obtain the first rendering resolution.
Optionally, the step of determining a resolution adjustment value according to the gray-scale values of the pixels in the plurality of image regions includes:
determining a first average value corresponding to each image area, wherein the first average value is the average value of all gray values corresponding to all pixels in the image area;
determining the mean value of all the first mean values as a second mean value, and determining the standard deviation of all the first mean values as a second standard deviation;
determining a second gray scale interval according to the second mean value and the second standard deviation;
and determining the resolution adjustment value according to the second average value and the second gray scale interval.
Optionally, the step of determining the resolution adjustment value according to the second mean and the second gray scale interval includes:
determining a third statistical number of the second means within the second gray scale interval among all the second means;
determining a third fraction of the third statistical quantity in the total number of the second means;
and determining the resolution adjustment value according to the third ratio, wherein the resolution adjustment value is positively correlated with the third ratio.
Optionally, before the step of determining the uniformity analysis result corresponding to the image region according to the gray-scale value of the pixel in the image region, the method further includes:
according to color values of the pixels corresponding to a plurality of preset color channels respectively;
and performing weighted calculation on the color values corresponding to the pixels according to the weight values corresponding to the preset color channels to obtain the gray value of the pixels.
Further, in order to achieve the above object, the present application also proposes a display apparatus comprising: a memory, a processor and an image rendering program stored on the memory and executable on the processor, the image rendering program when executed by the processor implementing the steps of the image rendering method as claimed in any one of the above.
In addition, in order to achieve the above object, the present application also proposes a storage medium having an image rendering program stored thereon, which when executed by a processor implements the steps of the image rendering method according to any one of the above.
The invention provides an image rendering method, which divides a target image frame to be displayed into a plurality of image areas, determines a corresponding uniformity analysis result according to the gray value of a pixel in each image area, and determines rendering resolution according to the uniformity analysis results of the plurality of image areas to render the target image frame, wherein the uniformity analysis results of the plurality of image areas can accurately reflect the uniformity of the display content of the target image frame, the rendering resolution of the target image frame is determined according to the uniformity of the actual display content of the target image frame, the rendering resolution for image frame rendering can be no longer a preset fixed parameter, but can be adjusted according to the complexity of the actual display content of the image, the rendering resolution is prevented from being too large or too small, and the energy consumption is reduced while the display effect is ensured.
Drawings
FIG. 1 is a diagram illustrating a hardware configuration involved in the operation of one embodiment of a display device according to the present invention;
FIG. 2 is a flowchart illustrating an image rendering method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating an image rendering method according to another embodiment of the present invention;
FIG. 4 is a flowchart illustrating an image rendering method according to another embodiment of the present invention;
FIG. 5 is a flowchart illustrating an image rendering method according to still another embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the invention provides display equipment. In this embodiment, the display device is a head-mounted display device (e.g., a virtual reality device, an augmented reality device, etc.). In other embodiments, the display device may also be other types of devices with display functions, such as a television, a tablet computer, a mobile phone, and the like.
In an embodiment of the present invention, referring to fig. 1, a display apparatus includes: a processor 1001 (e.g., a CPU), a memory 1002, a timer 1003, and the like. The components in the control device are connected by a communication bus. The memory 1002 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). The memory 1002 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the device shown in fig. 1 is not intended to be limiting of the device and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, the memory 1002, which is a kind of storage medium, may include therein an image rendering program. In the apparatus shown in fig. 1, the processor 1001 may be configured to call an image rendering program stored in the memory 1002 and perform operations of the steps related to the image rendering method in the following embodiments.
The embodiment of the invention also provides an image rendering method which is applied to the display equipment.
Referring to fig. 2, an embodiment of an image rendering method according to the present application is provided. In this embodiment, the image rendering method includes:
step S10, acquiring a target image frame, and dividing the target image frame into a plurality of image areas;
the target image frame is specifically a single frame image required to be displayed by the display device, and may also be a video frame in a video required to be displayed by the display device.
Each image area includes a plurality of pixels, and the number of pixels in each image area may be the same or different. The number of the plurality of image areas may be a fixed number set in advance, or may be determined according to the image type corresponding to the target image frame (e.g., a landscape image or a city image), and the number of the divided image areas may be different for different image types.
Step S20, determining a uniformity analysis result corresponding to the image area according to the gray value of the pixel in the image area;
and determining a uniformity analysis result corresponding to each image area. The uniformity analysis result represents the uniformity degree of different positions of the sub-images in the corresponding image area or whether the sub-images are uniform.
Specifically, a mean value of the gray values of all pixels in each image area or a plurality of pixels located at the target position in the image area may be determined, and the corresponding uniformity analysis result may be determined according to a deviation value between the gray value of each pixel and the mean value. And/or, a variance, a standard deviation, etc. of all pixels in each image region or a plurality of pixels located at a target location in the image region may be determined, and a corresponding uniformity analysis result may be determined based on the variance standard deviation.
Step S30, determining rendering resolution according to a plurality of uniformity analysis results corresponding to the plurality of image areas;
specifically, an overall uniformity analysis result corresponding to the target image frame may be determined according to the plurality of uniformity analysis results, and the rendering resolution may be determined according to the overall uniformity analysis result.
In addition, a characterization value corresponding to each uniformity analysis result in the plurality of uniformity analysis results can be determined, different results correspond to different characterization values, and the rendering resolution can be obtained through calculation according to the plurality of characterization values.
And S40, rendering the target image frame according to the rendering resolution.
The embodiment of the invention provides an image rendering method, which divides a target image frame to be displayed into a plurality of image areas, determines a corresponding uniformity analysis result according to the gray value of a pixel in each image area, and determines rendering resolution according to the uniformity analysis results of the plurality of image areas to render the target image frame, wherein the uniformity analysis results of the plurality of image areas can accurately reflect the uniformity of the display content of the target image frame, the rendering resolution of the target image frame is determined according to the uniformity of the actual display content of the target image frame, the rendering resolution for image frame rendering can be no longer a preset fixed parameter, but can be adjusted according to the complexity of the actual display content of the image frame, the rendering resolution is favorably prevented from being too large or too small, and the energy consumption is reduced while the display effect is ensured.
Further, based on the above embodiment, another embodiment of the image rendering method of the present application is provided. In the present embodiment, referring to fig. 3, step S20 includes:
step S21, determining a first mean value and a first standard deviation of all gray values corresponding to all pixels in the image area;
each image area has a corresponding first mean and a first standard deviation, respectively.
S22, determining a corresponding first gray scale interval according to the first mean value and the first standard deviation;
the first gray scale interval represents the allowable range of pixel gray scale values when the sub-images in the image area are uniform.
In this embodiment, an adjustment value is determined according to the first standard deviation, an interval critical value (a maximum critical value and/or a minimum critical value) of the first gray scale interval is obtained by adjusting the first mean value according to the adjustment value, and an interval range of the gray scale value defined by the interval critical value is used as the first gray scale interval. Specifically, the maximum critical value and the minimum critical value of the first gray scale interval are obtained after the first average value is adjusted according to the adjustment value, and a set of all gray scale values between the maximum critical value and the minimum critical value is determined as the first gray scale interval.
Specifically, in this embodiment, a preset multiple (greater than 1, which may be an integer multiple or a non-integer multiple) of the first standard deviation is used as the adjustment value, and in other embodiments, the first standard deviation may also be directly used as the adjustment value.
In this embodiment, the adjustment value is an adjustment range, a difference value between the first average value and the adjustment range is used as a minimum critical value of the first gray scale interval, and a sum value of the first average value and the adjustment range is used as a maximum critical value of the first gray scale interval.
For example, the first mean value is μ 1 The first standard deviation is σ 1 Then the first gray scale interval is [ mu ] 1 -3σ 11 +3σ 1 ]。
And S23, determining whether the corresponding sub-images are uniform or not according to the gray value of the pixel in the image area and the first gray interval.
Specifically, it is determined whether the gray value of each pixel in all pixels in the image area or the multiple pixels at the target position are located in the corresponding first gray scale interval, multiple determination results are obtained, and it is determined whether the corresponding sub-images are uniform according to the multiple determination results.
In addition, the magnitude relationship or the number relationship (for example, a difference value and the like) between the gray value of each pixel in all the pixels in the image area or the gray value of the plurality of pixels corresponding to the target position and the critical value of the first gray scale interval can be determined, a plurality of identification results are obtained, and whether the corresponding sub-images are uniform or not is determined according to the plurality of identification results.
In this embodiment, the average value and the standard deviation of the gray value of the pixel in the image area are analyzed, and the gray range of the image when the image is uniform is represented based on the first gray interval determined by the average value and the standard deviation, so that whether the corresponding sub-image is uniform or not can be accurately determined by the gray value of the pixel in the image area and the first gray interval, which is beneficial to improving the accuracy of the uniformity analysis result of each image area, further improving the accuracy of the rendering resolution determined subsequently, and further ensuring the display effect and reducing the energy consumption.
Further, in the present embodiment, step S23 includes: determining a first statistic amount of a target pixel in the image area, wherein the gray value corresponding to the target pixel is located in the first gray interval; and determining whether the corresponding sub-images are uniform or not according to the first statistical quantity.
Specifically, whether the gray value of each pixel in the image area is located in a first gray interval is determined, a judgment result corresponding to each pixel is obtained, and the total number of judgment results with yes results in all the judgment results is counted to serve as a first statistical number.
In this embodiment, a first ratio of the first statistical quantity to the total number of pixels of the corresponding image area is determined; when the first occupation ratio is larger than or equal to a first preset occupation ratio, determining that the corresponding sub-images are uniform; and when the first occupation ratio is smaller than the first preset occupation ratio, determining that the corresponding sub-image is not uniform. In this embodiment, the first predetermined ratio is greater than or equal to 65% and less than 100%, for example, the first predetermined ratio is 70%, 80%, 90%, and the like. The first preset ratio may be a fixed parameter set in advance, a parameter determined by setting a parameter for the user, or a parameter determined according to a display mode (e.g., whether the display mode is a see-through mode, etc.) of the head-mounted display device.
In other embodiments, when the first statistical number is greater than or equal to the preset number, it may be determined that the corresponding sub-images are uniform; and when the first statistic amount is less than the preset amount, determining the corresponding sub-image nonuniformity.
In this embodiment, the first statistical quantity may accurately reflect a condition of pixels with smaller gray scale values in the image region, a larger first statistical quantity indicates a larger number of pixels with smaller gray scale values in the image region, and a smaller first statistical quantity indicates a larger number of pixels with larger gray scale values in the image region, and the corresponding sub-image may be considered to be more uneven, so that whether the sub-image in the corresponding image region is even or not may be accurately reflected through the first statistical quantity, so as to further improve accuracy of a uniformity analysis result of the corresponding image region. The first preset ratio is used as a critical value for distinguishing whether the sub-images in the image area are uniform, and the uniformity analysis result of the image area can be accurately determined by comparing the first ratio with the first preset ratio.
Further, based on any one of the above embodiments, a further embodiment of the image rendering method of the present application is provided. In this embodiment, the uniformity analysis result includes whether the sub-image in the image area is uniform, and referring to fig. 4, the step S30 includes:
step S31, determining a second statistical number of target image areas in the plurality of image areas, wherein the uniformity analysis result of the target image areas is that the corresponding sub-images are uniform;
specifically, the total number of image regions in which the uniformity analysis result is that the corresponding sub-image is uniform in all the image regions is counted as a second statistical number.
And step S32, determining the rendering resolution according to the second statistical quantity.
The different second statistical quantities correspond to different rendering resolutions, and the rendering resolutions are negatively correlated with the second statistical quantities. Specifically, a corresponding relationship between the second statistical quantity and the rendering resolution may be established in advance, and the corresponding relationship may include a calculation relationship, a mapping relationship, and the like. Based on the correspondence, a rendering resolution corresponding to the current second statistical quantity may be determined.
Specifically, the interval where the second statistical quantity is located may be determined, and the preset rendering resolution associated with the interval is used as the rendering resolution. Or substituting the second statistical quantity into a preset calculation formula to calculate the rendering resolution.
In this embodiment, a second fraction of the second statistical number in the total number of the plurality of image regions is determined; when the second ratio is larger than or equal to a second preset ratio, determining a first rendering resolution as the rendering resolution; when the second occupation ratio is smaller than the second preset occupation ratio, determining a second rendering resolution as the rendering resolution; wherein the first rendering resolution is less than the second rendering resolution.
In this embodiment, the second predetermined ratio is greater than or equal to 65% and less than 100%, for example, the second predetermined ratio is 70%, 80%, 90%, and the like. The second preset proportion may be a fixed parameter set in advance, a parameter determined by obtaining a parameter set by a user, or a parameter determined according to a display mode (e.g., whether the display mode is a perspective mode, etc.) of the head-mounted display device.
The first rendering resolution and the second rendering resolution may be fixed values set in advance, or may be values determined according to actual image parameters of the target image frame. In this embodiment, the second rendering resolution is a preset fixed value, and the first rendering resolution is a parameter obtained by reducing the second rendering resolution. In other embodiments, the first rendering resolution is a preset fixed value, and the second rendering resolution is a parameter obtained by increasing the first rendering resolution. In the present embodiment, the second rendering resolution is 100%. In other embodiments, the second rendering resolution may also be less than 100%.
In other embodiments, when the second statistical number is greater than or equal to a preset number, the first rendering resolution may be determined as the rendering resolution; and when the second statistical number is smaller than the preset number, determining the second rendering resolution as the rendering resolution.
In this embodiment, the second statistical number may accurately reflect the overall image uniformity of the target image frame, and the rendering resolution is determined according to the second statistical number, which is beneficial to ensuring accurate matching between the image rendering process of the target image frame and the overall uniformity of the target image frame, thereby further ensuring the display quality of the target image frame and reducing energy consumption. The second preset ratio is used as a critical value for distinguishing whether the whole target image frame is uniform, and the magnitude relation between the second ratio and the second preset ratio can accurately reflect the uniform condition of the whole content of the target image frame, so that the accuracy of the subsequently determined rendering resolution is further improved.
Further, based on any of the above embodiments, a further embodiment of the image rendering method of the present application is provided. In this embodiment, referring to fig. 5, before the step of determining that the first rendering resolution is the rendering resolution when the second ratio is greater than or equal to a second preset ratio, the method further includes:
step S01, determining a resolution adjustment value according to the gray values of the pixels in the plurality of image areas;
specifically, a gray characteristic value (e.g., an average value, a maximum gray value, a minimum gray value, or a weighted average value) corresponding to each image area may be determined according to the gray value of the pixel in each image area, and the resolution adjustment value may be determined according to a plurality of gray characteristic values. Specifically, the resolution adjustment value can be calculated by substituting a plurality of gray characteristic values into a preset formula.
Or counting a first number of gray characteristic values meeting a preset condition in the plurality of gray characteristic values, and determining a resolution adjustment value according to the first number. Specifically, the resolution adjustment value may be calculated by substituting the first number into a preset formula, and a size relationship between the first number and a preset threshold may be determined, and the resolution adjustment value may be determined according to the size relationship.
Or, counting a first number of the gray characteristic values satisfying the preset condition and a second number of the gray characteristic values not satisfying the preset condition in the plurality of gray characteristic values, and determining the resolution adjustment value according to the first number and the second number. Specifically, a magnitude relationship or a magnitude relationship (e.g., a difference or a ratio, etc.) between the first quantity and the second quantity may be determined, and the resolution adjustment value may be determined according to the magnitude relationship or the magnitude relationship.
And S02, reducing the second rendering resolution according to the resolution adjustment value to obtain the first rendering resolution.
The resolution adjustment value may be an adjustment magnitude or an adjustment coefficient. For example, when the resolution adjustment value is the adjustment range, the difference between the second rendering resolution and the resolution adjustment value is used as the first rendering resolution.
In this embodiment, the resolution adjustment value is determined according to the gray values of the pixels in the plurality of image areas, so that the actual display content of the first rendering resolution targeted image frame obtained after the second rendering resolution is reduced needs to be accurately matched, the first rendering resolution is not too small or too large, and the accuracy of the first rendering resolution is improved.
Further, in this embodiment, step S01 includes: determining a first average value corresponding to each image area, wherein the first average value is the average value of all gray values corresponding to all pixels in the image area; determining the mean value of all the first mean values as a second mean value, and determining the standard deviation of all the first mean values as a second standard deviation; determining a second gray scale interval according to the second mean value and the second standard deviation; and determining the resolution adjustment value according to the second mean value and the second gray scale interval.
The first mean value here and the first mean value mentioned above refer to the same concept, and when the step S20 mentioned above includes the step S21, the step S01 here may perform using the above result.
The second gray scale interval represents the range allowed by the gray scale mean value of the image area when the target image frame is uniform.
In this embodiment, the adjustment value is determined according to the second standard deviation, the second mean value is adjusted according to the adjustment value to obtain an interval critical value (a maximum critical value and/or a minimum critical value) of the second gray scale interval, and an interval range of the gray scale value correspondingly limited by the interval critical value is used as the second gray scale interval. Specifically, the maximum critical value and the minimum critical value of the second gray scale interval are obtained after the second average value is adjusted according to the adjustment value, and the set of all gray scales between the maximum critical value and the minimum critical value is determined as the second gray scale interval.
Specifically, in this embodiment, a preset multiple (greater than 1, which may be an integer multiple or a non-integer multiple) of the second standard deviation is used as the adjustment value, and in other embodiments, the second standard deviation may also be directly used as the adjustment value.
In this embodiment, the adjustment value is an adjustment range, a difference value between the second average value and the adjustment range is used as a minimum critical value of the second gray scale interval, and a sum value between the second average value and the adjustment range is used as a maximum critical value of the second gray scale interval.
For example, the second mean value is μ 2 The second standard deviation is σ 2 And the second gray scale interval is [ mu ] 2 -3σ 22 +3σ 2 ]。
Specifically, whether all second average values corresponding to the image area or the second average value of the target image area are located in the corresponding second gray scale interval is determined, a plurality of judgment results are obtained, and the resolution adjustment value is determined according to the plurality of judgment results.
In addition, the magnitude relationship or the number relationship (for example, a difference value or the like) between all the second average values corresponding to the image areas or the second average value of the target image area and the critical value of the first gray scale interval may be determined to obtain a plurality of recognition results, and the resolution adjustment value may be determined according to the plurality of recognition results.
In this embodiment, by analyzing the mean value and the standard deviation of the mean value of the grays of the multiple image areas, the grayscale range of the target image frame when the whole target image frame is uniform is represented based on the second grayscale interval determined by the mean value and the standard deviation, so that the uniformity of the whole target image frame can be accurately determined by the second mean value and the first grayscale interval of the image areas, which is beneficial to improving the accuracy of the determined resolution adjustment value and the first rendering resolution determined based on the resolution adjustment value, thereby further improving the accuracy of the subsequently determined rendering resolution, and further reducing energy consumption while ensuring the display effect.
Further, in this embodiment, a third statistical number of the second mean values located in the second gray scale interval in all the second mean values is determined; determining a third fraction of the third statistical quantity in the total number of the second means; and determining the resolution adjustment value according to the third ratio, wherein the resolution adjustment value is positively correlated with the third ratio.
In this embodiment, the resolution adjustment value is obtained by adjusting the preset adjustment value according to the third ratio, and in this embodiment, the preset adjustment value is 50% of the second rendering resolution. Specifically, the product of the third ratio and the preset adjustment value may be used as the resolution adjustment value, and the product of the second rendering resolution and the resolution adjustment value may be used as the first rendering resolution.
In this embodiment, the resolution adjustment value is determined in a manner, so that rendering according to a smaller rendering resolution is facilitated when the video content is uniform, and the rendering resolution can be gradually reduced along with the increase of the complexity of the display content, thereby facilitating the realization of the effective consideration of the display effect and the energy consumption saving.
Further, based on any of the above embodiments, before the step of determining the uniformity analysis result corresponding to the image region according to the gray-scale values of the pixels in the image region, the method further includes: according to color values of the pixels corresponding to a plurality of preset color channels respectively; and performing weighted calculation on the color values corresponding to the pixels according to the weight values corresponding to the preset color channels to obtain the gray value of the pixels.
Specifically, if the target image frame is an RGB image, the plurality of preset color channels are a red channel, a blue channel, and a green channel. Each preset color channel corresponds to a different weight value, and the weight values are parameters adjusted according to a human brightness perception system. And performing weighted average calculation on the color value of each preset color channel according to the weight value to obtain a result which is used as the gray value corresponding to the pixel. Specifically, the gradation value range is [0,255].
In this embodiment, by the above manner, the rendering process can be facilitated to realize color image display, and the display effect and energy consumption saving can be effectively considered.
In addition, an embodiment of the present invention further provides a storage medium, where an image rendering program is stored on the storage medium, and when executed by a processor, the image rendering program implements the relevant steps of any embodiment of the above image rendering method.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above and includes several instructions for enabling a terminal device (which may be a mobile phone, a computer, a server, a display device, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent structures or equivalent processes performed by the present invention or directly or indirectly applied to other related technical fields are also included in the scope of the present invention.

Claims (12)

1. An image rendering method, characterized by comprising the steps of:
acquiring a target image frame, and dividing the target image frame into a plurality of image areas;
determining a uniformity analysis result corresponding to the image area according to the gray value of the pixel in the image area;
determining rendering resolution according to a plurality of uniformity analysis results corresponding to the plurality of image areas;
rendering the target image frame according to the rendering resolution.
2. The image rendering method of claim 1, wherein the uniformity analysis result comprises whether the sub-image is uniform within the image area, and the step of determining the uniformity analysis result corresponding to the image area according to the gray-level values of the pixels in the image area comprises:
determining a first mean value and a first standard deviation of all gray values corresponding to all pixels in the image area;
determining a corresponding first gray scale interval according to the first mean value and the first standard deviation;
and determining whether the corresponding sub-images are uniform or not according to the gray value of the pixel in the image area and the first gray interval.
3. The image rendering method of claim 2, wherein the step of determining whether the sub-image is uniform according to the gray scale value of the pixel in the image area and the first gray scale interval comprises:
determining a first statistic amount of a target pixel in the image area, wherein the gray value corresponding to the target pixel is located in the first gray interval;
and determining whether the corresponding sub-images are uniform or not according to the first statistical quantity.
4. The image rendering method of claim 3, wherein the determining whether the sub-images are uniform according to the first statistical amount comprises:
determining a first proportion of the first statistical quantity in a total number of pixels of the corresponding image area;
when the first occupation ratio is larger than or equal to a first preset occupation ratio, determining that the corresponding sub-images are uniform;
and when the first occupation ratio is smaller than the first preset occupation ratio, determining that the corresponding sub-image is not uniform.
5. The image rendering method of claim 1, wherein the uniformity analysis result comprises whether the sub-images within the image area are uniform, and the determining the rendering resolution according to a plurality of the uniformity analysis results corresponding to the plurality of image areas comprises:
determining a second statistical number of target image areas in the plurality of image areas, wherein the uniformity analysis result of the target image areas is that the corresponding sub-images are uniform;
and determining the rendering resolution according to the second statistical quantity.
6. The image rendering method of claim 5, wherein the step of determining the rendering resolution according to the second statistical quantity comprises:
determining a second fraction of the second statistical quantity in a total number of the plurality of image regions;
when the second ratio is larger than or equal to a second preset ratio, determining a first rendering resolution as the rendering resolution;
when the second occupation ratio is smaller than the second preset occupation ratio, determining a second rendering resolution as the rendering resolution;
wherein the first rendering resolution is less than the second rendering resolution.
7. The image rendering method of claim 6, wherein before the step of determining the first rendering resolution as the rendering resolution when the second ratio is greater than or equal to a second preset ratio, further comprising:
determining a resolution adjustment value according to the gray values of the pixels in the plurality of image areas;
and reducing the second rendering resolution according to the resolution adjustment value to obtain the first rendering resolution.
8. The image rendering method of claim 7, wherein the step of determining a resolution adjustment value based on gray scale values of pixels in the plurality of image regions comprises:
determining a first average value corresponding to each image area, wherein the first average value is the average value of all gray values corresponding to all pixels in the image area;
determining the mean value of all the first mean values as a second mean value, and determining the standard deviation of all the first mean values as a second standard deviation;
determining a second gray scale interval according to the second mean value and the second standard deviation;
and determining the resolution adjustment value according to the second average value and the second gray scale interval.
9. The image rendering method of claim 8, wherein the determining the resolution adjustment value according to the second mean and the second gray scale interval comprises:
determining a third statistical number of the second mean values in the second gray scale interval in all the second mean values;
determining a third fraction of the third statistical quantity in the total number of the second mean values;
and determining the resolution adjustment value according to the third ratio, wherein the resolution adjustment value is positively correlated with the third ratio.
10. The image rendering method of any of claims 1 to 9, wherein the step of determining a homogeneity analysis result for the image region based on gray values of pixels in the image region is preceded by:
according to color values of the pixels corresponding to a plurality of preset color channels respectively;
and performing weighted calculation on the color values corresponding to the pixels according to the weight values corresponding to the preset color channels to obtain the gray value of the pixels.
11. A display device, characterized in that the display device comprises: memory, a processor and an image rendering program stored on the memory and executable on the processor, the image rendering program when executed by the processor implementing the steps of the image rendering method of any of claims 1 to 10.
12. A storage medium having stored thereon an image rendering program which, when executed by a processor, implements the steps of the image rendering method according to any one of claims 1 to 10.
CN202211467971.8A 2022-11-22 2022-11-22 Image rendering method, display device, and storage medium Pending CN115797537A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211467971.8A CN115797537A (en) 2022-11-22 2022-11-22 Image rendering method, display device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211467971.8A CN115797537A (en) 2022-11-22 2022-11-22 Image rendering method, display device, and storage medium

Publications (1)

Publication Number Publication Date
CN115797537A true CN115797537A (en) 2023-03-14

Family

ID=85440156

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211467971.8A Pending CN115797537A (en) 2022-11-22 2022-11-22 Image rendering method, display device, and storage medium

Country Status (1)

Country Link
CN (1) CN115797537A (en)

Similar Documents

Publication Publication Date Title
KR100590529B1 (en) Method and apparatus for enhancing local luminance of image, and computer-readable recording media for storing computer program
US7072507B2 (en) Image processing apparatus and method
US8681880B2 (en) Adaptive dithering during image processing
US20090010538A1 (en) Apparatus and method for automatically computing gamma correction curve
US20020041393A1 (en) Method and apparatus for compressing reproducible color gamut
CN109686342B (en) Image processing method and device
CN111064942B (en) Image processing method and apparatus
CN109637437B (en) Image display control method, device, medium and display screen control system
CN113596573A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN111770322A (en) White balance adjustment method for pixel, display panel and computer readable storage medium
US20160275660A1 (en) Image processing apparatus, image processing system, image processing method, and non-transitory computer readable medium
CN109729333B (en) Color space mapping method, device, computer readable storage medium and system
US20220044369A1 (en) Image processing method, terminal and non-transitory computer-readable storage medium
CN116884359A (en) Adaptive dimming method, device, equipment and storage medium based on picture content
CN109559707B (en) Gamma value processing method and device of display panel and display equipment
CN112435634A (en) Image display method, image display apparatus, and readable storage medium
CN115797537A (en) Image rendering method, display device, and storage medium
CN115236862A (en) Screen uniformity calibration method and device and computer readable storage medium
CN114724522A (en) Method and device for adjusting backlight brightness of display device, display device and medium
US8295539B2 (en) Method and system of immersive sensation enhancement for video sequence displaying
CN114527950A (en) Picture color adjusting method, device, equipment and storage medium
CN114092359A (en) Screen-splash processing method and device and electronic equipment
CN114822444B (en) Compatible display method, device, equipment and readable storage medium
CN113114930B (en) Information display method, device, equipment and medium
CN113132703B (en) Image processing method and apparatus

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