+

CN114049272B - Screen image processing method, screen assembly and computer storage medium - Google Patents

Screen image processing method, screen assembly and computer storage medium Download PDF

Info

Publication number
CN114049272B
CN114049272B CN202111335702.1A CN202111335702A CN114049272B CN 114049272 B CN114049272 B CN 114049272B CN 202111335702 A CN202111335702 A CN 202111335702A CN 114049272 B CN114049272 B CN 114049272B
Authority
CN
China
Prior art keywords
intersection point
pixel grid
target pixel
area
horizontal axis
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
CN202111335702.1A
Other languages
Chinese (zh)
Other versions
CN114049272A (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.)
Shanghai Aoxian Technology Co ltd
Original Assignee
Shanghai Aoxian 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 Shanghai Aoxian Technology Co ltd filed Critical Shanghai Aoxian Technology Co ltd
Priority to CN202111335702.1A priority Critical patent/CN114049272B/en
Publication of CN114049272A publication Critical patent/CN114049272A/en
Application granted granted Critical
Publication of CN114049272B publication Critical patent/CN114049272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/0007Image acquisition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/64Analysis of geometric attributes of convexity or concavity
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The application provides a screen image processing method of a curve angle, which is characterized in that a curve center is taken as an origin of a coordinate system, a curve arc of the curve angle is placed in a plane coordinate system, and a pixel grid intersected with the curve arc is taken as a target pixel grid, and the method comprises the following steps: responding to the first intersection point coordinate and the second intersection point coordinate of the curve arc and each row or each column of target pixel grids, and calculating the gray coefficient of each target pixel grid according to the first intersection point coordinate and the second intersection point coordinate of each row or each column of target pixel grids; and processing the image data according to the gray coefficient of the target pixel grid. The screen image processing method, the screen assembly and the computer storage medium can rapidly acquire the gray coefficient of each target pixel grid so as to eliminate the sawtooth and color cast phenomena of the curve angle and improve the display effect.

Description

屏幕图像处理方法、屏幕组件和计算机存储介质Screen image processing method, screen component and computer storage medium

技术领域technical field

本申请涉及曲线角屏幕处理技术领域,具体涉及一种曲线角的屏幕图像处理方法、屏幕组件和计算机存储介质。The present application relates to the technical field of curved-angle screen processing, in particular to a curved-angle screen image processing method, a screen component, and a computer storage medium.

背景技术Background technique

在手机领域,手机在往全面屏的方向发展,为了提高手机的屏占比,防止手机边缘易碎以及提高手机的视觉审美,手机有了R角,Notch等,但是该方式会使得手机屏的物理子像素被切割掉,导致切割的边缘会出现锯齿及偏色现象且切割边缘的数据产生损耗或丢失。In the field of mobile phones, mobile phones are developing in the direction of full screen. In order to increase the screen ratio of mobile phones, prevent the edges of mobile phones from being fragile and improve the visual aesthetics of mobile phones, mobile phones have R corners, Notch, etc., but this method will make the mobile phone screen The physical sub-pixels are cut off, resulting in jagged edges and color casts on the cut edges, and loss or loss of data at the cut edges.

随着手机屏幕应用的多样化发展,当屏幕边缘切割的弧线是曲线形时,应对曲线角屏幕的图像处理算法就成为行业内亟需解决的问题。With the diversified development of mobile phone screen applications, when the arc cut by the edge of the screen is curved, the image processing algorithm for the screen with curved corners has become an urgent problem in the industry.

发明内容Contents of the invention

本申请提供一种曲线角的屏幕图像处理方法、屏幕组件和计算机存储介质,用于缓解手机屏幕曲线角边上被切割后的锯齿及偏色问题,以提高显示效果。The present application provides a screen image processing method with curved corners, a screen component and a computer storage medium, which are used to alleviate the problems of sawtooth and color cast after being cut on the curved corners of the mobile phone screen, so as to improve the display effect.

在一方面,本申请提供一种曲线角的屏幕图像处理方法,可选地,以曲线中心为坐标系原点,将所述曲线角的曲线弧置于平面坐标系,与所述曲线弧交会的像素格为目标像素格,所述方法包括:响应于获取所述曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数;根据所述目标像素格的灰度系数处理所述图像数据。In one aspect, the present application provides a screen image processing method for curved corners. Optionally, with the center of the curve as the origin of the coordinate system, the curved arcs of the curved corners are placed in a plane coordinate system, and the The pixel grid is a target pixel grid, and the method includes: in response to obtaining the coordinates of the first intersection point and the second intersection point coordinates of the curve arc and each row or column of the target pixel grid, according to the target pixel grid of each row or column calculating the gamma of each target pixel grid based on the first intersection coordinates and the second intersection coordinates; and processing the image data according to the gamma of the target pixel grid.

可选地,所述根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数的步骤包括:Optionally, the step of calculating the gamma of each target pixel grid according to the first intersection coordinate and the second intersection coordinate of each row or column of the target pixel grid includes:

从每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;Perform a straight line from the first intersection point to the second intersection point of each row or column of the target pixel grid area to obtain a fitted line segment;

计算每个像素格未被所述拟合线段切割的第一面积;Calculate the first area of each pixel grid that is not cut by the fitted line segment;

计算所述第一面积与每个像素格的总面积的比值,以获取所述目标像素格的灰度系数。Calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid.

可选地,在计算第一象限中第N行的目标像素格时,设每个像素格区域的边长为1,其中,N为正整数,所述第一交点为上交点,所述第二交点为下交点;所述计算每个像素格未被所述拟合线段切割的第一面积的步骤包括:Optionally, when calculating the target pixel grid of the Nth row in the first quadrant, set the side length of each pixel grid area to be 1, where N is a positive integer, the first intersection point is the upper intersection point, and the first intersection point The second intersection point is the lower intersection point; the step of calculating the first area of each pixel grid that is not cut by the fitted line segment includes:

所述曲线弧与所述第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算所述第N行的每个像素格的第一面积;When the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curved arc and the Nth row are both integers, the first area of each pixel grid in the Nth row is calculated according to the similarity of the triangle;

和/或,所述曲线弧与所述第N行的所述上交点横轴坐标为整数,所述下交点横轴坐标不为整数时,获取所述下交点横轴坐标的小数部分,根据所述下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;And/or, the abscissa coordinate of the upper intersection point of the curve arc and the Nth row is an integer, and when the abscissa coordinate of the lower intersection point is not an integer, obtain the fractional part of the abscissa coordinate of the lower intersection point, according to Calculate the first area of each pixel grid in the Nth row by the fractional part of the horizontal axis coordinate of the lower intersection point and the similarity of the triangle;

和/或,所述曲线弧与第N行的所述上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;And/or, the horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are not integers, and when the horizontal axis coordinates of the lower intersection point are integers, the fractional part of the upper intersection point horizontal axis coordinates is obtained, according to the rectangular area formula, the upper intersection point Calculate the first area of each pixel grid in the Nth row by calculating the similarity between the fractional part of the horizontal axis coordinates and the triangle;

和/或,所述曲线弧与所述第N行的所述交点横轴坐标和所述交点横轴坐标均不为整数时,获取交点横轴坐标的小数部分和交点横轴坐标的小数部分,再根据矩形面积公式、交点横轴坐标的小数部分、交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积。And/or, when the horizontal axis coordinates of the intersection point and the horizontal axis coordinates of the intersection point between the curved arc and the Nth row are not integers, obtain the decimal part of the horizontal axis coordinates of the intersection point and the decimal part of the horizontal axis coordinates of the intersection point , and then calculate the first area of each pixel grid in the Nth row according to the rectangular area formula, the fractional part of the horizontal axis coordinate of the intersection point, the fractional part of the horizontal axis coordinate of the intersection point and the similarity of the triangle.

可选地,所述根据所述目标像素格的灰度系数处理所述图像数据的步骤之前包括:Optionally, before the step of processing the image data according to the gamma of the target pixel grid includes:

将每个灰度系数乘以平滑阶数的积取整,以获取系数存储数写入存储器。The product of multiplying each gamma coefficient by the smoothing order is rounded to obtain the coefficient storage number and write it into the memory.

可选地,所述写入存储器的步骤包括:Optionally, the step of writing into the memory includes:

响应于获取所述系数存储数,为每行或每列目标像素格分配一个存储字段;Allocating a storage field for each row or column of the target pixel grid in response to obtaining the coefficient storage number;

在第N行或第N列的A个目标像素格中,从第N行或第N列的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行或第N列的目标像素格的个数A和第N行或第N列的A个目标像素格的系数存储数;In the A target pixel grid of the Nth row or Nth column, from the first location of the Nth row or Nth column storage field to the A+1th location of the A+1th location, respectively write the Nth The number A of the target pixel grid in the row or Nth column and the coefficient storage number of the A target pixel grid in the Nth row or Nth column;

其中,N为正整数,A为正整数。Wherein, N is a positive integer, and A is a positive integer.

另一方面,本申请还提供一种曲线角的屏幕组件,具体地,包括图像驱动器、图像处理器和曲线角屏幕;所述图像驱动器用于发送图像数据至所述图像处理器,以使所述图像处理器控制所述曲线角屏幕显示所述图像数据;所述图像处理器用于:以曲线中心为坐标系原点,将所述曲线角的曲线弧置于平面坐标系,与所述曲线弧交会的像素格为目标像素格,响应于获取所述曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数,根据所述目标像素格的灰度系数处理所述图像数据。On the other hand, the present application also provides a curved-angle screen component, specifically, including an image driver, an image processor, and a curved-angle screen; the image driver is used to send image data to the image processor, so that the The image processor controls the screen of the curved angle to display the image data; the image processor is used to: take the center of the curve as the origin of the coordinate system, place the curved arc of the curved angle in a plane coordinate system, and The intersecting pixel grid is the target pixel grid. In response to obtaining the first intersection coordinates and the second intersection coordinates of the curve arc and each row or column of the target pixel grid, according to the first intersection point coordinates of each row or each column of the target pixel grid The intersection coordinates and the second intersection coordinates calculate the gamma of each target pixel grid, and process the image data according to the gamma of the target pixel grid.

可选地,所述图像处理器还用于:Optionally, the image processor is also used for:

从每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;Perform a straight line from the first intersection point to the second intersection point of each row or column of the target pixel grid area to obtain a fitted line segment;

计算每个像素格未被所述拟合线段切割的第一面积;Calculate the first area of each pixel grid that is not cut by the fitted line segment;

计算所述第一面积与每个像素格的总面积的比值,以获取所述目标像素格的灰度系数。Calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid.

可选地,所述图像处理器还用于:在计算第一象限中第N行的目标像素格时,设每个像素格区域的边长为1,其中,N为正整数,所述第一交点为上交点,所述第二交点为下交点;所述计算每个像素格未被所述拟合线段切割的第一面积的步骤包括:Optionally, the image processor is further configured to: when calculating the target pixel grid of the Nth row in the first quadrant, set the side length of each pixel grid area to be 1, wherein, N is a positive integer, and the One intersection is the upper intersection, and the second intersection is the lower intersection; the step of calculating the first area of each pixel grid that is not cut by the fitted line segment includes:

所述曲线弧与所述第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算所述第N行的每个像素格的第一面积;When the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curved arc and the Nth row are both integers, the first area of each pixel grid in the Nth row is calculated according to the similarity of the triangle;

