[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN112738492B - Image frame display method and device, electronic equipment and storage medium - Google Patents

Image frame display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112738492B
CN112738492B CN202011545986.2A CN202011545986A CN112738492B CN 112738492 B CN112738492 B CN 112738492B CN 202011545986 A CN202011545986 A CN 202011545986A CN 112738492 B CN112738492 B CN 112738492B
Authority
CN
China
Prior art keywords
component
image frame
matrix
target
pixel point
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.)
Active
Application number
CN202011545986.2A
Other languages
Chinese (zh)
Other versions
CN112738492A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN202011545986.2A priority Critical patent/CN112738492B/en
Publication of CN112738492A publication Critical patent/CN112738492A/en
Application granted granted Critical
Publication of CN112738492B publication Critical patent/CN112738492B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/646Circuits for processing colour signals for image enhancement, e.g. vertical detail restoration, cross-colour elimination, contour correction, chrominance trapping filters
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/67Circuits for processing colour signals for matrixing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase

Landscapes

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

Abstract

The application provides an image frame display method, an image frame display device, an electronic device and a storage medium, wherein the image frame display method comprises the following steps: dividing a current image frame to be displayed into at least one image block; performing appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; determining a corresponding approximate value for a decimal part in an original mapping value of each component of each pixel point; determining a target jitter matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; for each component of each pixel point of each image block, correcting an integer part in an original mapping value of the component according to an approximate value corresponding to a decimal part in the original mapping value of the component and a target jitter matrix corresponding to the component; and displaying the image frame based on the integer part of each corrected component of each pixel point in the image frame. By using the method provided by the application, the display precision of the image frame can be improved.

Description

