Screen corner generation method, device, electronic device and storage medium

By collecting and processing the pixel values ​​of the corners of the picture and retaining the target pixel values ​​according to the curve parameters, the problems of corner burrs and non-smooth curves in the prior art are solved, and the display quality is significantly improved.

CN113553128BInactive Publication Date: 2024-11-05BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202010334878.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-04-24
Publication Date
2024-11-05
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, the edge corner processing of the picture is burrs, and the curve is not smooth, resulting in blurred edge pixels, affecting the display quality of the picture.

Method used

The first pixel value and surrounding pixel value of the pixel point to be processed are collected, and the target pixel value located inside the curve parameter is calculated and retained according to the curve parameter of the screen corners, and the smoothness of the edges and corners of the screen are improved through multiple sampling processing.

Benefits of technology

It effectively improves the display quality of the picture, and through intensive sampling processing, the edges and corners of the picture are smoother and clearer, reducing edge blur.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113553128B_ABST
    Figure CN113553128B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, electronic device and storage medium for generating screen corners, which collects the first pixel value of a pixel to be processed located at a screen corner and the second pixel value of at least one pixel around the pixel to be processed, and calculates the target pixel value of the pixel to be processed based on the first pixel value and the second pixel value; then, based on the curve parameter corresponding to the screen corner, the target pixel value of the pixel to be processed located inside the curve parameter is retained. The embodiment of the present application not only collects the first pixel value of the pixel to be processed, but also collects the second pixel value of at least one pixel around the pixel to be processed, and the number of sampled pixels is dense, so that the screen corners processed by multiple sampling are smoother and clearer, effectively improving the display quality of the screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application generally relates to the field of image processing technology, and specifically relates to a method, device, electronic device and storage medium for generating picture corners. Background Art

[0002] In modern society, electronic devices such as mobile phones and tablet computers have been widely popularized and used. People browse web pages, obtain information, and play games through these electronic devices, which greatly enriches their daily lives.

[0003] As the appearance of the screen of the electronic device develops from right angles to rounded corners, the screen display also needs to be adjusted accordingly to adapt to the change in screen shape. At present, the relevant technology uses 3D image processing tools such as Open GL to process the corners of the screen.

[0004] In the process of implementing the present invention, the inventors found that there are at least the following problems in the related art: the processed corners of the picture will have burrs and the curve will not be smooth, which will cause the edge pixels to be blurred, greatly affecting the display quality of the picture. Summary of the invention

[0005] In view of the above-mentioned defects or deficiencies in the related art, it is desirable to provide a method, device, electronic device and storage medium for generating picture corners, which can make the picture corners smooth and clear, and effectively improve the display quality of the picture.

[0006] In a first aspect, the present application provides a method for generating a screen corner, the method comprising:

[0007] Collecting a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of a picture;

[0008] Calculating a target pixel value of the pixel to be processed according to the first pixel value and the second pixel value;

[0009] According to the curve parameters corresponding to the screen corners, the target pixel values ​​of the pixel points to be processed located within the curve parameters are retained.

[0010] In a second aspect, the present application provides a screen corner generation device, characterized in that the device comprises:

[0011] An acquisition module configured to acquire a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of the picture;

[0012] A calculation module, configured to calculate a target pixel value of the pixel to be processed according to the first pixel value and the second pixel value;

[0013] The generating module is configured to retain the target pixel value of the pixel point to be processed located within the curve parameter according to the curve parameter corresponding to the screen corner.

[0014] In a third aspect, the present application provides an electronic device, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the instruction, the program, the code set or the instruction set is loaded and executed by the processor to implement the steps of the screen corner generation method as described in the first aspect.

[0015] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the screen corner generation method as described in the first aspect.