和/或,所述曲线弧与所述第N行的所述上交点横轴坐标为整数,所述下交点横轴坐标不为整数时,获取所述下交点横轴坐标的小数部分,根据所述下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;And/or, the abscissa coordinate of the upper intersection point of the curve arc and the Nth row is an integer, and when the abscissa coordinate of the lower intersection point is not an integer, obtain the fractional part of the abscissa coordinate of the lower intersection point, according to Calculate the first area of each pixel grid in the Nth row by the fractional part of the horizontal axis coordinate of the lower intersection point and the similarity of the triangle;

和/或,所述曲线弧与第N行的所述上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;And/or, the horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are not integers, and when the horizontal axis coordinates of the lower intersection point are integers, the fractional part of the upper intersection point horizontal axis coordinates is obtained, according to the rectangular area formula, the upper intersection point Calculate the first area of each pixel grid in the Nth row by calculating the similarity between the fractional part of the horizontal axis coordinates and the triangle;

和/或,所述曲线弧与所述第N行的所述上交点横轴坐标和所述下交点横轴坐标均不为整数时,获取上交点横轴坐标的小数部分和下交点横轴坐标的小数部分,再根据矩形面积公式、上交点横轴坐标的小数部分、下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积。And/or, when the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curve arc and the Nth row are not integers, obtain the fractional part of the upper intersection point horizontal axis coordinates and the lower intersection point horizontal axis The fractional part of the coordinates, and then calculate the first area of each pixel grid in the Nth row according to the rectangular area formula, the fractional part of the horizontal axis coordinates of the upper intersection point, the fractional part of the horizontal axis coordinates of the lower intersection point, and the triangle similarity.

可选地,所述曲线角屏幕组件还包括与所述图像处理器连接的存储器,所述图像处理器还用于响应于获取所述系数存储数,为每行或每列目标像素格分配一个存储字段;在第N行或第N列的A个目标像素格中,从第N行或第N列的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行或第N列的目标像素格的个数A和第N行或第N列的A个目标像素格的系数存储数;其中,N为正整数,A为正整数。Optionally, the curved angle screen component further includes a memory connected to the image processor, and the image processor is also configured to allocate a target pixel grid for each row or column in response to obtaining the coefficient storage number. Storage field; in the A target pixel grid of the Nth row or Nth column, from the first location of the Nth row or Nth column storage field to the A+1th location of the A+1th location, respectively write Enter the number A of the target pixel grid in the Nth row or Nth column and the coefficient storage number of the A target pixel grid in the Nth row or Nth column; wherein, N is a positive integer, and A is a positive integer.

另一方面,本申请还提供一种计算机存储介质,具体地,所述计算机存储介质上存储有计算机程序,所述计算机程序在被计算机执行时,可实现如上任一项所述的屏幕图像处理方法。On the other hand, the present application also provides a computer storage medium. Specifically, a computer program is stored on the computer storage medium. When the computer program is executed by a computer, the screen image processing described in any one of the above items can be realized. method.

如上所述,本申请提供的曲线角的屏幕图像处理方法、曲线角的屏幕组件和计算机存储介质,不仅能快速获取每个目标像素格的灰度系数,以消除手机屏幕曲线角边上被切割后的锯齿及偏色问题,有效提高了显示效果。As mentioned above, the screen image processing method for curved corners, screen components for curved corners, and computer storage media provided by the present application can not only quickly obtain the gamma of each target pixel grid, so as to eliminate the problem of being cut on the curved corners of the mobile phone screen. The final aliasing and color cast problems have effectively improved the display effect.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本申请的实施例,并与说明书一起用于解释本申请的原理。为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description serve to explain the principles of the application. In order to more clearly illustrate the technical solutions of the embodiments of the present application, the accompanying drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, for those of ordinary skill in the art, the Under the premise, other drawings can also be obtained based on these drawings.

图1为本申请一实施例中椭圆角屏幕与边缘像素格的示意图。FIG. 1 is a schematic diagram of an elliptical corner screen and edge pixel grids in an embodiment of the present application.

图2为本申请第一实施例的屏幕图像处理方法的流程图。FIG. 2 is a flowchart of a screen image processing method according to the first embodiment of the present application.

图3为本申请图2实施例计算目标像素格的灰度系数的流程图。FIG. 3 is a flow chart of calculating the gamma of the target pixel grid in the embodiment of FIG. 2 of the present application.

图4为本申请图3实施例计算每个目标像素格第一面积的示意图。FIG. 4 is a schematic diagram of calculating the first area of each target pixel grid in the embodiment of FIG. 3 of the present application.

图5为本申请第二实施例中屏幕组件的结构图。FIG. 5 is a structural diagram of a screen component in a second embodiment of the present application.

本申请目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。通过上述附图,已示出本申请明确的实施例,后文中将有更详细的描述。这些附图和文字描述并不是为了通过任何方式限制本申请构思的范围,而是通过参考特定实施例为本领域技术人员说明本申请的概念。The realization, functional features and advantages of the present application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. By means of the above drawings, specific embodiments of the present application have been shown, which will be described in more detail hereinafter. These drawings and text descriptions are not intended to limit the scope of the concept of the application in any way, but to illustrate the concept of the application for those skilled in the art by referring to specific embodiments.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本申请相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本申请的一些方面相一致的装置和方法的例子。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, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present application as recited in the appended claims.

需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素,此外,本申请不同实施例中具有同样命名的部件、特征、要素可能具有相同含义,也可能具有不同含义,其具体含义需以其在该具体实施例中的解释或者进一步结合该具体实施例中上下文进行确定。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the statement "comprising a..." does not exclude the presence of other identical elements in the process, method, article, or device that includes the element. In addition, different implementations of the present application Components, features, and elements with the same name in the example may have the same meaning, or may have different meanings, and the specific meaning shall be determined based on the explanation in the specific embodiment or further combined with the context in the specific embodiment.

应当理解,此处所描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

需要说明的是,曲线角的屏幕图像处理方法应用于曲线角屏幕组件,以曲线中心为坐标系原点,可以将曲线角的曲线弧置于平面坐标系第一象限以便于阐述,与曲线弧交会的像素格为目标像素格,但本申请并不限于在其他象限进行类似的处理。It should be noted that the screen image processing method of the curved corner is applied to the curved corner screen component, with the center of the curve as the origin of the coordinate system, the curved arc of the curved corner can be placed in the first quadrant of the plane coordinate system for easy explanation, and intersects with the curved arc The pixel grid of is the target pixel grid, but the application is not limited to similar processing in other quadrants.

可以理解地,在一个曲线弧的切割线上,对于椭圆屏幕上被切割的目标像素格来说,每行或每列都会有两个交点。可选地,在第一象限的每行目标像素格中,第一交点可以为上交点,第二交点可以为下交点。类似地,在第一象限的每列目标像素格中,第一交点可以为左交点,第二交点可以为右交点。Understandably, on a cutting line of a curved arc, for the target pixel grid to be cut on the elliptical screen, there are two intersection points in each row or column. Optionally, in each row of the target pixel grid in the first quadrant, the first intersection point may be an upper intersection point, and the second intersection point may be a lower intersection point. Similarly, in each column of the target pixel grid in the first quadrant, the first intersection point may be a left intersection point, and the second intersection point may be a right intersection point.

曲线可以是圆角曲线、椭圆曲线、完美曲线以及费马曲线等各种符合数学函数定义的曲线类型。为了方便说明本申请的技术方案,以下实施例基于外凸的椭圆曲线角屏幕为例,以第一象限的椭圆切割线中每行目标像素格为计算对象进行阐述和示例。对于内凹的曲线屏幕、其他类型的曲线、或者以每列目标像素格为计算对象时,可以参考以下各实施例的处理方案原理。在其他实施例中,也可以将本申请的处理思路应用于其他象限以及以每列目标像素格为处理对象。参考以下各实施例的处理方案后进行相应技术方案的简单调整或变换,也都处于本申请的保护范围内。Curves can be various types of curves defined by mathematical functions, such as rounded curves, elliptic curves, perfect curves, and Fermat curves. In order to facilitate the description of the technical solution of the present application, the following embodiments are based on the convex elliptic curve angle screen as an example, and each row of target pixel grids in the ellipse cutting line in the first quadrant is used as the calculation object for illustration and example. For concave curved screens, other types of curves, or when each column of target pixel cells is used as the calculation object, the principles of the processing solutions in the following embodiments can be referred to. In other embodiments, the processing ideas of the present application may also be applied to other quadrants and each column of target pixel grids may be used as the processing object. Simple adjustments or transformations of the corresponding technical solutions after referring to the processing solutions of the following embodiments also fall within the protection scope of the present application.

基于数学原理,一条椭圆弧对应一个椭圆,即根据椭圆弧可确定椭圆的长轴和短轴以及中心,因此,基于椭圆弧切割线,可确定椭圆弧切割线所在椭圆的长轴和短轴以及中心。其中,中心坐标即为椭圆弧切割线所在的椭圆中心的坐标。其中,椭圆弧切割线为显示屏椭圆角的轮廓线,位于显示屏的椭圆弧边缘处,用于定义显示屏显示区域的椭圆弧边缘。对显示屏倒角或开槽之前,可预先设计切割线的形状,若需倒角为椭圆弧形倒角或开槽为椭圆弧状,则可预设好使用的椭圆弧切割线。Based on mathematical principles, an elliptical arc corresponds to an ellipse, that is, the major axis, minor axis and center of the ellipse can be determined according to the elliptical arc. Therefore, based on the elliptical arc cutting line, the major axis, minor axis and center. Wherein, the center coordinates are the coordinates of the center of the ellipse where the cutting line of the ellipse arc is located. Wherein, the ellipse arc cutting line is the contour line of the ellipse corner of the display screen, located at the edge of the ellipse arc of the display screen, and is used to define the edge of the ellipse arc of the display area of the display screen. Before chamfering or slotting the display screen, the shape of the cutting line can be pre-designed. If the chamfering is elliptical arc-shaped chamfering or the groove is elliptical arc-shaped, the elliptical arc cutting line used can be preset.

第一实施例first embodiment

本申请首先提供一种曲线角的屏幕图像处理方法。The present application firstly provides a screen image processing method for curved corners.

在一实施例中,以曲线中心为坐标系原点,将曲线角的曲线弧置于平面坐标系,与曲线弧交会的像素格为目标像素格,屏幕图像处理方法的步骤包括:In one embodiment, the center of the curve is used as the origin of the coordinate system, the curved arc at the corner of the curve is placed in the plane coordinate system, and the pixel grid intersected with the curved arc is the target pixel grid. The steps of the screen image processing method include:

响应于获取曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数;根据目标像素格的灰度系数处理图像数据。In response to obtaining the first intersection coordinates and the second intersection coordinates of the curve arc and each row or column of the target pixel grid, calculating each target pixel grid according to the first intersection coordinates and the second intersection coordinates of each row or column of the target pixel grid gamma; process the image data according to the gamma of the target pixel grid.

图1为本申请一实施例中椭圆角屏幕与边缘像素格的示意图。FIG. 1 is a schematic diagram of an elliptical corner screen and edge pixel grids in an embodiment of the present application.

请参阅图1,在一实施例中,o点为坐标系原点,x与y分别对应平面坐标轴的x轴与y轴,原点o、x轴和y轴组成的坐标系中,第一象限包括多个大小相等的像素格。本申请选取长轴为16个像素单位大小和短轴为11个像素单位大小的椭圆角为例,将该椭圆角置于第一象限,椭圆中心与o点重合,获得置于第一象限椭圆角的椭圆弧r。椭圆弧r与坐标轴在第一象限组成的区域为屏的发光区域,与椭圆弧r交会的像素格为目标像素格,表示切割的边缘。在其他实施例中,也可以将椭圆角置于其他象限。Please refer to Fig. 1, in one embodiment, point o is the origin of the coordinate system, x and y correspond to the x-axis and y-axis of the plane coordinate axis respectively, and in the coordinate system composed of the origin o, x-axis and y-axis, the first quadrant Consists of multiple pixel grids of equal size. This application selects an ellipse angle with a major axis of 16 pixel units and a minor axis of 11 pixel units as an example. The ellipse angle is placed in the first quadrant, and the center of the ellipse coincides with point o to obtain an ellipse placed in the first quadrant. The elliptical arc r of the angle. The area formed by the ellipse arc r and the coordinate axis in the first quadrant is the light-emitting area of the screen, and the pixel grid intersecting the ellipse arc r is the target pixel grid, which represents the cutting edge. In other embodiments, the corners of the ellipse may also be placed in other quadrants.

