CN112261242B - Image data processing method and device - Google Patents

Image data processing method and device Download PDF

Info

Publication number
CN112261242B
CN112261242B CN202011135695.6A CN202011135695A CN112261242B CN 112261242 B CN112261242 B CN 112261242B CN 202011135695 A CN202011135695 A CN 202011135695A CN 112261242 B CN112261242 B CN 112261242B
Authority
CN
China
Prior art keywords
edge
fillet
coefficient
pixel point
edge coefficient
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
CN202011135695.6A
Other languages
Chinese (zh)
Other versions
CN112261242A (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.)
Hefei Xinying Technology Co ltd
Original Assignee
Hefei Xinying 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 Hefei Xinying Technology Co ltd filed Critical Hefei Xinying Technology Co ltd
Priority to CN202011135695.6A priority Critical patent/CN112261242B/en
Publication of CN112261242A publication Critical patent/CN112261242A/en
Application granted granted Critical
Publication of CN112261242B publication Critical patent/CN112261242B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/40Picture signal circuits
    • H04N1/409Edge or detail enhancement; Noise or error suppression
    • H04N1/4092Edge or detail enhancement
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/20Contour coding, e.g. using detection of edges

Landscapes

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

Abstract

The application provides an image data processing method and device, which are applied to the field of image processing, wherein aiming at a diagonal symmetrical fillet about a middle pixel point, only a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point are stored in a display device, and the fillet edge coefficients corresponding to all the edge pixel points are not stored, so that a third fillet edge coefficient corresponding to an edge pixel point positioned on the second side of the middle pixel point can be determined according to the first fillet edge coefficient and the second fillet edge coefficient. The number of the fillet edge coefficients stored in the display device is small, so that the number of memories for storing the fillet edge coefficients in the display device can be reduced, and the cost is reduced.

Description