[0016] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0017] The embodiment of the present application provides a method, device, electronic device and storage medium for generating screen corners, by collecting the first pixel value of the pixel to be processed located at the screen corner and the second pixel value of at least one pixel around the pixel to be processed, and calculating the target pixel value of the pixel to be processed based on the first pixel value and the second pixel value; then, according to the curve parameter corresponding to the screen corner, the target pixel value of the pixel to be processed located inside the curve parameter is retained. The embodiment of the present application not only collects the first pixel value of the pixel to be processed, but also collects the second pixel value of at least one pixel around the pixel to be processed, and the number of sampled pixels is dense, so that the screen corners processed by multiple sampling are smoother and clearer, effectively improving the display quality of the screen. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0019] Figure 1 A schematic diagram of an application program interface decomposition provided in an embodiment of the present application;

[0020] Figure 2 A schematic diagram of an application program interface synthesis provided in an embodiment of the present application;

[0021] Figure 3A basic flow chart of a method for generating screen corners provided in an embodiment of the present application;

[0022] Figure 4 A schematic diagram of determining pixels to be processed in a corner area provided in an embodiment of the present application;

[0023] Figure 5 A schematic diagram of determining another pixel point to be processed in a corner area provided in an embodiment of the present application;

[0024] Figure 6 A basic structural diagram of a screen corner generation device provided in an embodiment of the present application;

[0025] Figure 7 A structural block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the application described can be implemented in an order other than those illustrated or described herein.

[0028] In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus that includes a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products, or apparatuses.

[0029] The technical terms involved in the embodiments of this application are as follows:

[0030] GPU (Graphics Processing Unit): A microprocessor used for image processing that can map graphics to corresponding pixels, calculate each pixel, and determine the final color before outputting it.

[0031] Open GL (Open Graphics Library): A cross-language, cross-platform application programming interface for rendering 2D and 3D vector graphics. This interface consists of nearly 360 different function calls and can draw simple graphics as well as complex three-dimensional scenes.

[0032] Surface Flinger: An independent system service that receives the Surface of all windows as input and calculates the position of each Surface in the final composite image based on parameters such as ZOrder, transparency, size and position. Then, HW Composer or Open GL generates the final display buffer to be displayed on a specific display device.

[0033] Fragment Shader: It is used to process each fragment generated by the rasterization stage and finally calculate the final color of each pixel.

[0034] In order to facilitate understanding of the screen corner generation method provided in the embodiment of the present application, the principle of Surface Flinger is introduced below.

[0035] In fact, each application may correspond to one or more graphical interfaces, and each interface is called a Surface. Figure 1 , which is a schematic diagram of an application interface decomposition provided by an embodiment of the present application, and it can be seen that it includes four Surfaces, namely Surface101, Surface102, Surface103 and Surface104, where Surface101 is the Home interface, and the two buttons are actually the contents of the Home Surface. Figure 2 As shown, Surface Flinger synthesizes all the graphics in the Surface according to parameters such as ZOrder, transparency, size and position, and finally submits them to the back buffer area of ​​the screen, waiting for the arrival of the next vertical synchronization signal of the screen, and then displays them on the screen.

[0036] For ease of understanding and explanation, the following Figures 3 to 7 The screen corner generation method, device, electronic device and storage medium provided by the embodiments of the present application are described in detail.

[0037] Please refer to Figure 3 , which is a basic flow chart of a method for generating screen corners provided by an embodiment of the present application. The method comprises the following steps:

[0038] S301, collecting a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of a picture.

[0039] It should be noted that the screen corner generation method of the embodiment of the present application can be applied not only to Android systems, but also to IOS systems and Windows systems, etc. The data source of the screen can include but is not limited to the interface of the application program and video animation, etc.