请继续参考图1,在一实施例中,a1,a2,a3,a4,a5,a6,a7,b1,b2,b3,b4,c1,c2,d1,d2,d3,e1,e2,f1,f2,g1,h1,h2,i1,j1,k1为目标像素格。Please continue to refer to FIG. 1. In one embodiment, a1, a2, a3, a4, a5, a6, a7, b1, b2, b3, b4, c1, c2, d1, d2, d3, e1, e2, f1, f2, g1, h1, h2, i1, j1, k1 are target pixel grids.

可以理解地,以每行目标像素格为处理对象时,可以选取上交点坐标和下交点坐标。以每列目标像素格为处理对象时,可以选取右交点坐标和左交点坐标。Understandably, when each row of the target pixel grid is used as the processing object, the coordinates of the upper intersection point and the coordinates of the lower intersection point may be selected. When each column of the target pixel grid is used as the processing object, the coordinates of the right intersection point and the left intersection point can be selected.

图2为本申请第一实施例的屏幕图像处理方法的流程图。FIG. 2 is a flowchart of a screen image processing method according to the first embodiment of the present application.

请参阅图2,示例性地,屏幕图像处理方法包括:Please refer to FIG. 2. Exemplarily, the screen image processing method includes:

S10:响应于获取曲线弧与每行目标像素格的上交点横轴坐标和下交点横轴坐标。S10: In response to obtaining the horizontal axis coordinates of the upper intersection point and the lower intersection point of the curve arc and each row of the target pixel grid.

根据曲线方程的公式可以计算得到每行目标像素格的上交点横轴坐标和下交点横轴坐标。The abscissa coordinates of the upper intersection point and the abscissa coordinates of the lower intersection point of each row of target pixel cells can be calculated according to the formula of the curve equation.

S20:根据每行目标像素格的上交点横轴坐标和下交点横轴坐标计算每个目标像素格的灰度系数。S20: Calculate the gamma of each target pixel grid according to the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of each row of target pixel grids.

灰度系数也可以叫做渐变系数,可以是每个目标像素格中未被切割的面积与总面积的比值。能够清晰的表示目标像素格即图像被切割后颜色渐变的程度。通过曲线的弧线与每行目标像素格相交的上交点横轴坐标和下交点横轴坐标,能够计算出每个像素格中未被切割的面积与总面积的比值。The gamma coefficient can also be called the gradient coefficient, which can be the ratio of the uncut area to the total area of each target pixel grid. It can clearly indicate the target pixel grid, that is, the degree of color gradient after the image is cut. The ratio of the uncut area to the total area in each pixel grid can be calculated through the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates where the arc of the curve intersects with each row of target pixel grids.

S30:根据目标像素格的灰度系数处理图像数据。S30: Process the image data according to the gamma of the target pixel grid.

屏幕上每个像素格的显示亮度由驱动电流的大小进行调节控制,驱动电流为像素格的驱动组件输出至每个像素格的电流。在屏幕的边缘,为了使亮度平滑,消除偏色现象,各边缘像素格分别各自对应一个优化亮度的灰度系数。一般来说,面积比例不同,则优化亮度的灰度系数不同。The display brightness of each pixel grid on the screen is adjusted and controlled by the magnitude of the driving current, which is the current output to each pixel grid by the driving component of the pixel grid. At the edge of the screen, in order to smooth the brightness and eliminate the color cast phenomenon, each edge pixel grid corresponds to a gamma factor with optimized brightness. Generally speaking, the gamma factor of optimized brightness is different for different area ratios.

本实施例通过目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数,能快速获取每个目标像素格的灰度系数,以消除曲线角切割后产生的锯齿及偏色现象,达到节省成本的目的。In this embodiment, the gamma of each target pixel grid is calculated by the coordinates of the first intersection point and the second intersection point of the target pixel grid, and the gamma coefficient of each target pixel grid can be quickly obtained to eliminate the aliasing generated after cutting the curve corner And color cast phenomenon, to achieve the purpose of saving costs.

在一实施例中,在执行根据每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数的步骤可以包括:In an embodiment, the step of calculating the gamma of each target pixel grid according to the first intersection coordinate and the second intersection coordinate of each row or column of the target pixel grid may include:

从每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;计算每个像素格未被拟合线段切割的第一面积;计算第一面积与每个像素格的总面积的比值,以获取目标像素格的灰度系数。Carry out a straight line from the first intersection point to the second intersection point of each row or column of the target pixel grid area to obtain a fitted line segment; calculate the first area of each pixel grid that is not cut by the fitted line segment; calculate the first area and The ratio of the total area of each pixel to obtain the gamma of the target pixel.

图3为本申请图2实施例计算目标像素格的灰度系数的流程图。FIG. 3 is a flow chart of calculating the gamma of the target pixel grid in the embodiment of FIG. 2 of the present application.

请参阅图3,示例性地,屏幕图像处理方法在执行S20:根据每行目标像素格的上交点横轴坐标和下交点横轴坐标计算每个目标像素格的灰度系数的步骤包括:Please refer to FIG. 3 . Exemplarily, the screen image processing method is executing S20: the step of calculating the gamma of each target pixel grid according to the horizontal axis coordinates of the upper intersection point and the horizontal axis coordinates of the lower intersection point of each row of target pixel grids includes:

S21:从每行目标像素格区域的上交点至下交点进行直线连线,以获取拟合线段。S21: Connect a straight line from the upper intersection point to the lower intersection point of each row of the target pixel grid area to obtain a fitting line segment.

S22:计算每个像素格未被拟合线段切割的第一面积。S22: Calculate the first area of each pixel grid that is not cut by the fitted line segment.

S23:计算第一面积与每个像素格的总面积的比值,以获取目标像素格的灰度系数。S23: Calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid.

请结合图1,在一实施例中,第一行目标像素格a1~a7区域上交点B至下交点A进行直线连线,获取拟合线段AB。第一行的目标像素格区域左下角为C点。拟合线段AB在靠近坐标原点一侧同目标像素格区域组成三角形ABC,计算三角形ABC在每个目标像素格未被切割的第一面积。示例性地,在目标像素格a7,假设每个像素格的边长为1,结合三角形的相似的性质可计算得到未被切割的第一面积为0.033,由于每个像素格的总面积为1,故目标像素格a7的灰度系数为0.033。根据三角形的相似性原理,可计算获得a1~a6目标像素格的灰度系数。Please refer to FIG. 1 , in one embodiment, the upper intersection point B and the lower intersection point A in the area of the first row of target pixel grids a1 to a7 are connected by a straight line to obtain a fitting line segment AB. Point C is the lower left corner of the target pixel grid area in the first row. The fitting line segment AB forms a triangle ABC with the target pixel grid area on the side close to the coordinate origin, and calculates the first uncut area of the triangle ABC in each target pixel grid. Exemplarily, in the target pixel grid a7, assuming that the side length of each pixel grid is 1, combined with the similar properties of the triangle, it can be calculated that the first uncut area is 0.033, since the total area of each pixel grid is 1 , so the gamma of the target pixel grid a7 is 0.033. According to the similarity principle of triangles, the gamma of the target pixel grids of a1-a6 can be calculated.

在本实施例中,每个目标像素格的边长设为1,但目标像素格的边长不局限于1个单位,可以是2个单位、3个单位或其他随机大于0的数值,此时每个目标像素格总面积根据正方形面积公式计算即可。可以理解地,对于外凸曲线来说,未被切割的面积处于分割线靠近坐标系原点一侧;而对于内凹曲线来说,未被切割的面积处于分割线远离坐标系原点一侧。In this embodiment, the side length of each target pixel grid is set to 1, but the side length of the target pixel grid is not limited to 1 unit, and can be 2 units, 3 units or other random values greater than 0. At this time, the total area of each target pixel grid can be calculated according to the square area formula. Understandably, for a convex curve, the uncut area is on the side of the dividing line close to the origin of the coordinate system; while for a concave curve, the uncut area is on the side of the dividing line away from the origin of the coordinate system.

图4为本申请图3实施例计算每个目标像素格第一面积的示意图。FIG. 4 is a schematic diagram of calculating the first area of each target pixel grid in the embodiment of FIG. 3 of the present application.

请参阅图4,在一实施例中,屏幕图像处理方法在执行S22:计算每个像素格未被拟合线段切割的第一面积的步骤包括多种组合情况。在第N行的目标像素格中,设每个像素格区域的边长为1,其中,N为正整数。Please refer to FIG. 4 , in one embodiment, the screen image processing method includes multiple combinations in the step of performing S22 : calculating the first area of each pixel grid not cut by the fitted line segment. In the target pixel grid in row N, the side length of each pixel grid area is set to be 1, wherein N is a positive integer.

请参阅图4中的组合1,曲线弧与第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 1 in Figure 4, when the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curve arc and the Nth row are both integers, each target pixel grid in the Nth row is not cut according to the triangle similarity calculation the first area of .

请参阅图4中的组合2,曲线弧与第N行的上交点横轴坐标为整数,下交点横轴坐标不为整数时,获取下交点横轴坐标的小数部分,根据下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 2 in Figure 4. The horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are integers, and when the horizontal axis coordinates of the lower intersection point are not integers, obtain the fractional part of the horizontal axis coordinates of the lower intersection point. The fractional part and the similarity of the triangle calculate the uncut first area of each target pixel grid in the Nth row.

示例性地,请结合图1,在第11行的目标像素格中,根据椭圆公式计算得到上交点B的横轴坐标x1=0为整数,下交点A的横轴坐标x2=6.666不为整数时,直角三角形ABC的两个直角边分别是1和6.666,进而根据直角三角形面积公式可以计算直角三角形ABC的总面积。获取下交点A的横轴坐标的小数部分和三角形的相似性计算11行的每个像素格的第一面积。For example, please refer to Figure 1, in the target pixel grid on line 11, according to the ellipse formula, the horizontal axis coordinate x1=0 of the upper intersection point B is an integer, and the horizontal axis coordinate x2=6.666 of the lower intersection point A is not an integer , the two right sides of the right triangle ABC are 1 and 6.666 respectively, and then the total area of the right triangle ABC can be calculated according to the area formula of the right triangle. Obtain the fractional part of the abscissa coordinate of the lower intersection point A and the similarity of the triangle to calculate the first area of each pixel grid in row 11.

请参阅图4中的组合3,曲线弧与第N行的上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 3 in Figure 4, the horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are not integers, and when the horizontal axis coordinates of the lower intersection point are integers, the decimal part of the horizontal axis coordinates of the upper intersection point is obtained, according to the rectangular area formula, the upper The fractional part of the horizontal axis coordinates of the intersection point and the similarity of the triangle are used to calculate the uncut first area of each target pixel grid in the Nth row.