Image data processing method and device
Technical Field
The present application relates to the field of image processing, and in particular, to an image data processing method and apparatus.
Background
When there is the fillet at the display device edge, the phenomenon of color cast can appear at the image edge of demonstration for user experience is not good, consequently, needs utilize fillet edge coefficient to handle the image edge, with the phenomenon that reduces the color cast. In the prior art, a common storage manner of the fillet edge coefficient generally stores the corresponding fillet edge coefficient for an edge pixel point to be processed as required, for example: and storing the fillet edge coefficient of each edge pixel point corresponding to the fillet and the number of the fillet edge coefficients of each line in the image. However, when the fillet edge coefficients are stored in this way, if the fillet is large, a large number of fillet edge coefficients need to be stored, which results in a large number of memories for storing the fillet edge coefficients in the display device and a high cost.
Disclosure of Invention
An object of the embodiments of the present application is to provide an image data processing method and apparatus, so as to solve the technical problems of a large number of memories for storing a fillet edge coefficient and a high cost in a display device.
In order to achieve the above purpose, the technical solutions provided in the embodiments of the present application are as follows:
in a first aspect, an embodiment of the present application provides an image data processing method, which is applied to a display device including at least one rounded corner at an edge of a display screen, where a pixel point where the rounded corner is located is an edge pixel point, a pixel point located in the middle of the edge pixel point is a middle pixel point, and the rounded corner is symmetric with respect to a diagonal line of the middle pixel point; the method comprises the following steps: when image data are obtained, obtaining a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point, which are stored in advance; determining a third fillet edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point according to the first fillet edge coefficient and the second fillet edge coefficient; processing the image data using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient. In the above scheme, for the fillet symmetric with respect to the diagonal of the middle pixel point, since only the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored in the display device, and the fillet edge coefficients corresponding to all the edge pixel points are not stored, the third fillet edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point can be determined according to the first fillet edge coefficient and the second fillet edge coefficient. The number of the fillet edge coefficients stored in the display device is small, so that the number of memories for storing the fillet edge coefficients in the display device can be reduced, and the cost is reduced.
In an optional embodiment of the present application, before the obtaining a pre-stored first rounded edge coefficient corresponding to the middle pixel point and a second rounded edge coefficient corresponding to an edge pixel point located on a first side of the middle pixel point, the method further includes: if the fillet is symmetrical about the diagonal, acquiring the first fillet edge coefficient and the second fillet edge coefficient; storing the first and second corner edge coefficients. In the scheme, aiming at the symmetrical fillets of the diagonals of the middle pixel points, in the storage process, the display equipment can only store the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point positioned on the first side of the middle pixel point, and the fillet edge coefficients corresponding to all the edge pixel points are not required to be stored, so that the number of memories for storing the fillet edge coefficients in the display equipment can be reduced, and the cost is reduced.
In an optional embodiment of the present application, the obtaining the second fillet edge coefficient includes: calculating the ratio of the first area to the total area of the pixels in the edge pixels on the first side; the edge pixel point on the first side is divided into two areas with the areas respectively being the first area and the second area by the fillet, and the area corresponding to the first area is located on one side, close to the circle center of the fillet, of the edge pixel point on the first side; determining the ratio as the second fillet edge coefficient. In the scheme, the fillet edge coefficient can be determined according to the ratio of the area enclosed by the fillet and each pixel point to the total area of the pixel points in the edge pixel points, so that the image data is processed, and the phenomenon of edge color cast is reduced.
In an optional embodiment of the present application, the obtaining of a first fillet edge coefficient corresponding to the pre-stored middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point located on a first side of the middle pixel point includes: and sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient. In the above scheme, since only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored, the rounded edge coefficients can be sequentially read according to a preset sequence so as to correspond the rounded edge coefficients to the edge pixel points.
In an optional embodiment of the present application, the sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset order, and respectively determining a corresponding relationship between the middle pixel point and the first rounded edge coefficient and a corresponding relationship between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient includes: sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient; wherein n is an integer greater than 1, and the first fillet edge coefficient corresponds to edge pixel points with the row number of 1 and the column number of 1; if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that edge pixel points corresponding to the a-th fillet edge coefficient are pixel points with the same row number and the row number plus one as the edge pixel points corresponding to the a-1-th fillet edge coefficient; wherein a is an integer less than or equal to n and greater than 1; if the b-th fillet edge coefficient is greater than the b-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the b-th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a. In the above scheme, based on the characteristic that the fillet edge coefficients at the two sides of the middle pixel point are sequentially increased in the row direction or in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
In an optional embodiment of the present application, the determining, according to the first rounded edge coefficient and the second rounded edge coefficient, a third rounded edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point includes: and reading the second fillet edge coefficient according to a sequence opposite to the preset sequence, and determining the third fillet edge coefficient and the corresponding relation between the edge pixel point on the second side and the third fillet edge coefficient according to the second fillet edge coefficient. In the above scheme, since only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored, the third rounded edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point can be sequentially read through the sequence opposite to the preset sequence, so as to correspond the rounded edge coefficient to the edge pixel point.
In an optional embodiment of the present application, the reading the second rounded edge coefficient according to an order reverse to the preset order, and determining, according to the second rounded edge coefficient, the third rounded edge coefficient and a corresponding relationship between the edge pixel point on the second side and the third rounded edge coefficient includes: if the nth fillet edge coefficient is the last fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient, sequentially reading the (n-1) th fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient to the first fillet edge coefficient; if the c-1 th fillet edge coefficient is smaller than the c-1 th fillet edge coefficient, determining that the edge pixel point corresponding to the c-1 th fillet edge coefficient is a pixel point with the same number of rows and the number of columns plus one as the edge pixel point corresponding to the c-1 th fillet edge coefficient; wherein c is an integer less than or equal to n and greater than 1; if the d-1 th fillet edge coefficient is larger than the d-1 th fillet edge coefficient, determining that the edge pixel point corresponding to the d-1 th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the d-1 th fillet edge coefficient; wherein d is an integer less than or equal to n and greater than 1, and d is not equal to c. In the above scheme, based on the characteristic that the fillet edge coefficients at the two sides of the middle pixel point are sequentially increased in the row direction or in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
In an optional embodiment of the application, the processing the image data by using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient includes: and multiplying the fillet edge coefficient corresponding to the edge pixel point with the input gray value corresponding to the edge pixel point to obtain an output gray value. In the above scheme, the round corner edge coefficient may be multiplied by the additional input gray value corresponding to the corresponding edge pixel point to obtain the output gray value, so as to process the image data and reduce the edge color cast.
In a second aspect, an embodiment of the present application provides an image data processing apparatus, which is applied to a display device including at least one rounded corner at an edge of a display screen, where a pixel point where the rounded corner is located is an edge pixel point, a pixel point located in the middle among the edge pixel points is a middle pixel point, and the rounded corner is symmetric with respect to a diagonal of the middle pixel point; the device comprises: the first obtaining module is used for obtaining a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point, which are stored in advance, when the image data is obtained; a first determining module, configured to determine, according to the first rounded edge coefficient and the second rounded edge coefficient, a third rounded edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point; a processing module, configured to process the image data using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient. In the above scheme, for the fillet symmetric with respect to the diagonal of the middle pixel point, since only the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored in the display device, and the fillet edge coefficients corresponding to all the edge pixel points are not stored, the third fillet edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point can be determined according to the first fillet edge coefficient and the second fillet edge coefficient. The number of the fillet edge coefficients stored in the display device is small, so that the number of memories for storing the fillet edge coefficients in the display device can be reduced, and the cost is reduced.
In an optional embodiment of the present application, the apparatus further comprises: a second obtaining module, configured to obtain the first fillet edge coefficient and the second fillet edge coefficient if the fillet is symmetric with respect to the diagonal; a storage module to store the first fillet edge coefficient and the second fillet edge coefficient. In the scheme, aiming at the symmetrical fillets of the diagonals of the middle pixel points, in the storage process, the display equipment can only store the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point positioned on the first side of the middle pixel point, and the fillet edge coefficients corresponding to all the edge pixel points are not required to be stored, so that the number of memories for storing the fillet edge coefficients in the display equipment can be reduced, and the cost is reduced.
In an optional embodiment of the present application, the second obtaining module is further configured to: calculating the ratio of the first area to the total area of the pixel points in the edge pixel points on the first side; the edge pixel point of the first side is divided into two areas with the areas of the first area and the second area by the fillet, and the area corresponding to the first area is positioned on one side, close to the circle center of the fillet, of the edge pixel point of the first side; determining the ratio as the second fillet edge coefficient. In the scheme, the fillet edge coefficient can be determined according to the ratio of the area enclosed by the fillet and each pixel point to the total area of the pixel points in the edge pixel points, so that the image data is processed, and the phenomenon of edge color cast is reduced.
In an optional embodiment of the present application, the first obtaining module is further configured to: and sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient. In the above scheme, since only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored, the rounded edge coefficients can be sequentially read according to a preset sequence so as to correspond the rounded edge coefficients to the edge pixel points.
In an optional embodiment of the present application, the first obtaining module is further configured to: sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient; wherein n is an integer greater than 1, and the first fillet edge coefficient corresponds to edge pixel points with the row number of 1 and the column number of 1; if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the a-th fillet edge coefficient is a pixel point which has the same number of lines and has the number of rows plus one as the edge pixel point corresponding to the a-1-th fillet edge coefficient; wherein a is an integer less than or equal to n and greater than 1; if the b-th fillet edge coefficient is greater than the b-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the b-th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a. In the above scheme, based on the characteristic that the fillet edge coefficients at the two sides of the middle pixel point are sequentially increased in the row direction or in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
In an optional embodiment of the present application, the first determining module is further configured to: and reading the second fillet edge coefficient according to a sequence opposite to the preset sequence, and determining the third fillet edge coefficient and the corresponding relation between the edge pixel point on the second side and the third fillet edge coefficient according to the second fillet edge coefficient. In the above scheme, since only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored, the third rounded edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point can be sequentially read through the sequence opposite to the preset sequence, so as to correspond the rounded edge coefficient to the edge pixel point.
In an optional embodiment of the present application, the first determining module is further configured to: if the nth fillet edge coefficient is the last fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient, sequentially reading the (n-1) th fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient to the first fillet edge coefficient; if the c-th fillet edge coefficient is smaller than the c-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the c-1-th fillet edge coefficient is a pixel point which has the same number of lines and has the number of rows plus one as the edge pixel point corresponding to the c-th fillet edge coefficient; wherein c is an integer less than or equal to n and greater than 1; if the d-1 th fillet edge coefficient is larger than the d-th fillet edge coefficient, determining that edge pixel points corresponding to the d-th fillet edge coefficient are pixel points with the same row number plus one and column number as the row number of the edge pixel points corresponding to the d-1 th fillet edge coefficient; wherein d is an integer less than or equal to n and greater than 1, and d is not equal to c. In the above scheme, based on the characteristic that the fillet edge coefficients at the two sides of the middle pixel point are sequentially increased in the row direction or in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
In an optional embodiment of the present application, the processing module is further configured to: and multiplying the fillet edge coefficient corresponding to the edge pixel point with the input gray value corresponding to the edge pixel point to obtain an output gray value. In the above scheme, the round corner edge coefficient may be multiplied by the additional input gray value corresponding to the corresponding edge pixel point to obtain the output gray value, so as to process the image data and reduce the edge color cast.
In a third aspect, an embodiment of the present application provides a display device, including: a processor, memory, and a bus; the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor being capable of executing the image data processing method as in the first aspect when invoked by the program instructions.
In a fourth aspect, embodiments of the present application provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the image data processing method as in the first aspect.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a block diagram of a display device according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a rounded corner and an edge pixel point provided in the embodiment of the present application;
fig. 3 is a flowchart of a method for storing a fillet edge coefficient according to an embodiment of the present disclosure;
fig. 4 is a flowchart of an image data processing method according to an embodiment of the present application;
fig. 5 is a block diagram of an image data processing apparatus according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a block diagram of a display device according to an embodiment of the present disclosure, where the display device 100 includes: at least one processor 101, at least one communication interface 102, at least one memory 103, and at least one communication bus 104. Wherein, the communication bus 104 is used for implementing direct connection communication of these components, the communication interface 102 is used for communicating signaling or data with other node devices, and the memory 103 stores machine-readable instructions executable by the processor 101. When the display device 100 operates, the processor 101 communicates with the memory 103 through the communication bus 104, and the machine readable instructions are called by the processor 101 to execute the image data processing method provided by the embodiment of the application.
The processor 101 may be an integrated circuit chip having signal processing capabilities. The Processor 101 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also a Digital Signal Processor (DSP), an application specific integrated circuit (ASAC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 103 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
It will be appreciated that the configuration shown in fig. 1 is merely illustrative and that the display device 100 may also include more or fewer components than shown in fig. 1 or have a different configuration than shown in fig. 1. The components shown in fig. 1 may be implemented in hardware, software, or a combination thereof. In the embodiment of the present application, the display device 100 may be, but is not limited to, an entity device such as a desktop computer, a notebook computer, a smart phone, an intelligent wearable device, and a vehicle-mounted device, and may also be a virtual device such as a virtual machine.
It will be appreciated that the display device 100 also includes a display screen, which may be used to display images. The edge of the display screen on the display device 100 provided by the embodiment of the present application includes at least one rounded corner (the rounded corner refers to replacing the original corner with a section of circular arc tangent to both sides of the corner), and because the pixel point where the rounded corner is located is displayed incompletely, the edge of the image may have color cast when the image is displayed on the display screen. Therefore, the embodiment of the present application provides an image data processing method to solve the problem of color cast phenomenon occurring at the edge when the display device 100 displays an image.
The general process for solving the above problems is as follows: for different display devices, storing fillet edge coefficients corresponding to pixel points (for convenience of description, referred to as edge pixel points in the following embodiments) where fillets are located on a display screen in the display devices; reading the stored fillet edge coefficient when the display device displays the image; and processing the image data by using the fillet edge coefficient.
It is to be understood that, when the edge of the display screen includes a plurality of rounded corners, the above-mentioned processes may be sequentially performed for each rounded corner, or may be performed simultaneously, and this is not specifically limited in this embodiment of the application.
It can be seen that, in the above flow, if the stored fillet edge coefficients are more, there are problems that the number of memories required is more, and the corresponding hardware area is larger, thereby increasing the cost; the problems of high complexity and long time consumption of the process of reading and writing the fillet edge coefficient can also exist. Therefore, based on the above analysis, the image data processing provided by the embodiment of the present application can reduce the amount of data stored in the display device to reduce the cost and the complexity of data reading.
It should be noted that the image data processing method provided in the present application can only be implemented on the display device 100 that satisfies certain conditions, where the conditions are as follows: the pixel points positioned in the middle of the edge pixel points are called as middle pixel points, and the round corners at the edge of the display screen are symmetrical about the diagonal lines of the middle pixel points. Referring to fig. 2, fig. 2 is a schematic diagram of a fillet and an edge pixel point provided in an embodiment of the present disclosure, in which an oblique stripe square in fig. 2 represents a middle pixel point, a horizontal stripe square represents an edge pixel point located on an upper side of the middle pixel point, a vertical stripe square represents an edge pixel point located on a lower side of the middle pixel point, and the fillet passes through all of the oblique stripe square, the horizontal stripe square, and the vertical stripe square. It can be seen that the rounded corners are symmetrical about the diagonals of the cross-striped squares, and the number of the cross-striped squares is the same as the number of the vertical striped squares.
It can be understood that, when the edge of the display screen includes a plurality of rounded corners, only one of the rounded corners needs to satisfy the above conditions, and the display device may execute the image data processing method provided in the embodiment of the present application, but only the rounded corner that satisfies the conditions may store the rounded corner edge coefficient by using the rounded corner edge coefficient storage method in the image data processing method provided in the embodiment of the present application, and the rounded corner that does not satisfy the conditions may not use the rounded corner edge coefficient storage method.
In addition, the angle that the fillet corresponds in this application embodiment can be 90 degrees, 60 degrees or 120 degrees etc., and this application embodiment does not do specific restriction to this, only need the fillet satisfy above-mentioned condition can.
First, a method for storing a corner edge coefficient provided in an embodiment of the present application is described below, where the method is applied to a display device 100 that satisfies the above conditions.
Referring to fig. 3, fig. 3 is a flowchart of a fillet edge coefficient storage method according to an embodiment of the present disclosure, where the fillet edge coefficient storage method may include the following steps:
step S301: if the fillet is symmetrical about the diagonal, a first fillet edge coefficient and a second fillet edge coefficient are obtained.
Step S302: the first and second fillet edge coefficients are stored.
In an alternative embodiment, when the rounded corner is symmetrical about the diagonal line, that is, when the display device 100 satisfies the conditions in the above-described embodiment, the rounded corner edge coefficient of the middle pixel point is referred to as a first rounded corner edge coefficient, and the rounded corner edge coefficient (referred to as a second rounded corner edge coefficient) of the edge pixel point located on one side (referred to as a first side) of the middle pixel point is equal to the rounded corner edge coefficient (referred to as a third rounded corner edge coefficient) of the edge pixel point located on the other side (referred to as a second side) of the middle pixel point.
Therefore, in order to reduce the number of data stored in the display device, only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point may be stored, and the third rounded edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point may be determined according to the second rounded edge coefficient based on a symmetric structure. The manner of determination will be described in detail in the following embodiments, and will not be described here for the time being.
It can be understood that, for different rounded corners, there may be a plurality of combinations of the first side and the second side of the middle pixel point, for example: if the circle center of the fillet faces downwards to the right, the first side of the middle pixel point can be the upper side of the fillet, and the second side of the middle pixel point can be the lower side of the fillet; if the circle center of the fillet still faces to the lower right side, the first side of the middle pixel point can also be the lower side of the fillet, and the second side of the middle pixel point can be the upper side of the fillet; if the fillet centre of a circle upwards towards right, then the first side of middle pixel can be fillet upside, the second side of middle pixel can be fillet downside etc. this application embodiment does not do specific restriction to this.
In addition, in the above embodiment, "only store the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point" is an example provided in the embodiment of the present application, and only store the first rounded edge coefficient corresponding to the middle pixel point and the third rounded edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point, and then determine the second rounded edge coefficient according to the third rounded edge coefficient, which is also not specifically limited in this application.
For convenience of description, in subsequent embodiments, the fillet shown in fig. 2 is used as an example for explanation, that is, an angle corresponding to the fillet is 90 degrees, a circle center of the fillet faces downward to the right, an edge pixel point located on an upper side of a middle pixel point is an edge pixel point located on a first side of the middle pixel point, an edge pixel point located on a lower side of the middle pixel point is an edge pixel point located on a second side of the middle pixel point, and a radius of the fillet is a length of nine pixel points.
Therefore, when the fillet is symmetrical about the diagonal, the display device can obtain a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to the edge pixel point on the first side of the middle pixel point, and store the first fillet edge coefficient and the second fillet edge coefficient into the display device, so that the display device can read the prestored fillet edge coefficient to process image data when displaying images.
It should be noted that there are various ways for the display device to obtain the first round edge coefficient and the second round edge coefficient, for example: receiving data input by a user; reading data stored in a database; reading data stored in local equipment; and calculating to obtain data, and the like, which is not specifically limited in the embodiments of the present application and can be appropriately selected by those skilled in the art according to actual situations.
Taking the second fillet edge coefficient calculated by the display device as an example, the step S301 may include the following steps:
the method comprises the following steps of firstly, calculating the ratio of a first area to the total area of pixel points in edge pixel points on a first side.
And secondly, determining the ratio as a second fillet edge coefficient.
As shown in fig. 2, the edge pixel point located on the first side of the center pixel point is divided into two regions, the two regions have the first area and the second area, and the region corresponding to the first area is located on one side of the edge pixel point located on the first side and close to the circle center of the fillet (i.e., the region surrounded by the fillet and the edge pixel point located on the first side).
Therefore, the fillet edge coefficient can be determined according to the ratio of the area enclosed by the fillet and each pixel point in the edge pixel points to the total area of the pixel points, so that the image data is processed, and the phenomenon of edge color cast is reduced.
In the scheme, aiming at the symmetrical fillets of the diagonals of the middle pixel points, in the storage process, the display equipment can only store the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point positioned on the first side of the middle pixel point, and the fillet edge coefficients corresponding to all the edge pixel points are not required to be stored, so that the number of memories for storing the fillet edge coefficients in the display equipment can be reduced, and the cost is reduced.
An image data processing method provided by an embodiment of the present application, which is also applied to the display device 100 satisfying the above-described conditions, is described below.
Referring to fig. 4, fig. 4 is a flowchart of an image data processing method according to an embodiment of the present disclosure, where the image data processing method includes the following steps:
step S401: when image data are obtained, a first fillet edge coefficient corresponding to a prestored middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point are obtained.
Step S402: and determining a third fillet edge coefficient corresponding to the edge pixel point on the second side of the middle pixel point according to the first fillet edge coefficient and the second fillet edge coefficient.
Step S403: and processing the image data by utilizing the first fillet edge coefficient, the second fillet edge coefficient and the third fillet edge coefficient.
In alternative embodiments, similar to obtaining the rounded edge coefficients, the display device may obtain the image data in various ways, such as: receiving data input by a user; reading data stored in a database; reading data stored in local equipment; the method includes acquiring an image, and the like, which is not specifically limited in the embodiments of the present application, and those skilled in the art may appropriately select the image according to actual situations.
When the display device acquires the image data and needs to display an image corresponding to the image data, the fillet edge coefficient may be acquired and the image data may be processed by using the fillet edge coefficient, that is, the above steps S401 to S403 are performed. Each step in the above-described flow is described in detail below.
First, the step of obtaining the first and second corner rounding coefficients (i.e., step S401) will be described. The step S401 may include the following steps:
and sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient.
In an alternative embodiment, the preset order may be an order of storing the fillet edge coefficients, that is, the fillet edge coefficients stored in the first storage are read first, then the fillet edge coefficients stored in the second storage are read, then the fillet edge coefficients stored in the third storage are read, and so on until all the fillet edge coefficients are read. It will be appreciated that the preset order may also be other orders, for example: the order of the positions of the edge pixels corresponding to the rounded edge coefficients, and the like are set manually, and this is not specifically limited in the embodiments of the present application.
The storage sequence of the fillet edge coefficients can be determined by the relation between the fillet and the pixel points. Taking fig. 2 as an example, the value of the first rounded edge coefficient corresponding to the middle pixel point in fig. 2 is c1, and the values of the rounded edge coefficients corresponding to the edge pixel points located on the first side of the middle pixel point are a5, a4, a3, a2, a1, b2, b1, and c2 from right to left. Assuming that the number of rows and the number of columns of the pixel point corresponding to a5 are 1, the order of storing the fillet edge coefficients may be: a5, a4, a3, a2, a1, b2, b1, c2 and c1, namely, the storage is carried out in the order of increasing the number of columns and increasing the number of rows. Thus, when the corner edge coefficients are read, the order of reading is also a5, a4, a3, a2, a1, b2, b1, and c 2.
As an embodiment, the corresponding relationship between the middle pixel point and the first rounded edge coefficient and the corresponding relationship between the edge pixel point on the first side and the second rounded edge coefficient may be stored in the display device; as another embodiment, the correspondence between the middle pixel point and the first rounded edge coefficient and the correspondence between the edge pixel point on the first side and the second rounded edge coefficient need to be determined according to the first rounded edge coefficient and the second rounded edge coefficient.
With respect to the second embodiment, the step S401 may include the steps of:
the method comprises the following steps of firstly, sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from a first fillet edge coefficient and a second fillet edge coefficient; wherein n is an integer greater than 1, and the first rounded edge coefficient corresponds to edge pixel points with 1 row and 1 column.
Secondly, if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that edge pixel points corresponding to the a-th fillet edge coefficient are pixel points with the same number of rows and the number of columns plus one as that of the edge pixel points corresponding to the a-1-th fillet edge coefficient; wherein a is an integer of n or less and greater than 1.
Thirdly, if the b-th fillet edge coefficient is larger than the b-1-th fillet edge coefficient, determining that edge pixel points corresponding to the b-th fillet edge coefficient are pixel points with the same number of rows plus one and the same number of columns of edge pixel points corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a.
Also, taking fig. 2 as an example, the first to eighth fillet edge coefficients (i.e., n ═ 8) of the first and second fillet edge coefficients are read in the order of a5, a4, a3, a2, a1, b2, b1, and c 2.
The second fillet edge coefficient a4 is smaller than the first fillet edge coefficient a5 (i.e. a equals 2), and then a5 has a row number of 1 and a column number of 2 corresponding to the edge pixel. The determination manner of the edge pixel point corresponding to the third fillet edge coefficient a3 (the number of rows is 1 and the number of columns is 3), the fourth fillet edge coefficient a1 (the number of rows is 1 and the number of columns is 4), and the fifth fillet edge coefficient a1 (the number of rows is 1 and the number of columns is 5) is similar to the determination manner of the edge pixel point corresponding to the second fillet edge coefficient a 4. The sixth fillet edge coefficient b2 is greater than the fifth fillet edge coefficient a1 (i.e. b equals 6), and then b2 has a row number of 2 and a column number of 5 corresponding to the edge pixels. The determination mode of the edge pixel corresponding to the seventh rounded edge coefficient b1 (the number of rows is 2 and the number of columns is 6) is similar to the determination mode of the edge pixel corresponding to the second rounded edge coefficient a4, the determination mode of the edge pixel corresponding to the eighth rounded edge coefficient c2 (the number of rows is 3 and the number of columns is 6) is similar to the determination mode of the edge pixel corresponding to the sixth rounded edge coefficient b2, the determination mode of the edge pixel corresponding to the ninth rounded edge coefficient c1 (namely, the intermediate pixel) (the number of rows is 3 and the number of columns is 7) (namely, the intermediate pixel) is similar to the determination mode of the edge pixel corresponding to the second rounded edge coefficient a4, and details are not repeated here.
At this point, the first rounded edge coefficient, the second rounded edge coefficient, the corresponding relationship between the first rounded edge coefficient and the middle pixel point, and the corresponding relationship between the second rounded edge coefficient and the edge pixel point located on the first side of the middle pixel point are all determined.
In the above scheme, because only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point on the first side of the middle pixel point are stored, based on the characteristic that the rounded edge coefficients on the two sides of the middle pixel point are sequentially increased in the row direction or are sequentially increased in the column direction, the stored rounded edge coefficients can be sequentially read out so as to correspond the rounded edge coefficients to the edge pixel points.
Next, a step of obtaining a third fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient (i.e., step S402) will be described. The step S402 may include the following steps:
and reading the second fillet edge coefficient according to the sequence opposite to the preset sequence, and determining a third fillet edge coefficient and the corresponding relation between the edge pixel point of the second side and the third fillet edge coefficient according to the second fillet edge coefficient.
In an optional embodiment, since the edge pixel point corresponding to the third rounded edge coefficient and the edge pixel point corresponding to the second rounded edge coefficient are symmetric with respect to the diagonal of the middle pixel point, the second rounded edge coefficient may be read in an order opposite to the preset order to obtain the third rounded edge coefficient. The preset sequence has been described in detail in the above embodiments, and is not described herein again.
Taking fig. 2 as an example, assuming that the number of rows and the number of columns of the pixel corresponding to a5 are 1, the order of storing the corner edge coefficients may be: a5, a4, a3, a2, a1, b2, b1, c2 and c1, namely, the storage is carried out in the order of increasing the number of columns and increasing the number of rows. Thus, when the corner edge coefficients are read, the order of reading is c2, b1, b2, a1, a2, a3, a4, a 5.
Similar to the embodiment in step S401, the corresponding relationship between the edge pixel point on the second side and the third fillet edge coefficient may be stored in the display device; as another embodiment, the correspondence between the edge pixel point on the second side and the third fillet edge coefficient needs to be determined according to the first fillet edge coefficient and the second fillet edge coefficient.
With respect to the second embodiment, the step S402 may include the following steps:
the method comprises the following steps of firstly, if the nth fillet edge coefficient is the last fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient, sequentially reading the (n-1) th fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient to the first fillet edge coefficient.
Secondly, if the c-1 th fillet edge coefficient is smaller than the c-1 th fillet edge coefficient, determining that edge pixel points corresponding to the c-1 th fillet edge coefficient are pixel points with the same number of rows and the number of columns plus one as the edge pixel points corresponding to the c-1 th fillet edge coefficient; wherein c is an integer of n or less and greater than 1.
Thirdly, if the d-1 th fillet edge coefficient is larger than the d-1 th fillet edge coefficient, determining that the edge pixel point corresponding to the d-1 th fillet edge coefficient is a pixel point with the same number of rows plus one and columns as the edge pixel point corresponding to the d-1 th fillet edge coefficient; wherein d is an integer less than or equal to n and greater than 1, and d is not equal to c.
Similarly, taking fig. 2 as an example, the seventh to first fillet edge coefficients of the second fillet edge coefficients are read sequentially in the order of c2, b1, b2, a1, a2, a3, a4, and a5 (i.e., n is 8).
The eighth corner edge coefficient c2 is greater than the ninth corner edge coefficient c1 (i.e., d is 9), so that c2 has a row number of 4 and a column number of 7. The seventh corner edge coefficient b1 is smaller than the eighth corner edge coefficient c2 (i.e., c is 8), so the number of rows and columns of edge pixels corresponding to b1 is 4 and 8. A determination manner of an edge pixel corresponding to the sixth fillet edge coefficient b2 (row number is 5 and column number is 8), a fourth fillet edge coefficient a2 (row number is 6 and column number is 9), a third fillet edge coefficient a3 (row number is 7 and column number is 9), a second fillet edge coefficient a4 (row number is 8 and column number is 9), and a first fillet edge coefficient a5 (row number is 9 and column number is 9) is similar to that of an edge pixel corresponding to the eighth fillet edge coefficient c2, a determination manner of an edge pixel corresponding to the fifth fillet edge coefficient a1 (row number is 5 and column number is 9) is similar to that of an edge pixel corresponding to the seventh fillet edge coefficient b1, and details are not repeated here.
And determining the corresponding relation among the third fillet edge coefficient, the third fillet edge coefficient and the edge pixel point positioned on the second side of the middle pixel point.
In the above scheme, since only the first rounded edge coefficient corresponding to the middle pixel point and the second rounded edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored, based on the characteristic that the rounded edge coefficients located on the two sides of the middle pixel point are sequentially increased in the row direction or are sequentially increased in the column direction, the stored rounded edge coefficients can be sequentially read out so as to correspond the rounded edge coefficients to the edge pixel points.
Finally, a step of processing the image data using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient (i.e., step S403) will be described. The step S403 may include the following steps:
and multiplying the fillet edge coefficient corresponding to the edge pixel point with the input gray value corresponding to the edge pixel point to obtain an output gray value.
In the above scheme, the round corner edge coefficient may be multiplied by the additional input gray value corresponding to the corresponding edge pixel point to obtain the output gray value, so as to process the image data and reduce the edge color cast.
Referring to fig. 5, fig. 5 is a block diagram of an image data processing apparatus according to an embodiment of the present disclosure, where the image data processing apparatus 500 is applied to a display device including at least one rounded corner at an edge of a display screen, where a pixel point where the rounded corner is located is an edge pixel point, a pixel point located in the middle of the edge pixel point is a middle pixel point, and the rounded corner is symmetric with respect to a diagonal of the middle pixel point; the image data processing apparatus 500 includes: a first obtaining module 501, configured to obtain a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point located on a first side of the middle pixel point, which are stored in advance, when image data is obtained; a first determining module 502, configured to determine, according to the first rounded edge coefficient and the second rounded edge coefficient, a third rounded edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point; a processing module 503, configured to process the image data by using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient.
In the embodiment of the present application, for the fillet symmetric with respect to the diagonal of the middle pixel point, since only the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point located on the first side of the middle pixel point are stored in the display device, and the fillet edge coefficients corresponding to all the edge pixel points are not stored, the third fillet edge coefficient corresponding to the edge pixel point located on the second side of the middle pixel point can be determined according to the first fillet edge coefficient and the second fillet edge coefficient. The number of the fillet edge coefficients stored in the display device is small, so that the number of memories for storing the fillet edge coefficients in the display device can be reduced, and the cost is reduced.
Further, the image data processing apparatus 500 further includes: a second obtaining module, configured to obtain the first fillet edge coefficient and the second fillet edge coefficient if the fillet is symmetric with respect to the diagonal; a storage module to store the first fillet edge coefficient and the second fillet edge coefficient.
In the embodiment of the application, aiming at the symmetrical fillets of the diagonals of the middle pixel points, in the storage process, the display equipment can only store the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point positioned on the first side of the middle pixel point, and the fillet edge coefficients corresponding to all the edge pixel points are not required to be stored, so that the number of memories for storing the fillet edge coefficients in the display equipment can be reduced, and the cost is reduced.
Further, the second obtaining module is further configured to: calculating the ratio of the first area to the total area of the pixels in the edge pixels on the first side; the edge pixel point of the first side is divided into two areas with the areas of the first area and the second area by the fillet, and the area corresponding to the first area is positioned on one side, close to the circle center of the fillet, of the edge pixel point of the first side; determining the ratio as the second fillet edge coefficient.
In the embodiment of the application, the fillet edge coefficient can be determined according to the ratio of the area enclosed by the fillet and each pixel point to the total area of the pixel points in the edge pixel points, so that the image data is processed, and the phenomenon of edge color cast is reduced.
Further, the first obtaining module 501 is further configured to: and sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient.
In the embodiment of the application, only the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point on the first side of the middle pixel point are stored, so that the fillet edge coefficients can be sequentially read according to a preset sequence to correspond the fillet edge coefficients and the edge pixel points.
Further, the first obtaining module 501 is further configured to: sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient; wherein n is an integer greater than 1, and the first fillet edge coefficient corresponds to edge pixel points with the row number of 1 and the column number of 1; if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that edge pixel points corresponding to the a-th fillet edge coefficient are pixel points with the same row number and the row number plus one as the edge pixel points corresponding to the a-1-th fillet edge coefficient; wherein a is an integer less than or equal to n and greater than 1; if the b-th fillet edge coefficient is greater than the b-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the b-th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a.
In the embodiment of the present application, based on the characteristic that the fillet edge coefficients located at two sides of the middle pixel point are sequentially increased in the row direction or increased in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
Further, the first determining module 502 is further configured to: and reading the second fillet edge coefficient according to a sequence opposite to the preset sequence, and determining the third fillet edge coefficient and the corresponding relation between the edge pixel point on the second side and the third fillet edge coefficient according to the second fillet edge coefficient.
In the embodiment of the application, only the first fillet edge coefficient corresponding to the middle pixel point and the second fillet edge coefficient corresponding to the edge pixel point on the first side of the middle pixel point are stored, so that the third fillet edge coefficient corresponding to the edge pixel point on the second side of the middle pixel point can be read in sequence according to the sequence opposite to the preset sequence, and the fillet edge coefficients and the edge pixel points are corresponded.
Further, the first determining module 502 is further configured to: if the nth fillet edge coefficient is the last fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient, sequentially reading the (n-1) th fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient to the first fillet edge coefficient; if the c-th fillet edge coefficient is smaller than the c-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the c-1-th fillet edge coefficient is a pixel point which has the same number of lines and has the number of rows plus one as the edge pixel point corresponding to the c-th fillet edge coefficient; wherein c is an integer less than or equal to n and greater than 1; if the d-th fillet edge coefficient is greater than the d-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the d-1-th fillet edge coefficient is a pixel point with the same number of rows plus one and columns as the number of rows of the edge pixel point corresponding to the d-th fillet edge coefficient; wherein d is an integer less than or equal to n and greater than 1, and d is not equal to c.
In the embodiment of the application, based on the characteristic that the fillet edge coefficients at two sides of the middle pixel point are sequentially increased in the row direction or in the column direction, the stored fillet edge coefficients can be sequentially read out and correspond to the edge pixel points.
Further, the processing module 503 is further configured to: and multiplying the fillet edge coefficient corresponding to the edge pixel point with the input gray value corresponding to the edge pixel point to obtain an output gray value.
In the embodiment of the application, the round corner edge coefficient can be multiplied by the input gray value corresponding to the corresponding edge pixel point to obtain the output gray value, so that the image data is processed, and the phenomenon of edge color cast is reduced.
Embodiments of the present application further provide a computer program product, including a computer program stored on a non-transitory computer readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer, the computer being capable of executing the steps of the image data processing method in the foregoing embodiments, for example, including: when image data are obtained, obtaining a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point, which are stored in advance; determining a third fillet edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point according to the first fillet edge coefficient and the second fillet edge coefficient; processing the image data using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed coupling or direct coupling or communication connection between each other may be through some communication interfaces, indirect coupling or communication connection between devices or units, and may be in an electrical, mechanical or other form.
In addition, 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 units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (8)

1. The image data processing method is characterized by being applied to display equipment with at least one fillet at the edge of a display screen, wherein pixel points where the fillets are located are edge pixel points, the pixel point in the middle of the edge pixel points is a middle pixel point, and the fillets are symmetrical about the diagonal line of the middle pixel point;
the method comprises the following steps:
when image data are obtained, a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point on the first side of the middle pixel point, which are stored in advance, are obtained;
determining a third fillet edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point according to the first fillet edge coefficient and the second fillet edge coefficient;
processing the image data using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient;
the acquiring of the pre-stored first rounded corner edge coefficient corresponding to the middle pixel point and the second rounded corner edge coefficient corresponding to the edge pixel point on the first side of the middle pixel point comprises:
sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient;
the sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to the preset sequence, and respectively determining the corresponding relationship between the middle pixel point and the first rounded edge coefficient and the corresponding relationship between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient, includes:
sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient; wherein n is an integer greater than 1, and the first rounded edge coefficient corresponds to edge pixel points with 1 row number and 1 column number;
if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the a-th fillet edge coefficient is a pixel point which has the same number of lines and has the number of rows plus one as the edge pixel point corresponding to the a-1-th fillet edge coefficient; wherein a is an integer less than or equal to n and greater than 1;
if the b-th fillet edge coefficient is greater than the b-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the b-th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a.
2. The method according to claim 1, wherein before the obtaining the pre-stored first rounded edge coefficients corresponding to the intermediate pixel points and the second rounded edge coefficients corresponding to the edge pixel points on the first side of the intermediate pixel points, the method further comprises:
if the fillet is symmetrical about the diagonal, acquiring the first fillet edge coefficient and the second fillet edge coefficient;
storing the first and second fillet edge coefficients.
3. The image data processing method according to claim 2, wherein the obtaining the second corner edge coefficient includes:
calculating the ratio of the first area to the total area of the pixels in the edge pixels on the first side; the edge pixel point of the first side is divided into two areas with the areas of the first area and the second area by the fillet, and the area corresponding to the first area is positioned on one side, close to the circle center of the fillet, of the edge pixel point of the first side;
and determining the ratio as the second fillet edge coefficient.
4. The method according to claim 1, wherein determining a third rounded edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point according to the first rounded edge coefficient and the second rounded edge coefficient comprises:
and reading the second fillet edge coefficient according to a sequence opposite to the preset sequence, and determining the third fillet edge coefficient and the corresponding relation between the edge pixel point on the second side and the third fillet edge coefficient according to the second fillet edge coefficient.
5. The image data processing method according to claim 4, wherein the reading the second rounded edge coefficients in an order opposite to the preset order, and determining the third rounded edge coefficients and the correspondence between the edge pixel points on the second side and the third rounded edge coefficients according to the second rounded edge coefficients comprises:
if the nth fillet edge coefficient is the last fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient, sequentially reading the (n-1) th fillet edge coefficient in the first fillet edge coefficient and the second fillet edge coefficient to the first fillet edge coefficient;
if the c-1 th fillet edge coefficient is smaller than the c-1 th fillet edge coefficient, determining that the edge pixel point corresponding to the c-1 th fillet edge coefficient is a pixel point with the same number of rows and the number of columns plus one as the edge pixel point corresponding to the c-1 th fillet edge coefficient; wherein c is an integer less than or equal to n and greater than 1;
if the d-1 th fillet edge coefficient is larger than the d-1 th fillet edge coefficient, determining that the edge pixel point corresponding to the d-1 th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the d-1 th fillet edge coefficient; wherein d is an integer less than or equal to n and greater than 1, and d is not equal to c.
6. The image data processing device is characterized by being applied to display equipment with at least one fillet at the edge of a display screen, wherein pixel points where the fillets are located are edge pixel points, the pixel point in the middle of the edge pixel points is a middle pixel point, and the fillets are symmetrical about the diagonal line of the middle pixel point;
the device comprises:
the first obtaining module is used for obtaining a first fillet edge coefficient corresponding to the middle pixel point and a second fillet edge coefficient corresponding to an edge pixel point positioned on the first side of the middle pixel point, which are stored in advance, when the image data is obtained;
a first determining module, configured to determine, according to the first rounded edge coefficient and the second rounded edge coefficient, a third rounded edge coefficient corresponding to an edge pixel point on a second side of the middle pixel point;
a processing module, configured to process the image data by using the first rounded edge coefficient, the second rounded edge coefficient, and the third rounded edge coefficient;
the first obtaining module is further configured to: sequentially reading the first rounded edge coefficient and the second rounded edge coefficient according to a preset sequence, and respectively determining the corresponding relation between the middle pixel point and the first rounded edge coefficient and the corresponding relation between the edge pixel point on the first side and the second rounded edge coefficient according to the first rounded edge coefficient and the second rounded edge coefficient;
the first obtaining module is further configured to: sequentially reading a first fillet edge coefficient to an nth fillet edge coefficient from the first fillet edge coefficient and the second fillet edge coefficient; wherein n is an integer greater than 1, and the first rounded edge coefficient corresponds to edge pixel points with 1 row number and 1 column number; if the a-th fillet edge coefficient is smaller than the a-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the a-th fillet edge coefficient is a pixel point which has the same number of lines and has the number of rows plus one as the edge pixel point corresponding to the a-1-th fillet edge coefficient; wherein a is an integer less than or equal to n and greater than 1; if the b-th fillet edge coefficient is greater than the b-1-th fillet edge coefficient, determining that the edge pixel point corresponding to the b-th fillet edge coefficient is a pixel point with the same number of rows plus one and the same number of columns of the edge pixel point corresponding to the b-1-th fillet edge coefficient; wherein b is an integer less than or equal to n and greater than 1, and b is not equal to a.
7. A display device, comprising: a processor, a memory, and a bus;
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor being capable of executing the image data processing method of any one of claims 1 to 5 when invoked by the program instructions.
8. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the image data processing method according to any one of claims 1 to 5.
CN202011135695.6A 2020-10-21 2020-10-21 Image data processing method and device Active CN112261242B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011135695.6A CN112261242B (en) 2020-10-21 2020-10-21 Image data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011135695.6A CN112261242B (en) 2020-10-21 2020-10-21 Image data processing method and device

Publications (2)

Publication Number Publication Date
CN112261242A CN112261242A (en) 2021-01-22
CN112261242B true CN112261242B (en) 2022-09-27

Family

ID=74264595

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011135695.6A Active CN112261242B (en) 2020-10-21 2020-10-21 Image data processing method and device

Country Status (1)

Country Link
CN (1) CN112261242B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105911744A (en) * 2016-06-29 2016-08-31 上海天马微电子有限公司 Display panel and display device
CN107730467A (en) * 2017-10-16 2018-02-23 芯颖科技有限公司 Display method, device, equipment and storage medium
CN107977947A (en) * 2017-12-22 2018-05-01 维沃移动通信有限公司 A kind of image processing method, mobile terminal
CN110377877A (en) * 2019-07-26 2019-10-25 苏州浪潮智能科技有限公司 A kind of data processing method, device, equipment and storage medium
CN110458857A (en) * 2019-08-12 2019-11-15 厦门美图之家科技有限公司 Central symmetry pel detection method, device, electronic equipment and readable storage medium storing program for executing
CN110930919A (en) * 2019-11-20 2020-03-27 深圳吉迪思电子科技有限公司 Image processing method and display driving device
WO2020078290A1 (en) * 2018-10-17 2020-04-23 奇酷互联网络科技(深圳)有限公司 Displaying method for round-corner screen, computer device, and storage medium
CN111796788A (en) * 2020-07-01 2020-10-20 芯颖科技有限公司 Method and system for compressing and accessing edge information of arc-shaped display screen

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105911744A (en) * 2016-06-29 2016-08-31 上海天马微电子有限公司 Display panel and display device
CN107730467A (en) * 2017-10-16 2018-02-23 芯颖科技有限公司 Display method, device, equipment and storage medium
CN107977947A (en) * 2017-12-22 2018-05-01 维沃移动通信有限公司 A kind of image processing method, mobile terminal
WO2020078290A1 (en) * 2018-10-17 2020-04-23 奇酷互联网络科技(深圳)有限公司 Displaying method for round-corner screen, computer device, and storage medium
CN110377877A (en) * 2019-07-26 2019-10-25 苏州浪潮智能科技有限公司 A kind of data processing method, device, equipment and storage medium
CN110458857A (en) * 2019-08-12 2019-11-15 厦门美图之家科技有限公司 Central symmetry pel detection method, device, electronic equipment and readable storage medium storing program for executing
CN110930919A (en) * 2019-11-20 2020-03-27 深圳吉迪思电子科技有限公司 Image processing method and display driving device
CN111796788A (en) * 2020-07-01 2020-10-20 芯颖科技有限公司 Method and system for compressing and accessing edge information of arc-shaped display screen

Also Published As

Publication number Publication date
CN112261242A (en) 2021-01-22

Similar Documents

Publication Publication Date Title
US10276112B2 (en) Mura phenomenon compensation method of display panel and display panel
US11328395B2 (en) Image processing method, image processing device, electronic equipment and computer readable storage medium
CN110235176B (en) Image processing method and device, data transmission method and device and storage medium
CN108492773B (en) Image display method, special-shaped display equipment and device with storage function
CN108537729B (en) Image stepless zooming method, computer device and computer readable storage medium
CN104869327A (en) High-definition display screen image file rapid display method and system
CN111798810A (en) Special-shaped screen contour compensation method with good compensation effect and high efficiency and terminal
CN114495812B (en) Display panel brightness compensation method and device, electronic equipment and readable storage medium
CN112261242B (en) Image data processing method and device
CN109359255B (en) Form data display method and terminal equipment
CN116016807B (en) Video processing method, system, storable medium and electronic equipment
US20150317536A1 (en) System and method for evaluating data
US20180082149A1 (en) Clustering method with a two-stage local binary pattern and an iterative image testing system thereof
CN112184685B (en) Image data determination method and device
CN112766256B (en) Grating phase diagram processing method and device, electronic equipment and storage medium
US9594955B2 (en) Modified wallis filter for improving the local contrast of GIS related images
CN115689850A (en) Image processing method, display device, and storage medium
CN111626938B (en) Image interpolation method, image interpolation device, terminal device, and storage medium
US11205252B2 (en) Method and device for enhancing brightness and contrast of video image
CN109410873B (en) Driving method and system and display device
CN110349530B (en) Character boundary processing method, display panel and computer readable storage medium
CN111260559A (en) Image zooming display method and device and terminal equipment
CN105468312B (en) Image display method and device
CN110473146B (en) Remote sensing image display method and device, storage medium and computer equipment
CN112073686B (en) Image display method and device and electronic equipment

Legal Events

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