[0040] Optionally, in the embodiment of the present application, the distance between the surrounding pixels and the pixel to be processed is less than 1.0 floating point. In order to improve the calculation accuracy, the mediump float is increased to highp float in the fragment shader to expand the sampling range. For example, the surrounding pixels include the upper left pixel, lower left pixel, upper right pixel and lower right pixel at a distance of 0.3 times the position of the pixel to be processed; and / or, the upper left pixel, lower left pixel, upper right pixel and lower right pixel at a distance of 0.5 times the position of the pixel to be processed; and / or, the upper left pixel, lower left pixel, upper right pixel and lower right pixel at a distance of 0.8 times the position of the pixel to be processed. The advantage of this setting is that the number of sampled pixels is dense, so that the corners of the picture processed by multiple sampling will be smoother and clearer, which can effectively improve the display quality of the picture.

[0041] Optionally, the screen corners in the embodiment of the present application may include but are not limited to any one of rounded corners or oblique angles. Since there are many pixels in the picture, if all pixels are sampled and processed, a large amount of useless calculations will be added, resulting in increased power consumption of the electronic device. For this reason, in the embodiment of the present application, only the pixels in the corner area are sampled, thereby improving processing efficiency.

[0042] The following is an explanation of the process of determining the pixels to be processed in the corner area, taking the screen corner as an example. Figure 4 As shown in the figure, assuming that the upper left corner of the screen is the origin of the coordinates (0, 0), and the coordinates of the two ends of the diagonal angle A and B are (100, 0) and (0, 100) respectively, then the pixels whose horizontal coordinates are between 0 and 100 and whose vertical coordinates are also between 0 and 100 are the pixels to be processed. Similarly, if the screen corners are rounded, the coordinate range can be determined according to the rounded corner arc and rounded corner radius, which will not be described in detail.

[0043] Alternatively, if Figure 5 As shown, when the screen corners are rounded, the pixels to be processed can also be determined in the following way:

[0044] First, the relative position vector between the position coordinates of the pixel point in the picture and the coordinates of the center of the picture is obtained, and the difference between the absolute value of the relative position vector and the coordinates of the center of the picture is calculated to obtain the absolute position coordinates of the pixel point.

[0045] For example, assuming that the upper left corner of the image is the coordinate origin (0, 0), srcCoods represents the pixel point in the image, and its position coordinate is (70, 70), and centerCoods represents the center of the image, and its position coordinate is (540, 1170), then the relative position vector position is calculated by formula (1), that is, (-470, -1100).

[0046] position=srcCoods-centerCoods (1)

[0047] Furthermore, the absolute position coordinate absoluteCoods is calculated by formula (2), that is, (-70, -70). At this time, absoluteCoods already includes the direction of the pixel point relative to the coordinate system of the center of the picture.

[0048] absoluteCoods=abs(position)-centerCoods (2)

[0049] Secondly, the sum of each component in the absolute position coordinate and the fillet radius corresponding to the screen corner is calculated respectively. If the sum corresponding to each component is a positive number, the pixel point is determined to be a pixel point to be processed.

[0050] For example, by calculating through formula (3), the sum of the corresponding components is 30, so that the pixel point is determined to be the pixel point to be processed. Otherwise, there is no need to sample the pixel point, which simplifies the calculation process and reduces the power consumption of the electronic device.

[0051] distance=absoluteCoods+vec2(R) (3)

[0052] S302: Calculate a target pixel value of a pixel to be processed according to the first pixel value and the second pixel value.

[0053] For example, the collected pixel points include the pixel point C to be processed, the upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.3 times from the pixel point C to be processed, the upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.5 times from the pixel point C to be processed, and the upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.8 times from the pixel point C to be processed, a total of 13 pixel points. Further, the average value of the pixel values ​​corresponding to these 13 pixel points is calculated as the target pixel value of the pixel point C to be processed, thereby increasing the sampling density. It should be noted that the increased distance cannot exceed 1.0f, otherwise it will cause blurring around the curve and affect the appearance.

[0054] S303: retain the target pixel value of the pixel point to be processed located inside the curve parameter according to the curve parameter corresponding to the screen corner.