请参阅图4中的组合4,曲线弧与第N行的上交点横轴坐标和下交点横轴坐标均不为整数时,获取上交点横轴坐标的小数部分和下交点横轴坐标的小数部分,再根据矩形面积公式、上交点横轴坐标的小数部分、下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 4 in Figure 4, when the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curve arc and the Nth row are not integers, obtain the decimal part of the horizontal axis coordinates of the upper intersection point and the decimal point of the lower intersection point horizontal axis coordinates part, and then calculate the uncut first area of each target pixel grid in the Nth row according to the rectangular area formula, the fractional part of the horizontal axis coordinates of the upper intersection point, the fractional part of the horizontal axis coordinates of the lower intersection point, and the triangle similarity.

示例性地,请结合图1,椭圆弧与第10行目标像素格的上交点横轴坐标x1=6.666和下交点横轴坐标x2=9.199均不为整数时,获取上交点横轴坐标的小数部分rem(x1)=0.666和下交点横轴坐标的小数部分rem(x2)=0.199,再根据上交点横轴坐标的小数部分和矩形面积公式获得b1目标像素格中矩形面积0.666,再根据下交点横轴坐标的小数部分和三角形的相似性计算得到b1目标像素格中梯形面积0.246,最后两个面积相加得到b1目标像素格的第一面积0.912,再根据三角形的相似性,得到第10行的每个像素格未被切割的第一面积。For example, please refer to Figure 1, when the horizontal axis coordinates of the upper intersection point x1=6.666 and the lower intersection point horizontal axis coordinates x2=9.199 of the ellipse arc and the target pixel grid in the 10th row are not integers, obtain the decimal number of the upper intersection point horizontal axis coordinates Part rem(x1)=0.666 and the fractional part rem(x2)=0.199 of the horizontal axis coordinates of the lower intersection point, then obtain the rectangular area 0.666 in the b1 target pixel lattice according to the fractional part of the horizontal axis coordinates of the upper intersection point and the rectangular area formula, and then according to the following Calculate the fractional part of the horizontal axis coordinates of the intersection point and the similarity of the triangle to obtain the area of the trapezoid in the b1 target pixel grid of 0.246, and add the last two areas to obtain the first area of the b1 target pixel grid of 0.912, and then according to the similarity of the triangle, get the 10th The first uncut area of each pixel grid of the row.

对每一行的切割,通过采用直线段代替曲线的拟合方式,将拟合的直线段与被切割的每行目标像素格组合成三角形、梯形及矩形三种形状,再结合数学公式能够精确的组合计算每个目标像素格未被切割的第一面积,从而得到每个目标像素格的灰度系数。For the cutting of each line, by using a straight line instead of a curve fitting method, the fitted straight line and each line of target pixels to be cut are combined into three shapes: triangle, trapezoid and rectangle, combined with mathematical formulas to accurately Combining and calculating the first uncut area of each target pixel grid, so as to obtain the gamma of each target pixel grid.

在一实施例中,屏幕图像处理方法在执行S30:根据目标像素格的灰度系数处理图像数据的步骤之前包括:In one embodiment, the screen image processing method includes before performing the step of S30: processing image data according to the gamma of the target pixel grid:

将每个灰度系数乘以平滑阶数的积取整,以获取系数存储数并写入存储器。需要说明的是,取整可以是向上取整,可以是舍弃小数向上取整,也可以是四舍五入取整。The product of each gamma multiplied by the smoothing order is rounded to obtain the stored number of coefficients and written to memory. It should be noted that the rounding can be rounding up, discarding decimals and rounding up, or rounding up.

平滑阶数表示屏幕边缘发光的平滑度等级,为了方便硬件的存储,将所有的灰度系数归一化为4bit,则平滑度可以最高分为16个等级。The smoothness level indicates the smoothness level of the edge of the screen. In order to facilitate the storage of the hardware, all the gamma coefficients are normalized to 4bit, and the smoothness can be divided into 16 levels at most.

在向下取整的实施例中,将每一个目标像素格的灰度系数乘以16,得到的积舍弃小数向下取整后选取整数,存储在存储器中,使得处理后的灰度系数数值在[0,15]中间。In the embodiment of rounding down, the gamma of each target pixel grid is multiplied by 16, and the obtained product discards the decimal and rounds down to select an integer, which is stored in the memory, so that the gamma value after processing In the middle of [0,15].

示例性地,当一个目标像素格a7的灰度系数为0.033时,将0.033乘以16得到积0.528,向下取整得到0,可以转换为第1个二进制数据0000存储在存储器中。当系统调用a7的灰度系数时,读取二进制数据0000即十进制的0,将0除以16得到商0,即以0作为目标像素格a7的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a7 is 0.033, multiply 0.033 by 16 to get a product of 0.528, and round down to get 0, which can be converted into the first binary data 0000 and stored in the memory. When the system calls the gamma of a7, it reads the binary data 0000, which is 0 in decimal, and divides 0 by 16 to get the quotient 0, that is, takes 0 as the actual gamma of the target pixel grid a7 for display driving.

示例性地,当一个目标像素格a1的灰度系数为0.9时,将0.9乘以16得到积14.4,向下取整得到14,可以转换为第15个二进制数据1110存储在存储器中。当系统调用a1的灰度系数时,读取二进制数据1110即十进制的14,将14除以16得到商0.875,即以0.875作为目标像素格a1的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a1 is 0.9, multiply 0.9 by 16 to get the product 14.4, and round down to get 14, which can be converted into the 15th binary data 1110 and stored in the memory. When the system calls the gamma of a1, it reads the binary data 1110, that is, 14 in decimal, and divides 14 by 16 to obtain a quotient of 0.875, that is, 0.875 is used as the actual gamma of the target pixel grid a1 for display driving.

在向上取整的实施例中,将每一个目标像素格的灰度系数乘以16,得到的积向上取整后选取整数,存储在存储器中,使得处理后的灰度系数数值在[1,16]中间。In the embodiment of rounding up, the gamma of each target pixel grid is multiplied by 16, and the obtained product is rounded up and then an integer is selected and stored in the memory, so that the gamma value after processing is in [1, 16] Middle.

示例性地,当一个目标像素格a7的灰度系数为0.033时,将0.033乘以16得到积0.528,向上取整得到1,可以转换为第1个二进制数据0000存储在存储器中。当系统调用a7的灰度系数时,读取二进制数据0000即十进制的0,再加1得到1,将1除以16得到商0.0625,即以0.0625作为目标像素格a7的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a7 is 0.033, multiply 0.033 by 16 to get a product of 0.528, and round up to get 1, which can be converted into the first binary data 0000 and stored in the memory. When the system calls the gamma of a7, read the binary data 0000, which is 0 in decimal, add 1 to get 1, divide 1 by 16 to get the quotient 0.0625, that is, use 0.0625 as the actual gamma of the target pixel grid a7 for display drive.

示例性地,当一个目标像素格a1的灰度系数为0.9时,将0.9乘以16得到积14.4,向上取整得到15,可以转换为第15个二进制数据1110存储在存储器中。当系统调用a1的灰度系数时,读取二进制数据1110即十进制的14,再加1得到15,将15除以16得到商0.9375,即以0.9375作为目标像素格a1的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a1 is 0.9, multiply 0.9 by 16 to get a product of 14.4, and round up to get 15, which can be converted into the 15th binary data 1110 and stored in the memory. When the system calls the gamma of a1, read the binary data 1110, which is 14 in decimal, add 1 to get 15, divide 15 by 16 to get the quotient 0.9375, that is, use 0.9375 as the actual gamma of the target pixel grid a1 for display drive.

在四舍五入取整的实施例中,将每一个目标像素格的灰度系数乘以15,得到的积四舍五入取整后选取整数,存储在存储器中,使得处理后的灰度系数数值在[0,15]中间。In the embodiment of rounding and rounding, the gamma of each target pixel grid is multiplied by 15, and the obtained product is rounded and rounded to an integer and stored in the memory so that the gamma value after processing is in [0, 15] Middle.

示例性地,当一个目标像素格a8的灰度系数为0.39时,将0.39乘以15得到积5.85,四舍五入取整得到6,可以转换为第7个二进制数据0110存储在存储器中。当系统调用a7的灰度系数时,读取二进制数据0110即十进制的6,将6除以15得到商0.4,即以0.4作为目标像素格a8的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a8 is 0.39, the product 5.85 is obtained by multiplying 0.39 by 15, and rounded to an integer to obtain 6, which can be converted into the seventh binary data 0110 and stored in the memory. When the system calls the gamma of a7, it reads the binary data 0110, which is 6 in decimal, and divides 6 by 15 to get the quotient 0.4, that is, takes 0.4 as the actual gamma of the target pixel grid a8 for display driving.

示例性地,当一个目标像素格a9的灰度系数为0.87时,将0.87乘以15得到积13.05,四舍五入取整得到13,可以转换为第14个二进制数据1101存储在存储器中。当系统调用a9的灰度系数时,读取二进制数据1101即十进制的13,将13除以15得到商0.867,即以0.867作为目标像素格a9的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a9 is 0.87, the product 13.05 is obtained by multiplying 0.87 by 15, and rounded to an integer to obtain 13, which can be converted into the 14th binary data 1101 and stored in the memory. When the system invokes the gamma of a9, it reads the binary data 1101, that is, 13 in decimal, and divides 13 by 15 to obtain a quotient of 0.867, that is, 0.867 is used as the actual gamma of the target pixel grid a9 for display driving.

在另一实施例中,也可以将所有的灰度系数归一化为5bit,则平滑度可以最高分为32个等级。需要说明的是,灰度系数的归一化可以是4bit,也可以是5bit,6bit等任意位数据,本申请对此不做限定。平滑阶数可以表示屏幕边缘发光的平滑度等级。平滑阶数越大存储的数据越精确,光线平滑效果越好。平滑阶数越小则越可以有效节约存储空间。In another embodiment, all gamma coefficients can also be normalized to 5 bits, and the smoothness can be divided into 32 levels at the highest. It should be noted that the normalization of the gamma can be 4 bits, 5 bits, 6 bits, etc. any bit data, which is not limited in this application. The degree of smoothness may represent the level of smoothness of the glow at the edges of the screen. The larger the smoothing order, the more accurate the stored data and the better the light smoothing effect. The smaller the smoothing order, the more effective the storage space can be saved.

在一实施例中,屏幕图像处理方法在执行写入存储器的步骤包括:In one embodiment, the screen image processing method includes:

响应于获取系数存储数,为每行目标像素格分配一个存储字段。对应在第N行的A个目标像素格中,从第N行的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行的目标像素格的个数A和第N行的A个目标像素格的系数存储数。其中,N为正整数,A为正整数。In response to obtaining the coefficient storage number, a storage field is allocated for each row of target pixel cells. Corresponding to the A target pixel grid in the Nth row, from the first location of the storage field in the Nth row to the A+1th location in the A+1th location, write the number of the target pixel grid in the Nth row respectively. The number A and the coefficient storage number of the A target pixel grid in the Nth row. Wherein, N is a positive integer, and A is a positive integer.

请结合图1和表一,表一为每个目标像素格灰度系数的存储方式,在一实施例中,表一中为每行目标像素格分配了一个存储字段;在第一行的7个目标像素格中,从第一行的存储字段的第1区位至第8区位的8个区位中,分别写入第一行的目标像素格的个数7和第一行的7个目标像素格的系数存储数a1、a2、a3、a4、a5、a6、a7,其他行的目标像素格则以此类推。在曲线角屏幕显示的过程中,系统可以根据每行目标像素格的存储字段,直接读取该行需要调整灰度系数的目标像素格的个数。系统还可以根据每行目标像素格的存储字段,快速定位对应的灰度系数的存储位置,加快读取速度。Please combine Fig. 1 and Table 1, Table 1 is the storage mode of each target pixel grid gamma, in one embodiment, in Table 1, a storage field is allocated for each row of target pixel grid; In the target pixel grid, the number of target pixel grids in the first row and the 7 target pixels in the first row are respectively written in the 8 locations from the first to the eighth location of the storage field of the first row. The coefficient storage numbers a1, a2, a3, a4, a5, a6, a7 of the grid, and the target pixel grids of other rows can be deduced by analogy. In the process of displaying the curve angle screen, the system can directly read the number of target pixel cells whose gamma coefficient needs to be adjusted according to the storage field of each row of target pixel cells. The system can also quickly locate the storage location of the corresponding gamma coefficient according to the storage field of each row of the target pixel grid to speed up the reading speed.