Image frame display method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of image processing, and in particular, to an image frame display method and apparatus, an electronic device, and a storage medium.
Background
In the existing image frame display technology, after receiving an image frame, an electronic device needs to perform designated mapping on each component of each pixel point of each image frame to obtain an original mapping value of each component of each pixel point, and the brightness of an LED lamp corresponding to each pixel point is determined through the original mapping value of each component of each pixel point, so that the image frame is displayed.
However, the original mapping value corresponding to each component of the pixel point includes an integer part and a decimal part, and the existing electronic device ignores the decimal part and displays the original image frame only through the integer part of the original mapping value corresponding to the pixel point, so that the displayed image frame has a large difference from the original image frame.
Disclosure of Invention
In view of this, the present application provides an image frame display method, an image frame display apparatus, an electronic device, and a storage medium, which are used to improve the display accuracy of an image frame.
Specifically, the method is realized through the following technical scheme:
according to a first aspect of the present application, there is provided an image frame display method applied to an electronic device, including:
dividing a current image frame to be displayed into at least one image block;
respectively carrying out appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a decimal part, and each component comprises an R component, a G component and a B component;
determining corresponding approximate values for the fractional part of the original mapping value of each component of each pixel point, wherein the approximate value is 1/2 r Integer multiples of;
determining a target dither matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; for each component of each pixel point of each image block, correcting an integer part in an original mapping value of the component according to an approximate value corresponding to a fractional part in the original mapping value of the component and a target jitter matrix corresponding to the component; displaying the image frame based on the corrected integer part in the original mapping value of each component of each pixel point in the image frame;
where r is the precision of the fractional part of the original mapping value indicating the processing supported by the electronic device.
Optionally, the determining a target jitter matrix set corresponding to the image frame includes:
aiming at each component, obtaining an initial jitter matrix corresponding to the component;
generating a random number corresponding to the image frame within a preset random number range;
and performing first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component.
Optionally, the obtaining an initial jitter matrix corresponding to the component includes:
performing r/2-1 times of iteration on a preset basic matrix corresponding to the component according to a preset iteration rule;
and obtaining an initial jitter matrix corresponding to the component based on the iterated basic matrix.
Optionally, the preset random number range is [1,2 ] r -1];
2 in succession r The random numbers corresponding to different image frames are different.
Optionally, the determining a target jitter matrix set corresponding to the image frame includes:
acquiring a target jitter matrix set corresponding to a previous image frame of the current image frame, wherein the target jitter matrix set corresponding to the previous image frame comprises target jitter matrices corresponding to the components;
and aiming at each component, performing second specified operation on the obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a jitter matrix corresponding to the component.
Optionally, the modifying the elements in the reference dither matrix includes:
for each element in the reference dither matrix, if the element is less than or equal to 2 r If not, the element is added to 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
Optionally, the correcting, for each component of each pixel point, an integer part in the original mapping value of the component according to an approximate value corresponding to a fractional part in the original mapping value of the component and a dither matrix corresponding to the component includes:
and aiming at each component of each pixel point in each image block, if the approximate value corresponding to the decimal part in the original mapping value of the component is larger than the element at the corresponding position in the target dither matrix corresponding to the component, and the position corresponds to the position of the pixel point in the image block, increasing the integer part in the original mapping value of the component by a preset value, and otherwise, maintaining the integer part in the original mapping value of the component unchanged.
Optionally, the displaying the image frame based on the integer part after the correction of each component of the pixel point in the image frame includes:
and determining the brightness of the LED lamp corresponding to each pixel point in the image frame based on the integer part of each component of each pixel point in the image frame after correction so as to display the image frame.
Optionally, the size of the image block is 2 r/2 ×2 r/2
The size of the target jitter matrix corresponding to each component is 2 r/2 ×2 r/2
According to a second aspect of the present application, there is provided an image frame display apparatus applied to an electronic device, comprising:
the image display device comprises a dividing unit, a display unit and a display unit, wherein the dividing unit is used for dividing a current image frame to be displayed into at least one image block;
the mapping unit is used for respectively carrying out appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a decimal part, and each component comprises an R component, a G component and a B component;
a determining unit, configured to determine a corresponding approximate value for a fractional part in an original mapping value of each component of each pixel point, where the approximate value is 1/2 r Integer multiples of;
a correction unit for determining a target dither matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; for each component of each pixel point of each image block, correcting an integer part in an original mapping value of the component according to an approximate value corresponding to a fractional part in the original mapping value of the component and a target jitter matrix corresponding to the component; displaying the image frame based on the corrected integer part in the original mapping value of each component of each pixel point in the image frame;
where r is the precision of the fractional part of the original mapping value indicating the processing supported by the electronic device.
Optionally, the correcting unit is configured to, when determining a target jitter matrix set corresponding to the image frame, obtain, for each component, an initial jitter matrix corresponding to the component; generating a random number corresponding to the image frame in a preset random number range; performing first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component;
the correcting unit is used for performing r/2-1 times of iteration on a preset basic matrix corresponding to the component according to a preset iteration rule when the initial jitter matrix corresponding to the component is obtained; based on the iterated basic matrix, obtaining an initial jitter matrix corresponding to the component;
the preset random number range is [1,2 ] r -1](ii) a2 in succession r The random numbers corresponding to different image frames are different;
the correcting unit is configured to, when determining a target jitter matrix set corresponding to the image frame, obtain a target jitter matrix set corresponding to a previous image frame of the current image frame, where the target jitter matrix set corresponding to the previous image frame includes target jitter matrices corresponding to the components; for each component, performing second specified operation on an obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a jitter matrix corresponding to the component;
the correcting unit is used for correcting the elements in the reference dither matrix and aiming at each element in the reference dither matrix if the element is less than or equal to 2 r If not, the element is added to 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
The correcting unit is used for correcting the integer part of each pixel point in each image block when correcting the integer part of each component in the original mapping value of each component according to the approximate value corresponding to the decimal part in the original mapping value of each component and the jitter matrix corresponding to the component, if the approximate value corresponding to the decimal part in the original mapping value of each component is larger than the element at the corresponding position in the target jitter matrix corresponding to the component, and the position corresponds to the position of the pixel point in the image block, the integer part in the original mapping value of each component is increased by a preset value, and otherwise, the integer part in the original mapping value of each component is kept unchanged;
the correction unit is used for determining the brightness of the LED lamp corresponding to each pixel point in the image frame based on the integer part corrected by each component of each pixel point in the image frame when the image frame is displayed based on the integer part corrected by each component of each pixel point in the image frame so as to display the image frame;
the size of the image block is 2 r/2 ×2 r/2 (ii) a The size of the target jitter matrix corresponding to each component is 2 r/2 ×2 r/2
According to a third aspect of the present application, there is provided an electronic device comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor is configured to read the machine executable instruction on the readable storage medium, and execute the instruction to implement the image frame display method.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described image frame display method.
As can be seen from the above description, after determining the original mapping value of each component of each pixel of the current image frame, the electronic device does not ignore the fractional part of the original mapping value of each component of each pixel, but modifies the integer part of the original mapping value of each component of the image frame through the fractional part and the target dither matrix corresponding to each component of the image frame, thereby implementing the distribution of the fractional part to the integer part of different pixels through the target dither matrix, and displaying the image frame through the integer part, thereby implementing the display of the image frame based on the integer part and the fractional part of each component value of each pixel of the image frame, and thereby improving the display accuracy of the image frame.
Drawings
FIG. 1 is a flow chart illustrating a method of displaying an image frame according to an exemplary embodiment of the present application;
FIG. 2 is a schematic diagram of an image frame division as shown in an exemplary embodiment of the present application;
FIG. 3 is a diagram illustrating a hardware configuration of an electronic device according to an exemplary embodiment of the present application;
fig. 4 is a block diagram illustrating an image frame display apparatus according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In the existing image frame display technology, after receiving an image frame, an electronic device needs to perform designated mapping on each component of each pixel point of each image frame to obtain an original mapping value of each component of each pixel point, and the brightness of an LED lamp corresponding to each pixel point is determined through the original mapping value of each component of each pixel point, so that the image frame is displayed.
However, the original mapping value corresponding to each component of the pixel point includes an integer part and a decimal part, and the existing electronic device ignores the decimal part and displays the original image frame only through the integer part of the original mapping value corresponding to the pixel point, so that the displayed image frame has a large difference from the original image frame.
In view of this, in the image frame display method provided by the present application, after determining an original mapping value of each component of each pixel of a current image frame, an electronic device does not ignore a fractional part of the original mapping value of each component of each pixel, but modifies an integer part of the original mapping value of the component of the image frame through the fractional part and a target dither matrix corresponding to the component of the image frame, thereby implementing distribution of the fractional part to integer parts of different pixels through the target dither matrix, and displaying the image frame through the integer part, thereby implementing display of the image frame based on the integer part and the fractional part of each component value of each pixel of the image frame, and thus improving display accuracy of the image frame.
Further, it should be noted that: generally, a color image frame includes at least one pixel, and the pixel value of each pixel is composed of the R component, G component, and B component values of the pixel. In the existing image frame display method, an electronic device receives an image frame in the form of an electrical signal. The binary number of each component (such as R component, G component or B component) of each pixel of the image frame is usually 8 bits, and the image frame in the form of the electrical signal may also be referred to as the original 8-bit image frame.
The electronic device will typically convert the image frames in the form of electrical signals into image frames in the form of optical signals that can drive the LED screen to display through a specified mapping, such as a gamma mapping.
Specifically, the electronic device performs designated mapping on each component of each pixel point in the original 8-bit image frame according to the nbit display precision supported by the electronic device, so as to obtain an original mapping value of each component of each pixel point, wherein the binary digit number of the obtained original mapping value is n.
For example, if the electronic device supports a display accuracy of 12 bits, after the specified mapping, the binary number of the original mapping value of each component of each pixel is 12 bits.
Because the decimal part of the original mapping value of each component of each pixel point is considered when the image frame is displayed, the display precision of the RBit can be increased on the nbit display precision supported by the electronic equipment. The display accuracy of the so-called rbit means that the electronic device can 1/2 r And its integral multiple of the fraction are scattered to the integer part of the pixel, in other words, the accuracy of the fraction part that the electronic device can support to process. That is, 1/2 can be processed because the electronic device can r And integer multiples thereof, so that the display precision of the rbit of the image frame is improved.
For example, when r is 6, the electronic device supports a fraction of processes 1/64, 2/64, 3/64, …, 63/64.
For another example, when r is 4, the electronics support a fraction of the processes 1/16, 2/16, …, 15/16.
As can be seen from the above description, r may indicate the improvement amount of the display accuracy compared to the display accuracy achieved by the prior art display technology, and may also indicate the accuracy of the fractional part of the original mapping value of the process supported by the electronic device.
In addition, r is an integer of 2 or more.
The image frame display method proposed by the present application is described in detail below.
Referring to fig. 1, fig. 1 is a flowchart illustrating an image frame display method according to an exemplary embodiment of the present application, which is applicable to an electronic device, for example, an image display device such as an LED device (e.g., an LED large screen, etc.), and the electronic device is merely exemplary and not limited thereto.
The image frame display method may include the following steps.
Step 101: the electronic equipment divides a current image frame to be displayed into at least one image block;
to improve the rbit display accuracy of an image frame, an electronic device may divide a current image frame into at least one image block such that each image block has a size of 2 r/2 ×2 r/2
Example 1, assuming that r is 6, the size of the image block is 8 × 8.
As shown in fig. 2, fig. 2 shows an image frame with a size of 16 × 16, wherein each small square represents a pixel.
Assume that the image frame is divided into 4 pixel blocks (such as pixel block 1, pixel block 2, pixel block 3, and pixel block 4 in fig. 1), each having a size of 8 × 8.
Step 102: the electronic equipment respectively carries out appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a fractional part, and each component comprises an R component, a G component and a B component.
For each pixel block, the electronic device may input the R component, the G component, and the B component of each pixel point of the pixel block into a designated mapping formula, respectively, to obtain an original mapping value of the R component, an original mapping value of the G component, and an original mapping value of the B component of the pixel point.
Wherein the specified mapping functions to convert the image frames in the form of electrical signals into image frames in the form of optical signals. The specific mapping may be a gamma mapping, and when the specific mapping is a gamma mapping, the gamma mapping formula is as follows:
Figure BDA0002856205950000061
wherein x represents a component of a pixel;
n represents the digit of binary number of each component of each pixel point of the original image frame;
m represents a display accuracy of an image frame supported by the electronic device;
gamma is a preset value, typically 2.8.
For example, assuming that the electronic device supports a display with 12-bit display accuracy, and the number of bits of binary numbers of each component of each pixel in the original image frame is 8, n is 8 and m is 12 in the above gamma formula.
Of course, in practical applications, the above-mentioned specified mapping may be other mapping manners for converting electrical signals into optical signals, and is not specifically limited herein.
In addition, in practical applications, the electronic device may also be configured with a corresponding relationship between each component value and the original mapping value in advance. The electronic device can determine the original mapping value of each component of each pixel point based on the corresponding relationship.
Step 102 will be described in detail below, taking pixel block 1 in example 1 as an example.
It is assumed that the component values of the components of the pixels in the pixel block 1 are the same.
Assuming that the R component, the G component and the B component of each pixel are 5, 3 and 7, the R component matrix corresponding to the pixel block 1 is R1, the G component matrix is G1 and the B component matrix is B1.
Since the pixel block 1 is formed by 8 × 8 pixels, the R component matrix R1 corresponding to the pixel block 1 is an 8 × 8 matrix, the G component matrix G1 is an 8 × 8 matrix, and the B component matrix B1 is an 8 × 8 matrix. This allows each component of each pixel point to correspond to each pixel point. For example, if the pixel at the position of the first row and the first column of the pixel block is pixel 1, the R component of the pixel 1 is the value of the first row and the first column in the matrix R1 (i.e. 5), the G component of the pixel 1 is the value of the first row and the first column in the matrix G1 (i.e. 3), and the B component of the pixel 1 is the value of the first row and the first column in the matrix B1 (i.e. 7).
These three component matrices are shown below:
Figure BDA0002856205950000071
Figure BDA0002856205950000072
Figure BDA0002856205950000073
suppose that the electronic device supports 12-bit display precision, and the number of bits of binary numbers of each component of each pixel point of the original image frame is 8 bits.
For each pixel point, the electronic device may substitute the component value of the R component of the pixel point into the gamma formula to obtain the original mapping value of the R component of the pixel point:
Figure BDA0002856205950000074
the electronic device can substitute the component value of the G component of the pixel point into the gamma formula to obtain the original mapping value of the G component of the pixel point:
Figure BDA0002856205950000075
the electronic device may substitute the component value of the B component of the pixel point into the gamma formula to obtain the original mapping value of the B component of the pixel point:
Figure BDA0002856205950000076
because the component values of the R components of the pixels are the same, the original mapping values of the R components of the pixels in the pixel block 1 are also the same. Since the component values of the B components of the pixels are the same, the original mapping values of the B components of the pixels in the pixel block 1 are also the same. Because the component values of the G components of the pixels are the same, the original mapping values of the G components of the pixels in the pixel block 1 are also the same. As can be seen from the above description, since the original mapping value includes an integer part and a decimal part, the original mapping value of each component of each pixel point can also be represented by an integer matrix and a decimal matrix.
The above example is still used as an example.
The integer part of the original mapping value of each pixel R component of the pixel block 1 is expressed as a matrix R 1int The fractional part is represented as a matrix R 1dec
Figure BDA0002856205950000081
Figure BDA0002856205950000082
The integer part of the original mapping value of each pixel point G component of the pixel block 1 is expressed as a matrix G 1int The fractional part is represented as a matrix G 1dec
Figure BDA0002856205950000083
Figure BDA0002856205950000084
The integer part of the original mapping value of each pixel B component of the pixel block 1 is expressed as a matrix B 1int The fractional part is represented as a matrix B 1dec
Figure BDA0002856205950000085
Figure BDA0002856205950000086
Step 103: the electronic equipment is the decimal in the original mapping value of each component of each pixel pointThe corresponding approximation is determined in part as 1/2 r An integer multiple of.
When the method is implemented, the electronic equipment can be pre-configured with the corresponding relation of the original mapping value decimal part and the approximate value of the original mapping value decimal part. After the electronic device can obtain the original mapping value of a pixel, it can search the approximate value corresponding to the fractional part of the original mapping value in the corresponding relation, so that the approximate value is 1/2 r Integer multiples of.
For example, assuming that r is 6, the electronic device supports display with 12-bit display precision and the original image precision is 8 bits, the corresponding relationship can be shown in table 1.
Component value Fractional part of original mapping value Fractional part approximation
0 0 0
1 0.000748 1/64=0.015625
2 0.005211 2/64=0.03125
3 0.016217 3/64=0.046875
4 0.036292 4/64=0.0625
5 0.067789 5/64=0.078125
6 0.112946 7/64=0.109375
7 0.173908 11/64=0.171875
8 0.252754 16/64=0.25
9 0.351500 22/64=0.34375
10 0.472114 30/64=0.46875
TABLE 1
Of course, in practical applications, the electronic device may also calculate each component of each pixel point by a predetermined algorithmSo that the calculated approximation is 1/2 r Integer multiples of. The calculation method is not particularly limited as long as the calculated approximate value is 1/2 r An integer multiple of this.
Step 103 will be described in detail below, taking the example of step 102 as an example.
As can be seen by the example in step 102:
the decimal part of the original mapping value of the R component of each pixel point of the pixel block 1 is 0.067789, so the electronic device can approximate 0.067789 to obtain 0.078125, as can be seen from table 1, 0.078125 is 1/2 6 (i.e., 1/64) times greater than the total weight of the sample. Therefore, the approximation of the fractional part of the original mapping value of the R component of each pixel of the pixel block 1 can be expressed as R 1deca
The decimal part of the original mapping value of the G component of each pixel point of the pixel block 1 is 0.016217, so the electronic device can approximate 0.016217 to obtain 0.046875, and as can be seen from table 1, 0.046875 is 3 times that of 1/26 (i.e., 1/64). Therefore, the approximate value of the fractional part of the original mapping value of the G component of each pixel point of the pixel block 1 can be expressed as G 1deca
The decimal part of the original mapping value of each pixel point B component of the pixel block 1 is 0.173908, so the electronic device can approximate 0.173908 to obtain 0.171875, and as can be seen from table 1, 0.171875 is 11 times that of 1/26 (i.e., 1/64). Therefore, the approximate value of the decimal part of the original mapping value of the B component of each pixel point of the pixel block 1 can be expressed as B 1deca
Figure BDA0002856205950000091
Figure BDA0002856205950000092
Figure BDA0002856205950000093
Step 104: the electronic device determines a target shake corresponding to the image frameA dynamic matrix set; the target jitter matrix set comprises target jitter matrixes corresponding to the components, and the size of the jitter matrix corresponding to each component is 2 r/2 ×2 r/2
In practical applications, when a plurality of image frames are the same (for example, a still video image such as a computer desktop image), if the target jitter matrices corresponding to each image frame are the same, the electronic device disperses the fractional part of the original mapping value of each component of each pixel point to the integer part of each component of the same pixel point of each image frame, so that the corrected pixel point position of each image frame is the same, and the image display has a stripe effect and a block effect.
In order to avoid the occurrence of the stripe effect and the blocking effect in the image display, it is necessary to make the 2 continuous r The target jitter matrix corresponding to each component of each image frame is different, so the electronic device needs to determine the target jitter matrix corresponding to each component of the image frame
Step 104 will be described in detail below by taking the example of determining a target dithering matrix corresponding to a component of the image frame.
Since the concept of the initial dither matrix may occur when determining the target dither matrix corresponding to each component of the image frame, the following is from both determining the initial dither matrix and determining the target dither matrix for each component of the image frame.
1) Determining an initial dither matrix
In implementation, the electronic device presets 4 basic matrices proposed by limbb, and the basic matrices are as follows:
Figure BDA0002856205950000101
Figure BDA0002856205950000102
Figure BDA0002856205950000103
Figure BDA0002856205950000104
the electronic device may determine a base matrix for each component, e.g., the base matrix determined for the R component is R 1 The fundamental matrix assigned to the G component is G 1 The basic matrix assigned to the B component is B 1
Figure BDA0002856205950000105
Figure BDA0002856205950000106
Figure BDA0002856205950000107
The electronic device may then iterate formula R based on the R component n The fundamental matrix of the R component is iterated (2/R-1). The electronic device may then determine an initial dither matrix for the R component based on the iterated base matrix for the R component.
For example, upon determining, the electronic device may sum 1/2 the base matrix of the iterated R components r And multiplying to obtain an initial jitter matrix of the R component.
Similarly, the electronic device may iterate formula G based on the G component n And (2/r-1) times of iteration is carried out on the basic matrix of the G component, and the initial jitter matrix of the G component is determined based on the iterated basic matrix of the G component.
Similarly, the electronic device may iterate formula B based on the B component n And (2/r-1) times of iteration is carried out on the basic matrix of the B component, and the initial jitter matrix of the B component is determined based on the iterated basic matrix of the B component.
Wherein, the iterative formula of the basic matrix of the R component is as follows:
Figure BDA0002856205950000108
the iterative formula of the fundamental matrix of the G component is:
Figure BDA0002856205950000109
the iterative formula of the fundamental matrix of the B component is:
Figure BDA00028562059500001010
where u is the identity matrix.
The following describes the determination of the initial dither matrix of the R component in detail, taking the R component as an example.
For example, let R be 6, and the basic matrix corresponding to the R component is R 1 The electronic device may perform (2/6-1 ═ 2) iterations on the basis matrix corresponding to the R component based on the iterative formula of the basis matrix of the R component, and may obtain an initial jitter matrix of the R component.
The first iteration of the fundamental matrix for the R component is as follows:
Figure BDA00028562059500001011
the second iteration of the fundamental matrix for the R component is as follows:
Figure BDA0002856205950000111
the electronic device may then sum 1/2 the iterated base matrices 6 Multiplying to obtain an initial jitter matrix R of the R component cs
Figure BDA0002856205950000112
2) Determining a target dither matrix for each component of the image frame
The first method is as follows: for each component, the electronic device can obtain an initial dither matrix corresponding to the component. The electronic equipment can generate random numbers corresponding to the image frames within a preset random number range, perform first specified operation on the initial jitter matrix and the random numbers to obtain a reference jitter matrix, and correct elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component.
The first mode will be described in detail through step a1 to step a 4.
Step A1, for each component, the electronic device can obtain an initial jitter matrix corresponding to the component.
When the method is implemented, the initial dither matrix of the R component, the initial dither matrix corresponding to the B component, and the initial dither matrix corresponding to the G component may be stored in a preset storage space in advance, and the electronic device may read the initial dither matrix of the R component, the initial dither matrix corresponding to the B component, and the initial dither matrix corresponding to the G component from the preset storage space.
Of course, the electronic device may also calculate the initial jitter matrix of the R component, the initial jitter matrix of the B component, and the initial jitter matrix of the G component based on the basic matrices corresponding to the R component, the B component, and the G component by using the above-described iterative method. The specific manner in which the "initial jitter matrix corresponding to the component" can be obtained "is not specifically limited herein.
Step A2: the electronic device can generate a random number corresponding to the image frame within a preset random number range.
In implementation, the electronic device may generate a random number corresponding to the image frame within a preset random number range.
It should be noted that, in order to eliminate the streak effect and the blocking effect of the video image display, it is necessary to make 2 consecutive r The target dithering matrix corresponding to each component of each image frame is different (for example, the target dithering matrix of the R component of the first frame is different from the target dithering matrix of the R component of the second frame), and the target dithering matrix is determined based on the initial dithering matrix and the random number, which is required to be 2 continuous r The random numbers generated for the individual image frames are different.
Thus, the random number range may be [1,2 ] r -1]Continuous 2 of r The random numbers corresponding to different image frames are different.
And A3, the electronic equipment performs first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix.
The first specific operation may be an addition operation, or may be other operations, and the first specific operation is only described as an example and is not particularly limited.
Preferably, the first specified operation is an addition operation, so that when step a3 is implemented, the electronic device may add each element in the initial jitter matrix of the component to the random number to obtain a reference jitter matrix corresponding to the component.
Next, an example of obtaining the R component of the image frame will be described.
For example, assume that the initial jitter matrix corresponding to the R component is R cs The generated random number is 5.
Then the reference matrix corresponding to the R component is R ck Where u is the identity matrix.
Figure BDA0002856205950000121
Step A4: and the electronic equipment corrects the elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component.
When correcting, the electronic equipment aims at each element in the reference jitter matrix, if the element is less than or equal to 2 r If not, the element is added to 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
Wherein the third specified operation may be a remainder operation. That is, the electronic device may associate the element with 2 r The remainder is obtained by division, and the element is updated to the remainder.
For example, let R be 6, and the reference matrix corresponding to the R component is R in the above ck . For r ck If the element is less than 64, the element is maintained unchanged, if the element is greater than 64, the element is divided by 64 to the remainderAnd the element is further compared with the remainder to obtain a jitter matrix R corresponding to the R component of the image frame bayer
Figure BDA0002856205950000122
The following "determining the dither matrix for each component of the image frame" is described in a second manner.
The second method comprises the following steps: and the electronic equipment acquires a target jitter matrix set corresponding to a last image frame of the current image frame, wherein the target jitter matrix set corresponding to the last image frame comprises target jitter matrices corresponding to the components. For each component, the electronic equipment performs second specified operation on the obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and corrects elements in the reference jitter matrix to obtain a jitter matrix corresponding to the component
The second equation is described in detail through step B1 to step B3.
And B1, acquiring a jitter matrix set corresponding to the last image frame of the current image frame, wherein the jitter matrix set corresponding to the last image frame comprises jitter matrices corresponding to the components.
In this embodiment, the target dither matrix corresponding to each component of the first frame image frame is the initial dither matrix of each component.
Assuming that the current image frame is the mth frame image, the electronic device may read the target jitter matrix set of the recorded image frame of the m-1 th frame. The set of target dither matrices includes: and the target jitter matrix corresponding to the R component, the target jitter matrix corresponding to the G component and the target jitter matrix corresponding to the B component of the m-1 th image frame.
And B2, for each component, the electronic equipment performs second specified operation on the acquired target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix.
The second specified operation may be an addition operation or other operations, and is only described as an example, and is not particularly limited thereto.
The preset value is 1, but the preset value may also be other values, which are only illustrated here by way of example and are not specifically limited thereto.
Preferably, the second specified operation may be an addition operation, and the preset value may be 1. In implementing step B2, for each component, the electronic device may compare the target jitter matrix of the component in the previous image frame with 1 to obtain a reference jitter matrix corresponding to the component.
Next, an example of obtaining the R component of the image frame will be described.
For example, assume that the initial jitter matrix corresponding to the R component is R 3 The preset value is 1.
Then the reference matrix corresponding to the R component is R ck Where u is the identity matrix.
Figure BDA0002856205950000131
Step B3: and the electronic equipment corrects the determined elements in the reference jitter matrix of the component to obtain a target jitter matrix corresponding to the component.
When correcting, the electronic equipment aims at each element in the reference jitter matrix, if the element is less than or equal to 2 r If not, the element is added to 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
Wherein the third specified operation may be a remainder operation. That is, the electronic device may associate the element with 2 r The remainder is obtained by dividing, and the element is updated to the remainder.
For example, let R be 6, and the reference matrix corresponding to the R component is R in the above ck . For r ck If the element is greater than 64, the element is divided by 64 to a remainder, and the element is further divided by the remainder to obtain the image frameTarget jitter matrix R corresponding to R component bayer
Figure BDA0002856205950000141
Therefore, the target jitter matrix of each component of the image frame can be obtained, and the target jitter matrix of each component of the image frame forms a target jitter matrix set corresponding to the image frame.
So is a description of step 104, i.e., "the electronic device determines the target set of dither matrices corresponding to the image frame".
Step 105: and the electronic equipment corrects the integer part in the original mapping value of each component according to the approximate value corresponding to the decimal part in the original mapping value of each component and the target jitter matrix corresponding to the component aiming at each component of each pixel point of each image block.
In implementation, for each component of each pixel point in each image block, the electronic device may detect whether an approximate value corresponding to a fractional part in an original mapping value of the component is greater than an element at a corresponding position in a target dither matrix corresponding to the component, where the position corresponds to a position of the pixel point in the image block.
For example, assuming that the pixel block 1 is composed of 8 × 8 pixels, the target dither matrix R corresponding to the R component bayer Also 8 x 8, where each element on the target dither matrix corresponds to each pixel point on the pixel block 1.
Assuming that the pixel point in the first row and the first column in the pixel block 1 is the pixel point 1, the element in the first row and the first column on the target dither matrix corresponds to the pixel point 1.
For each component of the pixel point 1, the electronic device may detect whether an approximate value corresponding to a decimal part in an original mapping value of the component is greater than an element at a first row and a first column position in a target dither matrix corresponding to the component.
In the embodiment of the present application, if the approximate value corresponding to the fractional part in the original mapping value of the component is greater than the element at the corresponding position in the dither matrix corresponding to the component, the integer part in the original mapping value of the component is increased by a preset value.
And if the approximate value corresponding to the fractional part in the original mapping value of the component is less than or equal to the element at the corresponding position in the jitter matrix corresponding to the component, maintaining the integer part in the original mapping value of the component unchanged.
The preset value is a preset value, and the preset value may be 1 or other values, which are only exemplary and not specifically limited herein.
Step 105 will be described in detail below, taking R as 6 and the R component of each pixel in the image block 1 as an example.
As can be seen from the above-described example, the integer part of the original mapping value of the R component of each pixel of the image block 1 is R 1int The approximate value of the decimal part of the original mapping value of the R component of each pixel point of the image block 1 is R 1deca
Figure BDA0002856205950000151
Figure BDA0002856205950000152
Let R be the target dithering matrix corresponding to the R component of the current image frame bayer。
Figure BDA0002856205950000153
The electronic device can detect R 1deca Whether the element at each position in (1) is greater than r bayer The element at that position. If so, then R is 1int Add 1 to the element at that position. If not, keeping R 1int The element at that position is unchanged.
For example, due to R 1deca Is equal to r bayer The element of the first row and the first column in (i.e., 5), then R is maintained 1int First inThe elements of the first column of rows are unchanged.
For another example, due to R 1deca Is greater than r bayer The element of the fourth row and the first column in (i.e., 1), then R is added 1int The element of the fourth row and the first column in (1). And so on until R is corrected 1int Each element of (1).
Corrected R 1int Comprises the following steps:
Figure BDA0002856205950000154
the above description of step 105.
Step 106: the electronic device displays the image frame based on the modified integer portion of the original mapping value of each component of each pixel of the image frame.
From the above steps 101 to 105, the electronic device may obtain the modified integer part of the R component original mapping value, the modified integer part of the G component original mapping value, and the modified integer part of the B component original mapping value of each pixel of the image frame.
In this embodiment, each pixel corresponds to one LED lamp, and the electronic device may determine the brightness of the LED corresponding to the pixel based on the corrected integer part of the R component original mapping value, the corrected integer part of the G component original mapping value, and the corrected integer part of the B component original mapping value of each pixel, so as to display the image frame.
As can be seen from the above description, in the present application, after determining the original mapping value of each component of each pixel of the current image frame, the electronic device does not ignore the fractional part of the original mapping value of each component of each pixel, but allocates the fractional part to the integer part through the target dither matrix corresponding to the component of the image frame, and displays the image frame through the integer part, thereby implementing the image frame display based on the integer part and the fractional part of each component value of each pixel of the image frame, and thus improving the unit display accuracy of the image frame.
On the other hand, in this applicationPlease refer to 2 in succession r The target jitter matrixes corresponding to the components of the image frames are different, so that the stripe effect and the block effect of image display can be eliminated.
Referring to fig. 3, fig. 3 is a hardware structure diagram of an electronic device according to an exemplary embodiment of the present application.
The electronic device includes: a communication interface 301, a processor 302, a machine-readable storage medium 303, and a bus 304; wherein the communication interface 301, the processor 302, and the machine-readable storage medium 303 communicate with each other via a bus 304. The processor 302 may perform the image frame display method described above by reading and executing machine executable instructions in the machine readable storage medium 303 corresponding to the image frame display control logic.
The machine-readable storage medium 303 referred to herein may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and the like. For example, the machine-readable storage medium may be: volatile memory, non-volatile memory, or similar storage media. In particular, the machine-readable storage medium 403 may be a RAM (random Access Memory), a flash Memory, a storage drive (e.g., a hard disk drive), a solid state disk, any type of storage disk (e.g., a compact disk, a DVD, etc.), or similar storage medium, or a combination thereof.
Referring to fig. 4, fig. 4 is a block diagram illustrating an image frame display apparatus according to an exemplary embodiment of the present application. The device is applied to the electronic equipment and comprises:
a dividing unit 401, configured to divide a current image frame to be displayed into at least one image block;
a mapping unit 402, configured to perform designated mapping on each component of each pixel in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a decimal part, and each component comprises an R component, a G component and a B component;
a determining unit 403, configured to determine a corresponding approximate value for a fractional part in the original mapping value of each component of each pixel point, where the approximate value is1/2 r Integer multiples of;
a correction unit 404, configured to determine a target jitter matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; for each component of each pixel point of each image block, correcting an integer part in an original mapping value of the component according to an approximate value corresponding to a fractional part in the original mapping value of the component and a target jitter matrix corresponding to the component; displaying the image frame based on the corrected integer part in the original mapping value of each component of each pixel point in the image frame;
where r is the precision of the fractional part of the original mapping value indicating the processing supported by the electronic device.
Optionally, the correcting unit 404 is configured to, when determining the target jitter matrix set corresponding to the image frame, obtain, for each component, an initial jitter matrix corresponding to the component; generating a random number corresponding to the image frame within a preset random number range; performing first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component;
optionally, the correcting unit 404 is configured to, when obtaining the initial dither matrix corresponding to the component, perform r/2-1 iterations on the preset basic matrix corresponding to the component according to a preset iteration rule; based on the iterated basic matrix, obtaining an initial jitter matrix corresponding to the component;
optionally, the preset random number range is [1,2 ] r -1](ii) a2 in succession r The random numbers corresponding to different image frames are different;
optionally, the correcting unit 404 is configured to, when determining a target jitter matrix set corresponding to the image frame, obtain a target jitter matrix set corresponding to a previous image frame of the current image frame, where the target jitter matrix set corresponding to the previous image frame includes a target jitter matrix corresponding to each component; for each component, performing second specified operation on an obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a jitter matrix corresponding to the component;
optionally, the correcting unit 404 is configured to, when correcting an element in the reference dither matrix, for each element in the reference dither matrix, if the element is less than or equal to 2 r If not, the element is added to 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
Optionally, the correcting unit 404 is configured to, when correcting the integer part in the original mapping value of each image block according to an approximate value corresponding to the fractional part in the original mapping value of each pixel and a dither matrix corresponding to the component, increase the integer part in the original mapping value of the component by a preset value if the approximate value corresponding to the fractional part in the original mapping value of the component is greater than an element at a corresponding position in the target dither matrix corresponding to the component, where the position corresponds to the position of the pixel in the image block, and otherwise, maintain the integer part in the original mapping value of the component unchanged;
optionally, the correcting unit 404 is configured to determine, when the image frame is displayed based on the corrected integer part of each component of the pixel point in the image frame, brightness of the LED lamp corresponding to the pixel point in the image frame based on the corrected integer part of each component of each pixel point in the image frame, so as to display the image frame;
optionally, the size of the image block is 2 r/2 ×2 r/2 (ii) a The size of the target jitter matrix corresponding to each component is 2 r/2 ×2 r/2
Furthermore, the present application also provides a computer-readable storage medium having stored therein a computer program which, when executed by a processor, implements the above-described image frame display method.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (12)