[0055] For example, each pixel point in the corner area is substituted into the rounded corner processing formula (4). If the formula requirements are met, it means that the pixel point to be processed is located inside the curve parameter.

[0056] R^3≤x^3+y^3 (4)

[0057] For the pixels to be processed that are outside the curve parameters, their target pixel values ​​are set to zero.

[0058] The embodiment of the present application provides a method for generating screen corners, by collecting the first pixel value of the pixel to be processed located at the screen corner and the second pixel value of at least one pixel around the pixel to be processed, and calculating the target pixel value of the pixel to be processed based on the first pixel value and the second pixel value; then, according to the curve parameter corresponding to the screen corner, the target pixel value of the pixel to be processed located inside the curve parameter is retained. The embodiment of the present application not only collects the first pixel value of the pixel to be processed, but also collects the second pixel value of at least one pixel around the pixel to be processed, and the number of sampled pixels is dense, so that the screen corners processed by multiple sampling are smoother and clearer, effectively improving the display quality of the screen.

[0059] Based on the above examples, please refer to Figure 6 , which is a screen corner generation device provided by an embodiment of the present application. Figure 6 As shown, the screen corner generating device 6 comprises:

[0060] An acquisition module 61 is configured to acquire a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of the picture;

[0061] A calculation module 62, configured to calculate a target pixel value of a pixel to be processed according to the first pixel value and the second pixel value;

[0062] The generating module 63 is configured to retain the target pixel value of the pixel point to be processed located inside the curve parameter according to the curve parameter corresponding to the screen corner.

[0063] Optionally, the distance between the surrounding pixels and the pixel to be processed is less than 1.0 floating point.

[0064] Optionally, the surrounding pixels include an upper left pixel, a lower left pixel, an upper right pixel and a lower right pixel at a position 0.3 times the distance from the pixel to be processed; and / or,

[0065] The upper left pixel, lower left pixel, upper right pixel and lower right pixel at a distance of 0.5 times from the pixel to be processed; and / or,

[0066] The upper left pixel, lower left pixel, upper right pixel, and lower right pixel at a distance of 0.8 times the distance from the pixel to be processed.

[0067] Optionally, the screen corners include any one of rounded corners or beveled corners.

[0068] Optionally, when the screen corners are rounded, the acquisition module 61 is further used to:

[0069] Obtain the relative position vector between the position coordinates of the pixel point in the picture and the coordinates of the center of the picture, and calculate the difference between the absolute value of the relative position vector and the coordinates of the center of the picture to obtain the absolute position coordinates of the pixel point;

[0070] The sum of each component in the absolute position coordinate and the fillet radius corresponding to the screen corner is calculated respectively. If the sum corresponding to each component is a positive number, the pixel point is determined to be a pixel point to be processed.

[0071] It should be noted that, for the description of the same steps and the same contents in this embodiment as those in other embodiments, reference can be made to the description in other embodiments and will not be repeated here.

[0072] The embodiment of the present application provides a screen corner generation device, wherein the acquisition module is configured to acquire a first pixel value of a pixel to be processed located at a screen corner and a second pixel value of at least one pixel surrounding the pixel to be processed; the calculation module is configured to calculate a target pixel value of the pixel to be processed based on the first pixel value and the second pixel value; further, the generation module is configured to retain the target pixel value of the pixel to be processed located within the curve parameter according to the curve parameter corresponding to the screen corner. The embodiment of the present application not only acquires the first pixel value of the pixel to be processed, but also acquires the second pixel value of at least one pixel surrounding the pixel to be processed. The number of sampled pixels is dense, so that the screen corners processed by multiple sampling are smoother and clearer, effectively improving the display quality of the screen.

[0073] Based on the above examples, please refer to Figure 7 , which is a structural block diagram of an electronic device provided in an embodiment of the present application. The electronic device 701 includes a processor 7011 and a memory 7012, wherein the processor 7011 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 7011 may be implemented in at least one hardware form of digital signal processing (DSP), field programmable gate array (FPGA), and programmable logic array (PLA).