表一Table I

77 a1a1 a2a2 a3a3 a4a4 a5a5 a6a6 a7a7 44 b1b1 b2b2 b3b3 b4b4 22 c1c1 c2c2 33 d1d1 d2d2 d3d3 22 e1e1 e2e2 22 f1f1 f2f2 11 g1g1 22 h1h1 h2h2 11 l1l1 11 j1j1 11 k1k1

第二实施例second embodiment

另一方面,在第一实施例的基础上,本申请还提供一种曲线角的屏幕组件,图5为本申请第二实施例中屏幕组件的结构图。On the other hand, on the basis of the first embodiment, the present application also provides a screen component with curved corners. FIG. 5 is a structural diagram of the screen component in the second embodiment of the present application.

请参阅图5,示例性地,曲线角的屏幕组件包括图像驱动器10、图像处理器20和曲线角屏幕30。图像驱动器10用于发送图像数据至图像处理器20,以使图像处理器20控制曲线角屏幕30显示图像数据。Please refer to FIG. 5 . Exemplarily, the curved-angle screen assembly includes an image driver 10 , an image processor 20 and a curved-angle screen 30 . The image driver 10 is used for sending image data to the image processor 20 so that the image processor 20 controls the curved screen 30 to display the image data.

在一实施例中,图像处理器20用于:以曲线中心为坐标系原点,将曲线角的曲线弧置于平面坐标系,与曲线弧交会的像素格为目标像素格,响应于获取曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数,根据目标像素格的灰度系数处理图像数据;控制曲线角屏幕30显示处理后的图像数据。In one embodiment, the image processor 20 is used to: take the center of the curve as the origin of the coordinate system, place the curved arc at the corner of the curve in the plane coordinate system, and the pixel grid intersecting the curved arc is the target pixel grid, and respond to the acquisition of the curved arc Calculate the gamma of each target pixel grid according to the first intersection coordinate and the second intersection coordinate of each row or column of the target pixel grid, Process the image data according to the gamma of the target pixel grid; control the curve angle screen 30 to display the processed image data.

示例性地,图像处理器20根据椭圆方程的公式可以计算得到每行目标像素格的上交点横轴坐标和下交点横轴坐标。灰度系数也可以叫做渐变系数,可以是每个目标像素格中未被切割的面积与总面积的比值。能够清晰的表示目标像素格即图像被切割后颜色渐变的程度。通过椭圆弧的弧线与每行目标像素格相交的上交点横轴坐标和下交点横轴坐标,能够计算出每个像素格中未被切割的面积与总面积的比值。Exemplarily, the image processor 20 can calculate the abscissa coordinates of the upper intersection point and the abscissa coordinates of the lower intersection point of each row of target pixel grids according to the formula of the ellipse equation. The gamma coefficient can also be called the gradient coefficient, which can be the ratio of the uncut area to the total area of each target pixel grid. It can clearly indicate the target pixel grid, that is, the degree of color gradient after the image is cut. The ratio of the uncut area to the total area in each pixel grid can be calculated through the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates where the arc of the ellipse arc intersects with each row of target pixel grids.

屏幕上每个像素格的显示亮度由驱动电流的大小进行调节控制,驱动电流为像素格的驱动组件输出至每个像素格的电流。在屏幕的边缘,为了使亮度平滑,消除偏色现象,各边缘像素格分别各自对应一个优化亮度的灰度系数。一般来说,面积比例不同,则优化亮度的灰度系数不同。The display brightness of each pixel grid on the screen is adjusted and controlled by the magnitude of the driving current, which is the current output to each pixel grid by the driving component of the pixel grid. At the edge of the screen, in order to smooth the brightness and eliminate the color cast phenomenon, each edge pixel grid corresponds to a gamma factor with optimized brightness. Generally speaking, the gamma factor of optimized brightness is different for different area ratios.

图像处理器20通过计算每行或每列目标像素格的第一交点坐标和第二交点坐标,进而确定获取每个目标像素格的灰度系数控制曲线角屏幕30显示处理后的图像数据,能快速获取每个目标像素格的灰度系数,以消除曲线角切割后产生的锯齿及偏色现象,达到节省成本的目的。The image processor 20 calculates the coordinates of the first intersection point and the coordinates of the second intersection point of each row or column of the target pixel grid, and then determines and obtains the gamma control curve angle of each target pixel grid. The screen 30 displays the processed image data, which can Quickly obtain the gamma of each target pixel grid to eliminate the jaggedness and color cast after cutting the corner of the curve, and achieve the purpose of saving costs.

在一实施例中,图像处理器20还用于:In one embodiment, the image processor 20 is also used for:

从每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;Perform a straight line from the first intersection point to the second intersection point of each row or column of the target pixel grid area to obtain a fitted line segment;

计算每个像素格未被拟合线段切割的第一面积;Calculate the first area of each pixel grid that is not cut by the fitted line segment;

计算第一面积与每个像素格的总面积的比值,以获取目标像素格的灰度系数。Calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid.

示例性地,椭圆角屏幕组件中的图像处理器20还可以用于:从每行目标像素格区域的上交点至下交点进行直线连线,以获取拟合线段;计算每个像素格未被拟合线段切割的第一面积;计算第一面积与每个像素格的总面积的比值,以获取目标像素格的灰度系数。Exemplarily, the image processor 20 in the elliptical corner screen component can also be used to: connect a straight line from the upper intersection point to the lower intersection point of each row of the target pixel grid area to obtain a fitted line segment; Fit the first area cut by the line segment; calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid.

请同时参考图1,示例性地,第一行目标像素格a1~a7区域上交点B至下交点A进行直线连线,获取拟合线段AB。第一行目标像素格区域的左下角为C点。拟合线段AB在靠近坐标原点一侧同目标像素格区域组成三角形ABC,计算三角形ABC在每个目标像素格未被切割的第一面积。示例性地,在目标像素格a7,假设每个像素格的边长为1,结合三角形的相似的性质可计算得到未被切割的第一面积为0.033,由于每个像素格的总面积为1,故目标像素格a7的灰度系数为0.033。根据三角形的相似性原理,可计算获得a1~a6目标像素格的灰度系数。Please refer to FIG. 1 at the same time. For example, the upper intersection point B and the lower intersection point A in the area of the first row of target pixel grids a1 to a7 are connected by a straight line to obtain a fitting line segment AB. The lower left corner of the target pixel grid area in the first row is point C. The fitting line segment AB forms a triangle ABC with the target pixel grid area on the side close to the coordinate origin, and calculates the first uncut area of the triangle ABC in each target pixel grid. Exemplarily, in the target pixel grid a7, assuming that the side length of each pixel grid is 1, combined with the similar properties of the triangle, it can be calculated that the first uncut area is 0.033, since the total area of each pixel grid is 1 , so the gamma of the target pixel grid a7 is 0.033. According to the similarity principle of triangles, the gamma of the target pixel grids of a1-a6 can be calculated.

在本实施例中,每个目标像素格的边长设为1,但目标像素格的边长不局限于1个单位,可以是2个单位、3个单位或其他随机大于0的数值,此时每个目标像素格总面积根据正方形面积公式计算即可。In this embodiment, the side length of each target pixel grid is set to 1, but the side length of the target pixel grid is not limited to 1 unit, and can be 2 units, 3 units or other random values greater than 0. At this time, the total area of each target pixel grid can be calculated according to the square area formula.

在一实施例中,曲线角屏幕组件中的图像处理器20还用于:第N行的目标像素格中,设每个像素格区域的边长为1,其中,N为正整数;计算每个像素格未被拟合线段切割的第一面积的步骤包括:In one embodiment, the image processor 20 in the curved corner screen assembly is also used to: in the target pixel grid of the Nth row, set the side length of each pixel grid area to be 1, where N is a positive integer; The steps of the first area of the pixel grid not cut by the fitted line segment include:

请参阅图4中的组合1,曲线弧与第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 1 in Figure 4, when the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curve arc and the Nth row are both integers, each target pixel grid in the Nth row is not cut according to the triangle similarity calculation the first area of .

请参阅图4中的组合2,曲线弧与第N行的上交点横轴坐标为整数,下交点横轴坐标不为整数时,获取下交点横轴坐标的小数部分,根据下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 2 in Figure 4. The horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are integers, and when the horizontal axis coordinates of the lower intersection point are not integers, obtain the fractional part of the horizontal axis coordinates of the lower intersection point. The fractional part and the similarity of the triangle calculate the uncut first area of each target pixel grid in the Nth row.

示例性地,请结合图1,在第11行的目标像素格中,根据椭圆公式计算得到上交点B的横轴坐标x1=0为整数,下交点A的横轴坐标x2=6.666不为整数时,直角三角形ABC的两个直角边分别是1和6.666,进而根据直角三角形面积公式可以计算直角三角形ABC的总面积。获取下交点A的横轴坐标的小数部分rem(x2)=0.666,根据下交点横轴坐标的小数部分和三角形的相似性可以计算11行的每个像素格的第一面积。For example, please refer to Figure 1, in the target pixel grid on line 11, according to the ellipse formula, the horizontal axis coordinate x1=0 of the upper intersection point B is an integer, and the horizontal axis coordinate x2=6.666 of the lower intersection point A is not an integer , the two right sides of the right triangle ABC are 1 and 6.666 respectively, and then the total area of the right triangle ABC can be calculated according to the area formula of the right triangle. Obtain the fractional part rem(x2)=0.666 of the abscissa coordinate of the lower intersection point A, and calculate the first area of each pixel grid in the 11 rows according to the similarity between the fractional part of the abscissa coordinate of the lower intersection point and the triangle.

请参阅图4中的组合3,曲线弧与第N行的上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的第一面积。Please refer to combination 3 in Figure 4, the horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are not integers, and when the horizontal axis coordinates of the lower intersection point are integers, the decimal part of the horizontal axis coordinates of the upper intersection point is obtained, according to the rectangular area formula, the upper The fractional part of the horizontal axis coordinates of the intersection point and the similarity of the triangle are used to calculate the uncut first area of each target pixel grid in the Nth row.

请参阅图4中的组合4,曲线弧与第N行的上交点横轴坐标和下交点横轴坐标均不为整数时,获取上交点横轴坐标的小数部分和下交点横轴坐标的小数部分,再根据矩形面积公式、上交点横轴坐标的小数部分、下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个目标像素格未被切割的的第一面积。Please refer to combination 4 in Figure 4, when the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curve arc and the Nth row are not integers, obtain the decimal part of the horizontal axis coordinates of the upper intersection point and the decimal point of the lower intersection point horizontal axis coordinates part, and then calculate the uncut first area of each target pixel grid in the Nth row according to the rectangular area formula, the fractional part of the horizontal axis coordinates of the upper intersection point, the fractional part of the horizontal axis coordinates of the lower intersection point, and the triangle similarity.