1. An image frame display method, applied to an electronic device, includes:
dividing a current image frame to be displayed into at least one image block;
respectively carrying out appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a decimal part, and each component comprises an R component, a G component and a B component;
determining corresponding approximate values for the fractional part of the original mapping value of each component of each pixel point, wherein the approximate value is 1/2 r Integer multiples of;
determining a target dither matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; aiming at each component of each pixel point of each image block, if an approximate value corresponding to a decimal part in an original mapping value of the component is larger than an element at a corresponding position in a target jitter matrix corresponding to the component, and the position corresponds to the position of the pixel point in the image block, increasing a preset value for an integer part in the original mapping value of the component, and otherwise, maintaining the integer part in the original mapping value of the component unchanged; displaying the image frame based on the corrected integer part in the original mapping value of each component of each pixel point in the image frame;
where r is the precision of the fractional part of the original mapping value indicating the processing supported by the electronic device.
2. The method of claim 1, wherein determining a target set of dither matrices corresponding to the image frame comprises:
aiming at each component, obtaining an initial jitter matrix corresponding to the component;
generating a random number corresponding to the image frame within a preset random number range;
and performing first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component.
3. The method of claim 2, wherein obtaining the initial jitter matrix for the component comprises:
performing r/2-1 times of iteration on a preset basic matrix corresponding to the component according to a preset iteration rule;
and obtaining an initial jitter matrix corresponding to the component based on the iterated basic matrix.
4. The method of claim 2,
the preset random number range is [1,2 ] r -1];
2 in succession r The random numbers corresponding to different image frames are different.
5. The method of claim 1, wherein determining a target set of dither matrices corresponding to the image frame comprises:
acquiring a target jitter matrix set corresponding to a previous image frame of the current image frame, wherein the target jitter matrix set corresponding to the previous image frame comprises target jitter matrices corresponding to the components;
and aiming at each component, performing second specified operation on the obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a jitter matrix corresponding to the component.
6. The method according to claim 2 or 5, wherein said modifying the elements in the reference dither matrix comprises:
for each element in the reference dither matrix, if the element is less than or equal to 2 r Then the element is maintained, otherwise, the element is compared with 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
7. The method of claim 1, wherein displaying the image frame based on the modified integer portion of each component of the pixel points in the image frame comprises:
and determining the brightness of the LED lamp corresponding to each pixel point in the image frame based on the integer part of each component of each pixel point in the image frame after correction so as to display the image frame.
8. The method of claim 1, wherein the size of the image block is 2 r/2 ×2 r/2
The size of the target jitter matrix corresponding to each component is 2 r/2 ×2 r/2
9. An image frame display apparatus, applied to an electronic device, comprising:
the image processing device comprises a dividing unit, a display unit and a display unit, wherein the dividing unit is used for dividing a current image frame to be displayed into at least one image block;
the mapping unit is used for respectively carrying out appointed mapping on each component of each pixel point in each image block to obtain an original mapping value of each component; the original mapping value comprises an integer part and a decimal part, and each component comprises an R component, a G component and a B component;
a determining unit, configured to determine a corresponding approximate value for a fractional part in an original mapping value of each component of each pixel point, where the approximate value is 1/2 r Integer multiples of;
a correction unit for determining a target dither matrix set corresponding to the image frame; the target jitter matrix set comprises target jitter matrixes corresponding to the components; aiming at each component of each pixel point in each image block, if an approximate value corresponding to a decimal part in an original mapping value of the component is larger than an element at a corresponding position in a target jitter matrix corresponding to the component, and the position corresponds to the position of the pixel point in the image block, increasing an integer part in the original mapping value of the component by a preset value, otherwise, maintaining the integer part in the original mapping value of the component unchanged; displaying the image frame based on the corrected integer part in the original mapping value of each component of each pixel point in the image frame;
where r is the precision of the fractional part of the original mapping value indicating the processing supported by the electronic device.
10. The apparatus of claim 9,
the correcting unit is used for obtaining an initial jitter matrix corresponding to each component when determining a target jitter matrix set corresponding to the image frame; generating a random number corresponding to the image frame within a preset random number range; performing first specified operation on the initial jitter matrix and the random number to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component; or, the target dithering matrix set is used for acquiring a target dithering matrix set corresponding to a previous image frame of the current image frame, where the target dithering matrix set corresponding to the previous image frame includes target dithering matrices corresponding to the components; for each component, performing second specified operation on the obtained target jitter matrix corresponding to the component and a preset value to obtain a reference jitter matrix, and correcting elements in the reference jitter matrix to obtain a target jitter matrix corresponding to the component;
the correcting unit is used for performing r/2-1 times of iteration on a preset basic matrix corresponding to the component according to a preset iteration rule when the initial jitter matrix corresponding to the component is obtained; obtaining an initial jitter matrix corresponding to the component based on the iterated basic matrix;
the preset random number range is [1,2 ] r -1](ii) a2 in succession r The random numbers corresponding to different image frames are different;
the correcting unit is used for correcting the elements in the reference dither matrix and aiming at each element in the reference dither matrix if the element is less than or equal to 2 r Then the element is maintained, otherwise, the element is compared with 2 r Performing a third specified operation to obtain an operation result, and updating the element to the obtained operation result, wherein the obtained operation result is less than or equal to 2 r
The correcting unit is used for correcting the integer part of each pixel point in each image block when correcting the integer part of each component in the original mapping value of each component according to the approximate value corresponding to the decimal part in the original mapping value of each component and the jitter matrix corresponding to the component, if the approximate value corresponding to the decimal part in the original mapping value of each component is larger than the element at the corresponding position in the target jitter matrix corresponding to the component, and the position corresponds to the position of the pixel point in the image block, the integer part in the original mapping value of each component is increased by a preset value, and otherwise, the integer part in the original mapping value of each component is kept unchanged;
the correction unit is used for determining the brightness of the LED lamp corresponding to each pixel point in the image frame based on the integer part corrected by each component of each pixel point in the image frame when the image frame is displayed based on the integer part corrected by each component of each pixel point in the image frame so as to display the image frame;
the size of the image block is 2 r/2 ×2 r/2 (ii) a The size of the target jitter matrix corresponding to each component is 2 r/2 ×2 r/2
11. An electronic device, comprising a readable storage medium and a processor;
wherein the readable storage medium is configured to store machine executable instructions;
the processor is configured to read the machine executable instructions on the readable storage medium and execute the instructions to implement the steps of the method of any one of claims 1 to 8.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
CN202011545986.2A 2020-12-23 2020-12-23 Image frame display method and device, electronic equipment and storage medium Active CN112738492B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011545986.2A CN112738492B (en) 2020-12-23 2020-12-23 Image frame display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011545986.2A CN112738492B (en) 2020-12-23 2020-12-23 Image frame display method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112738492A CN112738492A (en) 2021-04-30
CN112738492B true CN112738492B (en) 2022-08-26