[0074] The processor 7011 may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a central processing unit (CPU); the coprocessor is a low-power processor for processing data in the standby state.

[0075] In addition, the processor 7011 may be integrated with a graphics processing unit (GPU), which is used to render and draw the content to be displayed on the display screen. In some embodiments, the processor 7011 may also include an artificial intelligence (AI) processor, which is used to process computing operations related to machine learning.

[0076] The memory 7012 may include one or more computer-readable storage media, which may be non-transitory. The memory 7012 may also include a high-speed random access memory, and a non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In some embodiments, the non-transitory computer-readable storage medium in the memory 7012 is used to store at least one program, which is executed by the processor 7011 to implement the screen corner generation method provided in the method embodiment of the present application.

[0077] In some embodiments, the electronic device 701 may further include a peripheral device interface 7013 and at least one peripheral device. The processor 7011, the memory 7012 and the peripheral device interface 7013 may be connected via a bus or a signal line. Each peripheral device may be connected to the peripheral device interface 7013 via a bus, a signal line or a circuit board.

[0078] Specifically, the peripheral devices include but are not limited to the radio frequency circuit 7014, the touch display screen 7015 and the power supply 7016. The peripheral device interface 7013 can be used to connect at least one peripheral device related to input / output (I / O) to the processor 7011 and the memory 7012. In some embodiments, the processor 7011, the memory 7012 and the peripheral device interface 7013 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 7011, the memory 7012 and the peripheral device interface 7013 can be implemented on a separate chip or circuit board, which is not limited in the embodiments of the present application.

[0079] The radio frequency circuit 7014 is used to receive and transmit radio frequency (RF) signals, also known as electromagnetic signals. The radio frequency circuit 7014 communicates with communication networks and other communication devices through electromagnetic signals. The radio frequency circuit 7014 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals into electrical signals. Optionally, the radio frequency circuit 7014 includes an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The radio frequency circuit 7014 can communicate with other devices through at least one wireless communication protocol. The wireless communication protocol includes but is not limited to a metropolitan area network, various generations of mobile communication networks (2G, 3G, 4G and 5G), a wireless local area network and / or a wireless fidelity (Wireless Fidelity, WiFi) network. In some embodiments, the radio frequency circuit 7014 may also include circuits related to near field communication (NFC).

[0080] The display screen 7015 is used to display the user interface (UI). The UI may include graphics, text, icons, videos, and any combination thereof. When the display screen 7015 is a touch display screen, the display screen 7015 also has the ability to collect touch signals on the surface or above the surface of the display screen 7015. The touch signal can be input to the processor 7011 as a control signal for processing. At this time, the display screen 7015 can also be used to provide virtual buttons and / or virtual keyboards, also known as soft buttons and / or soft keyboards. In some embodiments, the display screen 7015 can be one, set on the front panel of the electronic device 701; in other embodiments, the display screen 7015 can be at least two, respectively set on different surfaces of the electronic device 701 or in a folding design; in some other embodiments, the display screen 7015 can be a flexible display screen, set on the curved surface or folding surface of the electronic device 701. Even, the display screen 7015 can also be set to a non-rectangular irregular shape, that is, a special-shaped screen. The display screen 7015 can be made of materials such as a liquid crystal display (LCD) and an organic light-emitting diode (OLED).

[0081] Those skilled in the art will understand that Figure 7 The structure shown in the figure does not constitute a limitation on the electronic device 101, and may include more or less components than those shown in the figure, or combine certain components, or adopt a different component arrangement.

[0082] It should be noted that the electronic device 701 involved in the embodiment of the present application may include but is not limited to a personal digital assistant (PDA), a tablet computer, a wireless handheld device, a mobile phone, etc.

[0083] As another aspect, an embodiment of the present application provides a computer-readable storage medium for storing program code, wherein the program code is used to execute any one of the implementation methods of the screen corner generation methods of the aforementioned embodiments.