示例性地,请结合图1,椭圆弧与第10行的上交点横轴坐标x1=6.666和下交点横轴坐标x2=9.199均不为整数时,获取上交点横轴坐标的小数部分rem(x1)=0.666和下交点横轴坐标的小数部分rem(x2)=0.199。根据上交点横轴坐标的小数部分和矩形面积公式可以获得b1目标像素格中矩形面积0.666。根据下交点横轴坐标的小数部分和三角形的相似性可以计算得到b1目标像素格中梯形面积0.246,最后两个面积相加得到b1目标像素格的第一面积0.912。根据三角形的相似性,可以进一步得到第10行的每个目标像素格未被切割的第一面积。For example, please refer to Fig. 1, when the ellipse arc and the horizontal axis coordinates of the upper intersection point x1=6.666 and the lower intersection point horizontal axis coordinates x2=9.199 in the 10th row are not integers, obtain the decimal part of the upper intersection point horizontal axis coordinates rem( x1)=0.666 and the fractional part rem(x2)=0.199 of the abscissa coordinate of the lower intersection point. According to the fractional part of the horizontal axis coordinate of the upper intersection point and the formula of the area of the rectangle, the area of the rectangle in the b1 target pixel grid can be obtained as 0.666. According to the similarity between the fractional part of the horizontal axis coordinate of the lower intersection point and the triangle, the area of the trapezoid in the b1 target pixel grid can be calculated as 0.246, and the last two areas are added to obtain the first area of the b1 target pixel grid as 0.912. According to the similarity of the triangles, the first uncut area of each target pixel grid in row 10 can be further obtained.

对每一行的切割,通过采用直线段代替曲线的拟合方式,将切割的直线段与屏体像素点构成的目标像素格组合成三角、梯形及矩形等三种形状,再结合数学公式能够精确的组合计算每个目标像素格未被切割的第一面积,从而得到每个目标像素格的灰度系数。For the cutting of each line, by using the straight line segment instead of the curve fitting method, the target pixel grid formed by the cut straight line segment and the screen pixel points is combined into three shapes such as triangle, trapezoid and rectangle, and combined with mathematical formulas, it can accurately The combination of calculates the uncut first area of each target pixel grid, so as to obtain the gamma of each target pixel grid.

请继续参阅图5,在一实施例中,屏幕组件还包括与图像处理器20连接的存储器40,图像处理器20还用于将每个灰度系数乘以平滑阶数的积取整,以获取系数存储数并写入存储器40。Please continue to refer to FIG. 5 , in one embodiment, the screen component further includes a memory 40 connected to the image processor 20, and the image processor 20 is also used to round the product of multiplying each gamma factor by the smoothing order to an integer. The stored number of coefficients is obtained and written into the memory 40 .

平滑阶数表示屏幕边缘发光的平滑度等级,为了方便硬件的存储,图像处理器20可以将所有的灰度系数归一化为4bit,则平滑度可以最高分为16个等级。The smoothness level represents the smoothness level of the light at the edge of the screen. In order to facilitate hardware storage, the image processor 20 can normalize all the gamma coefficients to 4 bits, and the smoothness can be divided into 16 levels at most.

在向下取整的实施例中,将每一个目标像素格的灰度系数乘以16,得到的积舍弃小数向下取整后选取整数,存储在存储器40中,使得处理后的灰度系数数值在[0,15]中间。In the embodiment of rounding down, the gamma of each target pixel grid is multiplied by 16, and the obtained product discards decimals and rounds down to select an integer, which is stored in the memory 40, so that the gamma after processing The value is in the middle of [0, 15].

示例性地,当一个目标像素格a7的灰度系数为0.033时,将0.033乘以16得到积0.528,向下取整得到0,图像处理器20可以转换为第1个二进制数据0000存储在存储器40中。当图像处理器20调用a7的灰度系数时,读取二进制数据0000即十进制的0,将0除以16得到商0,即以0作为目标像素格a7的实际灰度系数进行显示驱动。Exemplarily, when the gamma of a target pixel grid a7 is 0.033, multiply 0.033 by 16 to get a product of 0.528, round down to get 0, and the image processor 20 can convert it into the first binary data 0000 and store it in the memory 40 in. When the image processor 20 invokes the gamma of a7, it reads the binary data 0000, that is, 0 in decimal, and divides 0 by 16 to obtain a quotient of 0, that is, uses 0 as the actual gamma of the target pixel grid a7 for display driving.

示例性地,当一个目标像素格a1的灰度系数为0.9时,将0.9乘以16得到积14.4,向下取整得到14,图像处理器20可以转换为第15个二进制数据1110存储在存储器40中。当图像处理器20调用a1的灰度系数时,读取二进制数据1110即十进制的14,将14除以16得到商0.875,即以0.875作为目标像素格a1的实际灰度系数进行显示驱动。Exemplarily, when the gamma of a target pixel grid a1 is 0.9, multiply 0.9 by 16 to get the product 14.4, and round down to get 14, the image processor 20 can convert the 15th binary data 1110 and store it in the memory 40 in. When the image processor 20 invokes the gamma of a1, it reads the binary data 1110, which is 14 in decimal, and divides 14 by 16 to obtain a quotient of 0.875, that is, 0.875 is used as the actual gamma of the target pixel grid a1 for display driving.

在向上取整的实施例中,图像处理器20将每一个目标像素格的灰度系数乘以16,得到的积向上取整后选取整数,存储在存储器40中,使得处理后的灰度系数数值在[1,16]中间。In the embodiment of rounding up, the image processor 20 multiplies the gamma of each target pixel grid by 16, and the obtained product is rounded up to select an integer and stored in the memory 40, so that the processed gamma The value is in the middle of [1, 16].

示例性地,当一个目标像素格a7的灰度系数为0.033时,图像处理器20将0.033乘以16得到积0.528,向上取整得到1,可以转换为第1个二进制数据0000存储在存储器40中。当图像处理器20调用a7的灰度系数时,读取二进制数据0000即十进制的0,再加1得到1,将1除以16得到商0.0625,即以0.0625作为目标像素格a7的实际灰度系数进行显示驱动。Exemplarily, when the gamma of a target pixel grid a7 is 0.033, the image processor 20 multiplies 0.033 by 16 to obtain a product of 0.528, and rounds up to obtain 1, which can be converted into the first binary data 0000 and stored in the memory 40 middle. When the image processor 20 invokes the gamma of a7, read the binary data 0000, that is, 0 in decimal, add 1 to get 1, divide 1 by 16 to get the quotient 0.0625, that is, take 0.0625 as the actual gray scale of the target pixel grid a7 Coefficients for display driving.

示例性地,当一个目标像素格a1的灰度系数为0.9时,图像处理器20将0.9乘以16得到积14.4,向上取整得到15,可以转换为第15个二进制数据1110存储在存储器40中。当图像处理器20调用a1的灰度系数时,读取二进制数据1110即十进制的14,再加1得到15,将15除以16得到商0.9375,即以0.9375作为目标像素格a1的实际灰度系数进行显示驱动。Exemplarily, when the gamma of a target pixel grid a1 is 0.9, the image processor 20 multiplies 0.9 by 16 to obtain a product of 14.4, and rounds up to obtain 15, which can be converted into the 15th binary data 1110 and stored in the memory 40 middle. When the image processor 20 invokes the gamma of a1, read the binary data 1110, that is, 14 in decimal, add 1 to get 15, divide 15 by 16 to get the quotient 0.9375, that is, take 0.9375 as the actual gray scale of the target pixel grid a1 Coefficients for display driving.

在四舍五入取整的实施例中,图像处理器20将每一个目标像素格的灰度系数乘以15,得到的积四舍五入取整后选取整数,存储在存储器40中,使得处理后的灰度系数数值在[0,15]中间。In the embodiment of rounding and rounding, the image processor 20 multiplies the gamma of each target pixel grid by 15, and the obtained product is rounded and rounded to an integer to select an integer and stored in the memory 40, so that the processed gamma The value is in the middle of [0, 15].

示例性地,当一个目标像素格a8的灰度系数为0.39时,图像处理器20将0.39乘以15得到积5.85,四舍五入取整得到6,可以转换为第7个二进制数据0110存储在存储器40中。当图像处理器20调用a7的灰度系数时,读取二进制数据0110即十进制的6,将6除以15得到商0.4,即以0.4作为目标像素格a8的实际灰度系数进行显示驱动。Exemplarily, when the gamma of a target pixel grid a8 is 0.39, the image processor 20 multiplies 0.39 by 15 to obtain a product of 5.85, and rounds to an integer to obtain 6, which can be converted into the seventh binary data 0110 and stored in the memory 40 middle. When the image processor 20 invokes the gamma of a7, it reads the binary data 0110, that is, 6 in decimal, and divides 6 by 15 to obtain a quotient of 0.4, that is, takes 0.4 as the actual gamma of the target pixel grid a8 for display driving.

示例性地,当一个目标像素格a9的灰度系数为0.87时,将0.87乘以15得到积13.05,四舍五入取整得到13,可以转换为第14个二进制数据1101存储在存储器中。当系统调用a9的灰度系数时,读取二进制数据1101即十进制的13,将13除以15得到商0.867,即以0.867作为目标像素格a9的实际灰度系数进行显示驱动。For example, when the gamma of a target pixel grid a9 is 0.87, the product 13.05 is obtained by multiplying 0.87 by 15, and rounded to an integer to obtain 13, which can be converted into the 14th binary data 1101 and stored in the memory. When the system invokes the gamma of a9, it reads the binary data 1101, that is, 13 in decimal, and divides 13 by 15 to obtain a quotient of 0.867, that is, 0.867 is used as the actual gamma of the target pixel grid a9 for display driving.

在另一实施例中,图像处理器20也可以将所有的灰度系数归一化为5bit,则平滑度可以最高分为32个等级。需要说明的是,灰度系数的归一化可以是4bit,也可以是5bit,6bit等任意位数据,本申请对此不做限定。平滑阶数可以表示屏幕边缘发光的平滑度等级。平滑阶数越大存储的数据越精确,光线平滑效果越好。平滑阶数越小则越可以有效节约存储空间。In another embodiment, the image processor 20 can also normalize all the gamma to 5 bits, and the smoothness can be divided into 32 levels at most. It should be noted that the normalization of the gamma can be 4 bits, 5 bits, 6 bits, etc. any bit data, which is not limited in this application. The degree of smoothness may represent the level of smoothness of the glow at the edges of the screen. The larger the smoothing order, the more accurate the stored data and the better the light smoothing effect. The smaller the smoothing order, the more effective the storage space can be saved.

在一实施例中,图像处理器20还用于:In one embodiment, the image processor 20 is also used for:

响应于获取系数存储数,为每行目标像素格分配一个存储字段。对应在第N行的A个目标像素格中,从第N行的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行的目标像素格的个数A和第N行的A个目标像素格的系数存储数。其中,N为正整数,A为正整数。In response to obtaining the coefficient storage number, a storage field is allocated for each row of target pixel cells. Corresponding to the A target pixel grid in the Nth row, from the first location of the storage field in the Nth row to the A+1th location in the A+1th location, write the number of the target pixel grid in the Nth row respectively. The number A and the coefficient storage number of the A target pixel grid in the Nth row. Wherein, N is a positive integer, and A is a positive integer.