Family

ID=75605393

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011545986.2A Active CN112738492B (en) 2020-12-23 2020-12-23 Image frame display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112738492B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590071B (en) * 2021-06-18 2025-01-21 深圳市洲明科技股份有限公司 Image processing method, device, computer equipment and medium based on dithering processing
CN115831042B (en) * 2023-02-10 2023-07-04 南京芯视元电子有限公司 Image display method and system, display driving device, and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950867A (en) * 2004-05-06 2007-04-18 汤姆逊许可证公司 Pixel shift display with minimal nosie
CN101377910A (en) * 2007-08-28 2009-03-04 株式会社东芝 Liquid crystal drive apparatus and liquid crystal display apparatus

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2994631B2 (en) * 1997-12-10 1999-12-27 松下電器産業株式会社 Drive pulse control device for PDP display
JP5026545B2 (en) * 2010-03-30 2012-09-12 シャープ株式会社 Display device, luminance unevenness correction method, correction data creation device, and correction data creation method
TWI514359B (en) * 2013-08-28 2015-12-21 Novatek Microelectronics Corp Lcd device and method for image dithering compensation
CN110473502A (en) * 2018-05-09 2019-11-19 华为技术有限公司 Control method, device and the terminal device of screen intensity
KR102544148B1 (en) * 2018-09-21 2023-06-16 삼성디스플레이 주식회사 Method of generating correction data for display devcie, and display device storing correction data
CN109741279B (en) * 2019-01-04 2021-09-07 Oppo广东移动通信有限公司 Image saturation adjustment method, device, storage medium and terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1950867A (en) * 2004-05-06 2007-04-18 汤姆逊许可证公司 Pixel shift display with minimal nosie
CN101377910A (en) * 2007-08-28 2009-03-04 株式会社东芝 Liquid crystal drive apparatus and liquid crystal display apparatus