[0084] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0085] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms. The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment.

[0086] In addition, each functional module in each embodiment of the present application may be integrated into a processing unit, or each module may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a computer-readable storage medium.

[0087] Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the whole or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the screen corner generation method of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0088] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for generating screen corners, characterized in that: The method comprises: Collecting a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of a picture; Calculating a target pixel value of the pixel to be processed according to an average value of the first pixel value and the second pixel value; According to the curve parameters corresponding to the screen corners, retain the target pixel values ​​of the pixel points to be processed that are located within the curve parameters; The screen corners include any one of rounded corners or oblique corners; When the screen corners are rounded, the pixels to be processed are determined in the following manner: Obtaining a relative position vector between the position coordinates of a pixel point in the picture and the coordinates of the center of the picture, and calculating the difference between the absolute value of the relative position vector and the coordinates of the center of the picture to obtain the absolute position coordinates of the pixel point; The sum of each component in the absolute position coordinate and the fillet radius corresponding to the screen corner is calculated respectively, and if the sum corresponding to each component is a positive number, the pixel point is determined to be the pixel point to be processed.

2. The method for generating screen corners according to claim 1, characterized in that: The distance between the surrounding pixel points and the pixel point to be processed is less than 1.0 floating point.

3. The method for generating screen corners according to claim 2, characterized in that: The surrounding pixels include an upper left pixel, a lower left pixel, an upper right pixel and a lower right pixel at a distance of 0.3 times from the pixel to be processed; and / or, The upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.5 times from the pixel point to be processed; and / or, The upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.8 times from the pixel point to be processed.

4. A screen corner generation device, characterized in that: The device comprises: An acquisition module configured to acquire a first pixel value of a pixel to be processed and a second pixel value of at least one pixel around the pixel to be processed, wherein the pixel to be processed is located at a corner of the picture; A calculation module, configured to calculate a target pixel value of the pixel to be processed according to an average value of the first pixel value and the second pixel value; A generating module configured to retain the target pixel value of the pixel point to be processed located within the curve parameter according to the curve parameter corresponding to the screen corner; The screen corners include any one of rounded corners or oblique corners; When the screen corners are rounded, the pixels to be processed are determined in the following manner: Obtaining a relative position vector between the position coordinates of a pixel point in the picture and the coordinates of the center of the picture, and calculating the difference between the absolute value of the relative position vector and the coordinates of the center of the picture to obtain the absolute position coordinates of the pixel point; The sum of each component in the absolute position coordinate and the fillet radius corresponding to the screen corner is calculated respectively, and if the sum corresponding to each component is a positive number, the pixel point is determined to be the pixel point to be processed.

5. The screen corner generating device according to claim 4, characterized in that: The distance between the surrounding pixel points and the pixel point to be processed is less than 1.0 floating point.

6. The screen corner generating device according to claim 5, characterized in that: The surrounding pixels include an upper left pixel, a lower left pixel, an upper right pixel and a lower right pixel at a distance of 0.3 times from the pixel to be processed; and / or, The upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.5 times from the pixel point to be processed; and / or, The upper left pixel point, the lower left pixel point, the upper right pixel point and the lower right pixel point at a distance of 0.8 times from the pixel point to be processed.

7. An electronic device, characterized in that: The electronic device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the instruction, the program, the code set or the instruction set is loaded and executed by the processor to implement the steps of the screen corner generation method as described in any one of claims 1 to 3.

8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the steps of the screen corner generation method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Image processing method and device, computer equipment and storage medium

    CN110619614A

  • Image sharpening method and device, and storage medium

    CN110660031A

  • Image processing method and display driving device

    CN110930919A

  • Method of antinoise of edge sawteeth in zooming images

    CN1917560A

  • Image processing apparatus, image processing method, and program

    US20150138315A1