请结合图1和表一,表一为每个目标像素格灰度系数的存储方式。在一实施例中,表一中图像处理器20为每行目标像素格分配了一个存储字段;在第一行的7个目标像素格中,从第一行的存储字段的第1区位至第8区位的8个区位中,分别写入第一行的目标像素格的个数7和第一行的7个目标像素格的系数存储数a1、a2、a3、a4、a5、a6、a7,其他行的目标像素格则以此类推。在曲线角屏幕显示的过程中,图像处理器20可以根据每行目标像素格的存储字段,直接读取该行需要调整灰度系数的目标像素格的个数。图像处理器20还可以根据每行目标像素格的存储字段,快速定位对应的灰度系数的存储位置,加快读取速度。Please combine Figure 1 and Table 1. Table 1 shows the storage method of the gamma of each target pixel grid. In one embodiment, the image processor 20 in Table 1 allocates a storage field for each row of target pixel grids; In the 8 zones of the 8 zones, the number 7 of the target pixel grid in the first row and the coefficient storage numbers a1, a2, a3, a4, a5, a6, a7 of the 7 target pixel grids in the first row are respectively written, The target pixel grid of other rows can be deduced in the same way. In the process of displaying the curved angle screen, the image processor 20 can directly read the number of target pixel cells whose gamma needs to be adjusted in the row according to the storage field of each row of target pixel cells. The image processor 20 can also quickly locate the storage location of the corresponding gamma coefficient according to the storage field of each row of the target pixel grid, so as to speed up the reading speed.

第三实施例third embodiment

另一方面,本申请还提供一种计算机存储介质,具体地,计算机存储介质上存储有计算机程序,计算机程序在被计算机执行时,可实现如上任一项的屏幕图像处理方法。On the other hand, the present application also provides a computer storage medium, specifically, a computer program is stored on the computer storage medium, and when the computer program is executed by a computer, any screen image processing method as described above can be realized.

示例性地,计算机存储介质上的计算机程序在实现屏幕图像处理方法并应用于图1的步骤如下:Exemplarily, the computer program on the computer storage medium implements the screen image processing method and applies the steps in FIG. 1 as follows:

S1:设每个像素格区域的边长为1,根据椭圆方程和坐标系的第一象限,获取椭圆弧r与每一行目标像素格的上交点横轴坐标和下交点横轴坐标。S1: Assuming that the side length of each pixel grid area is 1, according to the ellipse equation and the first quadrant of the coordinate system, obtain the abscissa coordinates of the upper intersection point and the lower intersection point abscissa coordinates of the ellipse arc r and each row of target pixel grids.

S2:从每行目标像素格区域的上交点至下交点进行直线连线,以获取拟合线段,计算每个像素格未被拟合线段切割的第一面积,存在如下四种情况:S2: Connect straight lines from the upper intersection point to the lower intersection point of the target pixel grid area in each row to obtain the fitted line segment, and calculate the first area of each pixel grid that is not cut by the fitted line segment. There are the following four situations:

当第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算第N行的每个像素格的第一面积;When the abscissa coordinates of the upper intersection point and the abscissa coordinates of the lower intersection point in the Nth row are both integers, the first area of each pixel grid in the Nth row is calculated according to the similarity of the triangles;

当第N行的上交点横轴坐标为整数,下交点横轴坐标不为整数时,获取下交点横轴坐标的小数部分,根据下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个像素格的第一面积;When the horizontal axis coordinate of the upper intersection point in the Nth line is an integer, and the horizontal axis coordinate of the lower intersection point is not an integer, obtain the fractional part of the horizontal axis coordinate of the lower intersection point, and calculate the Nth according to the similarity between the fractional part of the horizontal axis coordinate of the lower intersection point and the triangle The first area of each pixel grid of the row;

当第N行的上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算第N行的每个像素格的第一面积;When the horizontal axis coordinate of the upper intersection point in the Nth row is not an integer and the horizontal axis coordinate of the lower intersection point is an integer, obtain the fractional part of the horizontal axis coordinate of the upper intersection point. According to the rectangular area formula, the decimal part of the horizontal axis coordinate of the upper intersection point is similar to that of a triangle Calculate the first area of each pixel grid in the Nth row;

当第N行的上交点横轴坐标和下交点横轴坐标均不为整数时,获取上交点横轴坐标的小数部分和下交点横轴坐标的小数部分,再根据矩形面积公式、上交点横轴坐标的小数部分、下交点横轴坐标的小数部分和三角形的相似性计算第N行的每个像素格的第一面积。When the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the Nth row are not integers, obtain the fractional part of the horizontal axis coordinates of the upper intersection point and the fractional part of the lower intersection point horizontal axis coordinates, and then use the rectangular area formula, the upper intersection point horizontal axis The first area of each pixel grid in the Nth row is calculated by the fractional part of the axis coordinates, the fractional part of the horizontal axis coordinates of the lower intersection point, and the similarity of the triangle.

S3:计算第一面积与每个像素格的总面积的比值,以获取目标像素格的灰度系数。根据每个目标像素格的灰度系数处理图像数据。S3: Calculate the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid. Image data is processed according to the gamma of each target pixel bin.

在需要对灰度系数进行存储时,可以将每个灰度系数乘以平滑阶数的积取整,为每行目标像素格分配一个存储字段,将获取的系数存储数按照“系数个数+系数存储数”的排列方式写入存储器中。When it is necessary to store the gamma coefficients, the product of each gamma coefficient multiplied by the smoothing order can be rounded to an integer, and a storage field is allocated for each row of target pixel cells, and the obtained coefficients are stored according to the "number of coefficients + The arrangement of "coefficient storage number" is written into the memory.

计算机程序在实现屏幕图像处理方法的过程中,所涉及的技术细节可以参考以上各实施例,在此不再赘述。In the process of implementing the screen image processing method by the computer program, reference may be made to the above embodiments for technical details involved, which will not be repeated here.

需要说明的是,以上实施例以第一象限的椭圆切割线中每行目标像素格为计算对象进行阐述和示例,因此,使用的交点坐标数据是第一交点横轴坐标和第二交点的横轴坐标。对于其他象限或者以每列目标像素格为计算对象时,其实际上是基于第一象限的每行目标像素格旋转后的类似形状,因此,以每列目标像素格为计算对象的计算方法可以参考以上各实施例的阐述原理,使用交点坐标数据时,可以选择第一交点纵轴坐标和第二交点的纵轴坐标进行计算,在此不再赘述。It should be noted that, the above embodiments are described and illustrated with each row of target pixel grids in the ellipse cutting line of the first quadrant as the calculation object. Therefore, the intersection coordinate data used are the abscissa coordinates of the first intersection point and the abscissa coordinates of the second intersection point. axis coordinates. For other quadrants or when each column of the target pixel grid is used as the calculation object, it is actually a similar shape based on the rotation of each row of the target pixel grid in the first quadrant. Therefore, the calculation method that uses each column of the target pixel grid as the calculation object can be With reference to the principles explained in the above embodiments, when using the intersection coordinate data, the vertical axis coordinates of the first intersection point and the vertical axis coordinates of the second intersection point can be selected for calculation, and details will not be repeated here.

如上,本申请提供的曲线角屏幕图像处理方法、屏幕组件和计算机存储介质,能够实现快速获取每个目标像素格的灰度系数,以消除手机屏幕曲线角边上被切割后的锯齿及偏色问题,有效提高了显示效果。As above, the curved corner screen image processing method, screen component and computer storage medium provided by the present application can quickly obtain the gamma of each target pixel grid, so as to eliminate the jagged edges and color casts after being cut on the curved corners of the mobile phone screen problem, effectively improving the display effect.

以上仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structures or equivalent process transformations made by using the contents of the specification and drawings of this application, or directly or indirectly used in other related technical fields , are all included in the patent protection scope of the present application in the same way.

Claims (3)