Also Published As

Publication number Publication date
CN112738492A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
US11020985B2 (en) Image processing apparatus, image processing method and storage medium
CN112738492B (en) Image frame display method and device, electronic equipment and storage medium
JP4922091B2 (en) Video signal processing device, video signal processing method, and display device
US11250773B2 (en) Gamma correction device for a display device, gamma correction method for a display device, and display device
KR102500625B1 (en) Image processing device, display device having the same, and image processing method of the same
US8121436B2 (en) Methods and systems for image scaling
US8711172B2 (en) Dithering method and apparatus
KR20190052195A (en) Method of compensating for non-uniformity of luminance of a display panel and display device employing the same
US10347220B1 (en) Data compression and decompression method for DeMura table
JP4745107B2 (en) Gamma correction device and display device
KR20160059021A (en) Display panel driving device and display device having the same
CN114827565A (en) Color correction matrix determining method, color correction device and storage medium
US8379041B2 (en) Method for extending duration of a display apparatus having brightness compensation and apparatus realizing the same
CN114283760A (en) Color temperature curve correction method, system, equipment and medium
JP2004140702A (en) Image signal processor, gamma correcting method and display
CN115346463A (en) Image display method and device
JP2016019108A (en) Image processing system, imaging apparatus, image processing method and program
US20160335752A1 (en) Image signal providing apparatus and image signal providing method
US8363278B2 (en) Method and apparatus capable of producing FM halftone dots in high speed
CN115394249B (en) OLED display panel driving method, OLED display panel driving device, electronic equipment and computer storage medium
JP2009081812A (en) Signal processing apparatus and signal processing method
CN109697687B (en) Data processing method, device and storage medium
US11165615B2 (en) Data shifting operation apparatus and method having multiple operation modes
JP2006235325A (en) Method for correcting image persistence phenomenon, spontaneous light emitting device, device and program for correcting image persistence phenomenon
JP6755745B2 (en) Video signal processing method, integrated circuit for video signal processing, and video signal processing device

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