1.一种曲线角的屏幕图像处理方法,其特征在于,以曲线中心为坐标系原点,将所述曲线角的曲线弧置于平面坐标系,与所述曲线弧交会的像素格为目标像素格,所述方法包括:响应于获取所述曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数;根据所述目标像素格的灰度系数处理图像数据;1. A screen image processing method of a curved angle, characterized in that, with the center of the curve as the origin of the coordinate system, the curved arc of the curved angle is placed in the plane coordinate system, and the pixel grid intersected with the curved arc is the target pixel Grid, the method includes: in response to obtaining the first intersection coordinates and the second intersection coordinates of the curved arc and each row or column of the target pixel grid, according to the first intersection coordinates of each row or each column of the target pixel grid calculating the gamma of each target pixel grid with the coordinates of the second intersection point; processing the image data according to the gamma of the target pixel grid; 所述根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数的步骤包括:从所述每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;根据同一行或同一列目标像素格区域被所述拟合线段切割形成区域中的多个三角形的相似性,计算每个像素格未被所述拟合线段切割的第一面积;计算所述第一面积与每个像素格的总面积的比值,以获取所述目标像素格的灰度系数;The step of calculating the gamma of each target pixel grid according to the first intersection coordinate and the second intersection coordinate of each row or column of the target pixel grid includes: from the target pixel grid area of each row or column Carry out a straight line connection from the first intersection point to the second intersection point to obtain a fitted line segment; calculate each pixel according to the similarity of multiple triangles in the region formed by the same row or column of the target pixel grid area cut by the fitted line segment The first area of the grid that is not cut by the fitting line segment; calculating the ratio of the first area to the total area of each pixel grid to obtain the gamma of the target pixel grid; 所述根据所述目标像素格的灰度系数处理所述图像数据的步骤之前包括:将每个灰度系数乘以平滑阶数的积取整,以获取系数存储数;响应于获取所述系数存储数,为每行或每列目标像素格分配一个存储字段;在第N行或第N列的A个目标像素格中,从第N行或第N列的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行或第N列的目标像素格的个数A和第N行或第N列的A个目标像素格的系数存储数,以将所述系数存储数写入存储器;其中,N为正整数,A为正整数;Before the step of processing the image data according to the gamma of the target pixel grid, it includes: rounding the product of each gamma multiplied by the smoothing order to obtain the coefficient storage number; in response to obtaining the coefficient Storage number, allocate a storage field for each row or column of the target pixel grid; in the Nth row or Nth column of the A target pixel grid, from the first location of the Nth row or Nth column storage field to the first In the A+1 area of the A+1 area, the number A of the target pixel grid in the Nth row or Nth column and the coefficient storage number of the A target pixel grid in the Nth row or Nth column are respectively written, as Write the coefficient storage number into the memory; wherein, N is a positive integer, and A is a positive integer; 其中,在计算第一象限中第N行的目标像素格时,设每个像素格区域的边长为1,其中,N为正整数,所述第一交点为上交点,所述第二交点为下交点;所述计算每个像素格未被所述拟合线段切割的第一面积的步骤包括:所述曲线弧与所述第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与所述第N行的所述上交点横轴坐标为整数,所述下交点横轴坐标不为整数时,获取所述下交点横轴坐标的小数部分,根据所述下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与第N行的所述上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与所述第N行的所述交点横轴坐标和所述交点横轴坐标均不为整数时,获取交点横轴坐标的小数部分和交点横轴坐标的小数部分,再根据矩形面积公式、交点横轴坐标的小数部分、交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积。Wherein, when calculating the target pixel grid of the Nth row in the first quadrant, the side length of each pixel grid area is set to be 1, wherein, N is a positive integer, the first intersection point is the upper intersection point, and the second intersection point is the lower intersection point; the step of calculating the first area of each pixel grid that is not cut by the fitting line segment includes: the horizontal axis coordinates of the upper intersection point and the lower intersection point horizontal axis coordinates of the curved arc and the Nth row are both When it is an integer, the first area of each pixel grid in the Nth row is calculated according to the similarity of the triangle; and/or, the abscissa coordinate of the upper intersection point between the curved arc and the Nth row is an integer, When the horizontal axis coordinate of the lower intersection point is not an integer, obtain the fractional part of the horizontal axis coordinate of the lower intersection point, and calculate each pixel in the Nth row according to the similarity between the fractional part of the horizontal axis coordinate of the lower intersection point and the triangle The first area of the grid; and/or, the horizontal axis coordinates of the upper intersection point of the curve arc and the Nth row are not integers, and when the horizontal axis coordinates of the lower intersection point are integers, the decimal part of the upper intersection point horizontal axis coordinates is obtained, according to Rectangular area formula, the fractional part of the horizontal axis coordinates of the upper intersection point and the similarity of the triangle to calculate the first area of each pixel grid in the Nth row; and/or, the curved arc and the Nth row When neither the horizontal axis coordinates of the intersection point nor the horizontal axis coordinates of the intersection point are integers, the decimal part of the horizontal axis coordinates of the intersection point and the decimal part of the horizontal axis coordinates of the intersection point are obtained, and then according to the rectangular area formula, the decimal part of the horizontal axis coordinates of the intersection point, and the decimal point of the horizontal axis coordinates of the intersection point The fractional part of the axis coordinates and the triangle similarity calculate the first area of each pixel grid of the Nth row. 2.一种曲线角的屏幕组件,其特征在于,包括图像驱动器、图像处理器和曲线角屏幕;所述图像驱动器用于发送图像数据至所述图像处理器,以使所述图像处理器控制所述曲线角屏幕显示所述图像数据;所述图像处理器用于:以曲线中心为坐标系原点,将所述曲线角的曲线弧置于平面坐标系,与所述曲线弧交会的像素格为目标像素格,响应于获取所述曲线弧与每行或每列目标像素格的第一交点坐标和第二交点坐标,根据所述每行或每列目标像素格的第一交点坐标和第二交点坐标计算每个目标像素格的灰度系数,根据所述目标像素格的灰度系数处理所述图像数据;2. A screen assembly with a curved angle, characterized in that it includes an image driver, an image processor and a curved angle screen; the image driver is used to send image data to the image processor, so that the image processor controls The image data is displayed on the curve angle screen; the image processor is used to: take the center of the curve as the origin of the coordinate system, place the curve arc of the curve angle in the plane coordinate system, and the pixel grid intersecting with the curve arc is The target pixel grid, in response to obtaining the first intersection coordinates and the second intersection coordinates of the curve arc and each row or column of the target pixel grid, according to the first intersection coordinates and the second intersection coordinates of each row or each column of the target pixel grid calculating the gamma of each target pixel grid at the intersection coordinates, and processing the image data according to the gamma of the target pixel grid; 所述图像处理器还用于:从每行或每列目标像素格区域的第一交点至第二交点进行直线连线,以获取拟合线段;根据同一行或同一列目标像素格区域被所述拟合线段切割形成区域中的多个三角形的相似性,计算每个像素格未被所述拟合线段切割的第一面积;计算所述第一面积与每个像素格的总面积的比值,以获取所述目标像素格的灰度系数;The image processor is also used for: performing a straight line connection from the first intersection point to the second intersection point of each row or column of the target pixel grid area to obtain a fitted line segment; The similarity of a plurality of triangles in the area formed by cutting the fitting line segment, calculating the first area of each pixel grid that is not cut by the fitting line segment; calculating the ratio of the first area to the total area of each pixel grid , to obtain the gamma of the target pixel grid; 所述图像处理器还用于将每个灰度系数乘以平滑阶数的积取整,以获取系数存储数;响应于获取所述系数存储数,为每行或每列目标像素格分配一个存储字段;在第N行或第N列的A个目标像素格中,从第N行或第N列的存储字段的第一区位至第A+1区位的A+1个区位中,分别写入第N行或第N列的目标像素格的个数A和第N行或第N列的A个目标像素格的系数存储数,以将所述系数存储数写入存储器;其中,N为正整数,A为正整数;The image processor is also used for rounding the product of each gamma coefficient multiplied by the smoothing order to obtain the coefficient storage number; in response to obtaining the coefficient storage number, assign a target pixel grid for each row or column Storage field; in the A target pixel grid of the Nth row or Nth column, from the first location of the Nth row or Nth column storage field to the A+1th location of the A+1th location, respectively write Enter the number A of the target pixel grid of the Nth row or the Nth column and the coefficient storage number of the A target pixel grid of the Nth row or the Nth column, so as to write the coefficient storage number into the memory; wherein, N is A positive integer, A is a positive integer; 其中,所述图像处理器还用于:在计算第一象限中第N行的目标像素格时,设每个像素格区域的边长为1,其中,N为正整数,所述第一交点为上交点,所述第二交点为下交点;所述计算每个像素格未被所述拟合线段切割的第一面积的步骤包括:所述曲线弧与所述第N行的上交点横轴坐标和下交点横轴坐标均为整数时,根据三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与所述第N行的所述上交点横轴坐标为整数,所述下交点横轴坐标不为整数时,获取所述下交点横轴坐标的小数部分,根据所述下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与第N行的所述上交点横轴坐标不为整数,下交点横轴坐标为整数时,获取上交点横轴坐标的小数部分,根据矩形面积公式、上交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积;和/或,所述曲线弧与所述第N行的所述上交点横轴坐标和所述下交点横轴坐标均不为整数时,获取上交点横轴坐标的小数部分和下交点横轴坐标的小数部分,再根据矩形面积公式、上交点横轴坐标的小数部分、下交点横轴坐标的小数部分和三角形的相似性计算所述第N行的每个像素格的第一面积。Wherein, the image processor is also used for: when calculating the target pixel grid of the Nth row in the first quadrant, set the side length of each pixel grid area to be 1, wherein, N is a positive integer, and the first intersection point is the upper intersection point, and the second intersection point is the lower intersection point; the step of calculating the first area of each pixel grid that is not cut by the fitting line segment includes: the curved arc is transverse to the upper intersection point of the Nth row When the axis coordinates and the horizontal axis coordinates of the lower intersection point are both integers, the first area of each pixel grid in the Nth row is calculated according to the similarity of triangles; and/or, the curve arc and the Nth row are all When the abscissa coordinate of the upper intersection point is an integer and the abscissa coordinate of the lower intersection point is not an integer, obtain the fractional part of the abscissa coordinate of the lower intersection point, and calculate according to the similarity between the fractional part of the abscissa coordinate of the lower intersection point and the triangle The first area of each pixel grid in the Nth row; and/or, when the abscissa coordinates of the upper intersection point between the curved arc and the Nth row are not integers, and the abscissa coordinates of the lower intersection point are integers, the upper The decimal part of the horizontal axis coordinates of the intersection point, according to the rectangular area formula, the decimal part of the upper intersection point horizontal axis coordinates and the similarity of the triangle to calculate the first area of each pixel grid in the Nth row; and/or, the curved arc When the horizontal axis coordinates of the upper intersection point and the horizontal axis coordinates of the lower intersection point in the Nth row are not integers, obtain the fractional part of the horizontal axis coordinates of the upper intersection point and the fractional part of the horizontal axis coordinates of the lower intersection point, and then according to the rectangle The area formula, the fractional part of the horizontal axis coordinate of the upper intersection point, the fractional part of the horizontal axis coordinate of the lower intersection point and the similarity of the triangles are used to calculate the first area of each pixel grid in the Nth row. 3.一种计算机存储介质,其特征在于,所述计算机存储介质上存储有计算机程序,所述计算机程序在被计算机执行时,可实现如权利要求1所述的屏幕图像处理方法。3. A computer storage medium, wherein a computer program is stored on the computer storage medium, and when the computer program is executed by a computer, the screen image processing method according to claim 1 can be realized.
CN202111335702.1A 2021-11-11 2021-11-11 Screen image processing method, screen assembly and computer storage medium Active CN114049272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335702.1A CN114049272B (en) 2021-11-11 2021-11-11 Screen image processing method, screen assembly and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335702.1A CN114049272B (en) 2021-11-11 2021-11-11 Screen image processing method, screen assembly and computer storage medium

Publications (2)

Publication Number Publication Date
CN114049272A CN114049272A (en) 2022-02-15
CN114049272B true CN114049272B (en) 2023-06-09

Family

ID=80208509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335702.1A Active CN114049272B (en) 2021-11-11 2021-11-11 Screen image processing method, screen assembly and computer storage medium

Country Status (1)

Country Link
CN (1) CN114049272B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116129813B (en) * 2022-10-24 2024-10-18 厦门天马显示科技有限公司 Pixel coverage method, system, display device and electronic equipment
CN116188248A (en) * 2022-12-19 2023-05-30 西安诺瓦星云科技股份有限公司 Image data conversion method, device, equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360514A (en) * 2014-11-10 2015-02-18 深圳市华星光电技术有限公司 Liquid crystal display panel for curve-shaped screen
CN107678720A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Terminal, display screen, and method for controlling display screen display

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526201B (en) * 2017-09-19 2021-04-02 厦门天马微电子有限公司 Display panel, display device and driving method of display panel
KR102435316B1 (en) * 2018-03-29 2022-08-23 후아웨이 테크놀러지 컴퍼니 리미티드 Image processing apparatus and method
CN108665842A (en) * 2018-05-14 2018-10-16 昆山国显光电有限公司 Show platen edge display control method, control device and display device
CN109685142A (en) * 2018-12-25 2019-04-26 国信优易数据有限公司 A kind of image matching method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104360514A (en) * 2014-11-10 2015-02-18 深圳市华星光电技术有限公司 Liquid crystal display panel for curve-shaped screen
CN107678720A (en) * 2017-09-30 2018-02-09 广东欧珀移动通信有限公司 Terminal, display screen, and method for controlling display screen display

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
曲面显示技术及标准化;来航曼等;《信息技术与标准化》(第12期);第19-22页 *

Also Published As

Publication number Publication date
CN114049272A (en) 2022-02-15

Similar Documents

Publication Publication Date Title
CN114049272B (en) Screen image processing method, screen assembly and computer storage medium
US11361405B2 (en) Dynamic spread anti-aliasing
US20190035049A1 (en) Dithered variable rate shading
WO2016093990A1 (en) Processing unaligned block transfer operations
CN102567948B (en) Method and device for processing pixel color
CA2906059C (en) Efficient image processing using dynamically sized tiles
CN110853146A (en) Relief modeling method and system and relief processing equipment
CN114049273B (en) Round corner screen image processing method, round corner screen assembly and computer storage medium
US9710879B2 (en) Methods and systems for computing an alpha channel value
JPH0927039A (en) Method and apparatus for computation of texel value for display of texture on object
EP2034444B1 (en) Method for rotating images
US7764292B2 (en) Three dimensional graphics processing apparatus, image display apparatus, three dimensional graphics processing method, control program and computer-readable recording medium
CN115312010A (en) An overdrive device and method
US20160292907A1 (en) Interpolation circuitry and techniques for graphics processing
CN102339469B (en) Image processing method and device
CN1902661A (en) Method of rendering graphical objects
EP2034445A1 (en) Method for drawing geometric shapes
CN116661919A (en) View control method, device, electronic device, and computer-readable storage medium
CN111179204B (en) Method for processing rectangular picture into picture containing bang frame
CN110264393B (en) Information processing method, terminal and storage medium
JP2004227338A (en) Device, method and program for processing image, and electronic device system
CN111223042B (en) Method for processing rectangular picture into round corner picture
JP2004240910A (en) Image processor and image processing method
CN108363736B (en) Storage method, device and storage system of line entity
CN117079548A (en) Pixel processing method and device for elliptical angle screen and storage medium

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
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Screen image processing methods, screen components, and computer storage media

Granted publication date: 20230609

Pledgee: Bank of Ningbo Limited by Share Ltd. Shanghai branch

Pledgor: Shanghai aoxian Technology Co.,Ltd.

Registration number: Y2024310001155

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载