[go: up one dir, main page]

CN114067004B - Image processing method, device, computer equipment and storage medium - Google Patents

Image processing method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN114067004B
CN114067004B CN202111332915.9A CN202111332915A CN114067004B CN 114067004 B CN114067004 B CN 114067004B CN 202111332915 A CN202111332915 A CN 202111332915A CN 114067004 B CN114067004 B CN 114067004B
Authority
CN
China
Prior art keywords
image
displayed
format
target
background
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
CN202111332915.9A
Other languages
Chinese (zh)
Other versions
CN114067004A (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.)
Longse Technology Co ltd
Original Assignee
Longse 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 Longse Technology Co ltd filed Critical Longse Technology Co ltd
Priority to CN202111332915.9A priority Critical patent/CN114067004B/en
Publication of CN114067004A publication Critical patent/CN114067004A/en
Application granted granted Critical
Publication of CN114067004B publication Critical patent/CN114067004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/90Determination of colour characteristics
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/60Memory management

Landscapes

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

Abstract

本申请涉及图像显示技术领域,提供了一种图像处理方法、装置、计算机设备和存储介质。本申请能够提升设备的图像显示效果。该方法包括:获取第一图像格式的待显示原图像和背景图像,将待显示原图像叠加到所述背景图像上得到合成图像,根据待显示原图像在合成图像上对应的图像区域的RGB值生成不带alpha通道的图像,将不带alpha通道的图像作为目标设备的待显示目标图像;其中,该目标设备为以第二图像格式存储待显示目标图像的设备,第二图像格式的颜色位数小于第一图像格式的颜色位数。

The present application relates to the field of image display technology, and provides an image processing method, device, computer equipment and storage medium. The present application can improve the image display effect of the device. The method comprises: obtaining an original image to be displayed and a background image in a first image format, superimposing the original image to be displayed on the background image to obtain a composite image, generating an image without an alpha channel according to the RGB value of the image area corresponding to the original image to be displayed on the composite image, and using the image without an alpha channel as a target image to be displayed by a target device; wherein the target device is a device that stores the target image to be displayed in a second image format, and the number of color bits of the second image format is less than the number of color bits of the first image format.

Description

Image processing method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of image display technologies, and in particular, to an image processing method, an image processing device, a computer device, and a storage medium.
Background
With the development of computer technology, the requirements of users on the display effect of equipment display images are higher and higher. In the prior art, when an apparatus displays an image, in order to save memory, the apparatus is often required to store an original image to be displayed in an image format with a lower color bit number, for example, in order to save memory, the embedded apparatus stores the original image to be displayed in an image format of the ARGB 1555.
However, when an image is displayed by a device such as an embedded device that stores an image in a lower color bit image format, the display effect on the image is poor, and a relatively serious jaggy phenomenon tends to occur, for example.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an image processing method, apparatus, computer device, and storage medium.
An image processing method, the method comprising:
acquiring an original image and a background image to be displayed in a first image format;
overlapping the original image to be displayed on the background image to obtain a composite image;
Generating an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image;
The method comprises the steps of taking an image without an alpha channel as a target image to be displayed of target equipment, wherein the target equipment is equipment for storing the target image to be displayed in a second image format, and the number of color bits of the second image format is smaller than that of the first image format.
In one embodiment, the generating an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image includes:
acquiring RGB values of an image area corresponding to the original image to be displayed on the composite image to obtain an RGB bitmap;
The RGB bitmap is encoded into the image without alpha channel.
In one embodiment, the first image format is ARGB8888 and the second image format is ARGB1555.
In one embodiment, the original image to be displayed includes a png image with a background color that is fully transparent.
In one embodiment, after the image without the alpha channel is taken as the target image to be displayed of the target device, the method further includes:
And the target equipment is used for receiving and storing the target image to be displayed in the second image format.
In one embodiment, the target device is further configured to superimpose the target image to be displayed in the second image format with the background image in the second image format to obtain a composite image to be displayed, and display the composite image to be displayed in a third image format, where the third image format is a first image format without an alpha channel bit.
In one embodiment, the target device comprises an embedded device.
An image processing apparatus, the apparatus comprising:
the image acquisition module is used for acquiring an original image and a background image to be displayed in a first image format;
the image superposition module is used for superposing the original image to be displayed on the background image to obtain a composite image;
The image generation module is used for superposing the original image to be displayed on the background image to obtain a composite image;
The image obtaining module is used for taking the image without the alpha channel as a target image to be displayed of target equipment, wherein the target equipment is equipment for storing the target image to be displayed in a second image format, and the number of color bits of the second image format is smaller than that of the first image format.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
the method comprises the steps of obtaining an original image to be displayed and a background image in a first image format, superposing the original image to be displayed on the background image to obtain a composite image, generating an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image, taking the image without the alpha channel as a target image to be displayed of target equipment, wherein the target equipment is equipment for storing the target image to be displayed in a second image format, and the color number of the second image format is smaller than that of the first image format.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
the method comprises the steps of obtaining an original image to be displayed and a background image in a first image format, superposing the original image to be displayed on the background image to obtain a composite image, generating an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image, taking the image without the alpha channel as a target image to be displayed of target equipment, wherein the target equipment is equipment for storing the target image to be displayed in a second image format, and the color number of the second image format is smaller than that of the first image format.
The image processing method, the device, the computer equipment and the storage medium acquire the original image and the background image to be displayed in the first image format, superimpose the original image to be displayed on the background image to obtain the composite image, generate the image without the alpha channel according to the RGB value of the image area corresponding to the original image to be displayed on the composite image, and take the image without the alpha channel as the target image to be displayed of the target equipment, wherein the target equipment is equipment for storing the target image to be displayed in the second image format, and the color number of the second image format is smaller than that of the first image format. According to the scheme, the original image to be displayed and the background image in the first image format with higher color bit number are obtained, the original image to be displayed which is used as a foreground is overlapped on the background image to obtain the overlapped composite image, RGB values of an image area corresponding to the original image to be displayed on the composite image are obtained, an image without an alpha channel is generated according to the RGB values, the image without the alpha channel is used as a target image to be displayed of target equipment to be stored and displayed in a second image format with lower color bit number, the target equipment can obtain and display the target image to be displayed with the alpha channel removed through the processing, and the image display effect is improved.
Drawings
FIG. 1 is an application scenario diagram of an image processing method in one embodiment;
FIG. 2 is a flow chart of an image processing method in one embodiment;
FIG. 3 is a schematic diagram of a png image with a background color that is fully transparent in one embodiment;
FIG. 4 is a schematic diagram of a display effect according to an embodiment of the present application;
FIG. 5 (a) is a schematic diagram showing a display effect according to the prior art;
FIG. 5 (b) is a schematic diagram illustrating another display effect according to the prior art;
FIG. 6 is a block diagram showing the structure of an image processing apparatus in one embodiment;
Fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The image processing method provided by the application can be applied to the application scene shown in fig. 1, wherein the application scene can comprise the image processing device 110 and the target device 120, and the image processing device 110 and the target device 120 can be in communication connection. Specifically, the image processing device 110 obtains an original image to be displayed and a background image in a first image format, superimposes the original image to be displayed on the background image to obtain a composite image, then the image processing device 110 generates an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image, then the image processing device 110 uses the image without the alpha channel as a target image to be displayed of the target device 120, the image processing device 110 may send the target image to be displayed to the target device 120, and the target device 120 receives the target image to be displayed sent by the image processing device 110 and stores the target image to be displayed in a second image format, wherein the color number of the second image format is smaller than that of the first image format. Among them, the image processing device 110 may be, but not limited to, various personal computers, notebook computers, servers, and the target device 120 may be, but not limited to, an embedded device.
In one embodiment, as shown in fig. 2, an image processing method is provided, and the method is described as being applied to the image processing apparatus 110 as shown in fig. 1, and the method may include the steps of:
step S201, an original image and a background image to be displayed in a first image format are acquired.
The original image to be displayed refers to an image which is originally required to be directly displayed by the target device 120 but is not subjected to image processing provided by the image processing device 110, for example, a certain icon image in png format with a background color of full transparency, and the background image refers to an image for synthesizing the original image to be displayed as a background, for example, a solid black image. The first image format refers to an image format that has a number of color bits that is greater than the second image format, for example, the first image format may be ARGB8888 and the second image format may be ARGB1555.
Specifically, before the image processing device 110 is required to perform image processing on an original image to be displayed, the image processing device 110 may acquire the original image to be displayed and a background image in the first image format, so that the image processing device 110 may perform subsequent image processing according to the original image to be displayed and the background image.
Step S202, the original image to be displayed is superimposed on the background image, and a composite image is obtained.
In this step, the composite image refers to a superimposed image obtained by superimposing each pixel of the original image to be displayed as a foreground onto a corresponding pixel of the background image as a background. For example, the image processing apparatus 110 may superimpose and synthesize an icon image in png format with a background color of full transparency with a solid black image to obtain a synthesized image composed of the black background and the icon.
Step S203, according to RGB values of the corresponding image areas of the original image to be displayed on the synthesized image, an image without an alpha channel is generated.
Before step S203, the image processing apparatus 110 may superimpose the original image to be displayed as the foreground on the background image to obtain a superimposed composite image, so that the image processing apparatus 110 may further acquire RGB values of an image area corresponding to the original image to be displayed as the foreground on the composite image.
Specifically, the RGB values in the image area corresponding to the composite image refer to the RGB values of the area or the position of the original image to be displayed on the composite image, such as RGB888 (128,128,128). And an image without alpha channel refers to an image without transparency such as png image in RGB888 format.
In this step, after the original image to be displayed as the foreground is superimposed with the background image as the background, the image processing apparatus 110 acquires RGB values of the region or the position where the original image to be displayed is located on the composite image, and generates an image without an alpha channel according to the RGB values.
And step S204, taking the image without the alpha channel as a target image to be displayed of the target device.
The target device is a device for storing a target image to be displayed in a second image format, wherein the number of color bits of the second image format is smaller than that of the first image format, for example, the target device is an embedded device for storing images in an image format of ARGB 1555.
Specifically, the image processing device 110 uses the image without the alpha channel as the target image to be displayed of the target device, and stores and displays the target image in the second image format with a lower color bit number, so that the target device can obtain and display the target image to be displayed with the alpha channel removed through the above processing, and the image display effect of the target device is improved.
In the image processing method, an original image to be displayed and a background image in a first image format are obtained, the original image to be displayed is overlapped on the background image to obtain a composite image, an image without an alpha channel is generated according to RGB values of an image area corresponding to the original image to be displayed on the composite image, the image without the alpha channel is used as a target image to be displayed of target equipment, wherein the target equipment is equipment for storing the target image to be displayed in a second image format, and the color number of the second image format is smaller than that of the first image format. According to the scheme, the original image to be displayed and the background image in the first image format with higher color bit number are obtained, the original image to be displayed which is used as a foreground is overlapped on the background image to obtain the overlapped composite image, RGB values of an image area corresponding to the original image to be displayed on the composite image are obtained, an image without an alpha channel is generated according to the RGB values, the image without the alpha channel is used as a target image to be displayed of target equipment to be stored and displayed in a second image format with lower color bit number, the target equipment can obtain and display the target image to be displayed with the alpha channel removed through the processing, and the image display effect is improved.
In one embodiment, the generating an image without an alpha channel in step S203 according to the RGB values of the image area corresponding to the original image to be displayed on the composite image includes obtaining the RGB values of the image area corresponding to the original image to be displayed on the composite image, obtaining an RGB bitmap, and encoding the RGB bitmap into the image without an alpha channel.
In this embodiment, the RGB bitmap refers to an uncompressed RGB bitmap obtained according to RGB values of an area or a position where an original image to be displayed on a composite image, such as an RGB bitmap of an icon image in an uncompressed BMP format. Specifically, after the original image to be displayed as the foreground is superimposed with the background image as the background, the image processing apparatus 110 obtains RGB values of the region or the position where the original image to be displayed is located on the composite image, obtains an uncompressed RGB bitmap according to the RGB values, and then encodes the uncompressed RGB bitmap into an image without an alpha channel.
According to the technical scheme, the RGB values of the region or the position of the original image to be displayed on the composite image can be accurately recorded through the RGB bitmap, so that the image without the alpha channel obtained through encoding according to the RGB bitmap can accurately record the image information of the original image to be displayed, and the target device can be better in image display effect when the target device displays the target image to be displayed with the alpha channel removed through the processing.
In one example of an application, the first image format may be ARGB8888 and the second image format may be ARGB1555.
Specifically, the image processing device 110 obtains an original image to be displayed and a background image in the format of ARGB8888, superimposes the original image to be displayed on the background image to obtain a composite image, generates an image without an alpha channel according to the RGB value of an image area corresponding to the original image to be displayed on the composite image, and uses the image without the alpha channel as a target image to be displayed of the target device 120, so that the target device 120 can store the target image to be displayed in the format of ARGB 1555.
Further, in some embodiments, the image processing apparatus 110 may acquire a png image with a background color of full transparency and a background image in the ARGB8888 format, and the png image with a background color of full transparency may be an image as shown in fig. 3, for example. Then, the image processing apparatus 110 superimposes the png image with the background color being fully transparent on the background image to obtain a composite image, and then the image processing apparatus 110 generates an image without an alpha channel according to RGB values of an image area corresponding to the png image with the background color being fully transparent on the composite image, and the image processing apparatus 110 uses the image without an alpha channel as a target image to be displayed of the target apparatus 120, so that the target apparatus 120 can store the apparatus for the target image to be displayed in an ARGB1555 format.
Fig. 4, 5 (a) and 5 (b) are image display effect contrast charts of the target device. Fig. 4 is an image processed and displayed by a target device (with an ARGB1555 frame buffer) after being processed by the method of the present application, fig. 5 (a) is an image processed and displayed by a target device (with an ARGB1555 frame buffer) directly without being processed by the method of the present application, and fig. 5 (b) is an image processed and displayed by a device (with an frame buffer) of a higher configuration directly. Specifically, fig. 5 (a) shows an image display effect of the target device 120 storing and displaying images in the format of ARGB1555, which has a poor image display effect and a relatively serious jaggy phenomenon, and fig. 5 (b) shows an image display effect of a device of a relatively high configuration storing and displaying images in the format of ARGB8888, which has a good image display effect and does not have a relatively serious jaggy phenomenon.
Therefore, the image display effect corresponding to the method is basically consistent with the image display effect which is directly processed and displayed by the equipment with higher configuration, the display effect is better, the serious saw tooth phenomenon does not occur, and the image display effect is obviously better than the effect which is directly processed and displayed by the target equipment without being processed by the method. The key of this embodiment is that in the conversion process from ARGB8888 to ARGB1555, the Alpha channel is converted from 8bit to 1bit, and the precision loss is far greater than R, G, B channels (from 8bit to 5 bit), so that the value of the RGB channel is calculated in advance to replace the Alpha channel, so that the display effect can be improved.
In one embodiment, after the image without the alpha channel is taken as the target image to be displayed of the target device in the step S204, the method further comprises the step of sending the target image to be displayed to the target device.
The target image to be displayed refers to an image without an alpha channel, which is stored and displayed by the target device 120 in a second image format with a lower color number after being subjected to image processing by the image processing device 110, and the target device refers to a device which can be used for receiving and storing the target image to be displayed in the second image format, and the target device can be an embedded device which stores the image in the image format of the ARGB 1555.
Specifically, the image processing apparatus 110 sends the target image to be displayed without the alpha channel after the image processing performed by the image processing apparatus 110 to the target apparatus 120, and the target apparatus 120 receives the target image to be displayed sent by the image processing apparatus 110 and stores and displays the target image to be displayed in a second image format with a lower color number, such as the ARGB 1555. According to the technical scheme of the embodiment, the target device 120 can receive the target image to be displayed without the alpha channel after the image processing by the image processing device 110, so that the target device 120 can have a better display effect based on the target image to be displayed without the alpha channel.
In one embodiment, the target device is further configured to superimpose the target image to be displayed in the second image format with the background image in the second image format to obtain a composite image to be displayed and display the composite image to be displayed in the third image format.
The third image format refers to the first image format without alpha channel bits, and if the first image format is ARGB8888, the third image format is RGB 888.
Specifically, after the target device 120 receives the target image to be displayed, from which the alpha channel is removed, processed by the image processing device 110, and stores the target image in the second image format with a lower color number, for example, the ARGB1555, the target device 120 superimposes each pixel of the target image to be displayed, from which the alpha channel is removed, stored in the second image format with a lower color number, for example, the ARGB1555, as a foreground, onto a corresponding pixel of a background image in the second image format, for example, as a background, to obtain a superimposed composite image to be displayed, and displays the composite image to be displayed in the third image format, for example, RGB 888.
According to the technical scheme of the embodiment, the target device 120 can process and display the target image to be displayed after receiving the target image to be displayed after the image processing by the image processing device 110, so that the target device 120 can display the target image to be displayed and present a better image display effect.
It should be understood that, although the steps in the flowcharts are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least a portion of the steps in the flowcharts above may include a plurality of steps or stages that are not necessarily performed at the same time, but may be performed at different times, and the order of execution of the steps or stages is not necessarily sequential, but may be performed in rotation or alternately with at least a portion of the steps or stages in other steps or other steps.
In one embodiment, as shown in fig. 6, an image processing apparatus is provided, the apparatus 600 may include:
an image obtaining module 601, configured to obtain an original image and a background image to be displayed in a first image format;
The image superimposing module 602 is configured to superimpose the original image to be displayed on the background image to obtain a composite image;
An image generating module 603, configured to generate an image without an alpha channel according to RGB values of an image area corresponding to the original image to be displayed on the composite image;
the image obtaining module 604 is configured to take the image without the alpha channel as a target image to be displayed of a target device, where the target device is a device that stores the target image to be displayed in a second image format, and the number of color bits of the second image format is smaller than the number of color bits of the first image format.
In one embodiment, the image generating module 603 is configured to obtain RGB values of an image area corresponding to the original image to be displayed on the composite image, obtain an RGB bitmap, and encode the RGB bitmap into the image without the alpha channel.
In one embodiment, the first image format is ARGB8888 and the second image format is ARGB1555.
In one embodiment, the original image to be displayed comprises a png image with a background color that is fully transparent.
In one embodiment, the apparatus 600 further includes an image sending module configured to send the target image to be displayed to the target device, and the target device is configured to receive and store the target image to be displayed in the second image format.
In one embodiment, the target device is further configured to superimpose the target image to be displayed in the second image format with the background image in the second image format to obtain a composite image to be displayed and display the composite image to be displayed in a third image format, where the third image format is a first image format without an alpha channel bit.
In one embodiment, the target device comprises an embedded device.
For specific limitations of the image processing apparatus, reference may be made to the above limitations of the image processing method, and no further description is given here. The respective modules in the above-described image processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a communication interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, an operator network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement an image processing method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1.一种图像处理方法,其特征在于,所述方法包括:1. An image processing method, characterized in that the method comprises: 获取ARGB8888格式的待显示原图像和背景图像;所述待显示原图像包括背景色为全透明的png图像;Obtain the original image to be displayed and the background image in ARGB8888 format; the original image to be displayed includes a png image with a fully transparent background color; 将所述待显示原图像叠加到所述背景图像上,得到合成图像;Superimposing the original image to be displayed on the background image to obtain a composite image; 获取所述待显示原图像在所述合成图像上对应的图像区域的RGB值,根据所述RGB值得到无压缩的RGB位图;所述RGB位图包括无压缩的BMP格式的图标图像的RGB位图;Obtaining RGB values of an image area corresponding to the original image to be displayed on the composite image, and obtaining an uncompressed RGB bitmap according to the RGB values; the RGB bitmap includes an uncompressed RGB bitmap of an icon image in a BMP format; 将所述RGB位图编码为不带alpha通道的图像;Encode the RGB bitmap into an image without an alpha channel; 将所述不带alpha通道的图像作为目标设备的待显示目标图像,将所述待显示目标图像发送至所述目标设备;所述目标设备为以ARGB1555格式存储所述待显示目标图像的嵌入式设备;所述目标设备,还用于将所述ARGB1555格式的待显示目标图像与所述ARGB1555格式的背景图像进行叠加,得到待显示合成图像并以RGB888格式显示所述待显示合成图像;所述RGB888格式为不带alpha通道位的ARGB8888格式。The image without alpha channel is used as the target image to be displayed of the target device, and the target image to be displayed is sent to the target device; the target device is an embedded device that stores the target image to be displayed in ARGB1555 format; the target device is also used to superimpose the target image to be displayed in ARGB1555 format with the background image in ARGB1555 format to obtain a composite image to be displayed and display the composite image to be displayed in RGB888 format; the RGB888 format is the ARGB8888 format without the alpha channel bit. 2.根据权利要求1所述的方法,其特征在于,所述待显示原图像是指原来需要直接由所述目标设备显示的、但未经过图像处理设备处理的图像。2. The method according to claim 1 is characterized in that the original image to be displayed refers to an image that originally needs to be directly displayed by the target device but has not been processed by an image processing device. 3.根据权利要求2所述的方法,其特征在于,所述图像处理设备是个人计算机。3. The method according to claim 2, characterized in that the image processing device is a personal computer. 4.根据权利要求2所述的方法,其特征在于,所述图像处理设备是服务器。The method according to claim 2 , wherein the image processing device is a server. 5.根据权利要求1所述的方法,其特征在于,所述背景图像包括纯黑色的图像。The method according to claim 1 , wherein the background image comprises a pure black image. 6.根据权利要求1所述的方法,其特征在于,所述合成图像是作为前景的所述待显示原图像的每个像素叠加到作为背景的所述背景图像的相应像素上得到的叠加后的图像。6. The method according to claim 1 is characterized in that the composite image is a superimposed image obtained by superimposing each pixel of the original image to be displayed as a foreground onto the corresponding pixel of the background image as a background. 7.根据权利要求6所述的方法,其特征在于,所述合成图像是黑色背景和图标构成的合成图像。7 . The method according to claim 6 , wherein the composite image is a composite image consisting of a black background and an icon. 8.一种图像处理装置,其特征在于,所述装置包括:8. An image processing device, characterized in that the device comprises: 图像获取模块,用于获取ARGB8888格式的待显示原图像和背景图像;所述待显示原图像包括背景色为全透明的png图像;An image acquisition module is used to acquire an original image to be displayed and a background image in ARGB8888 format; the original image to be displayed includes a png image with a fully transparent background color; 图像叠加模块,用于将所述待显示原图像叠加到所述背景图像上,得到合成图像;An image superposition module, used for superimposing the original image to be displayed on the background image to obtain a composite image; 图像生成模块,用于获取所述待显示原图像在所述合成图像上对应的图像区域的RGB值,根据所述RGB值得到无压缩的RGB位图;所述RGB位图包括无压缩的BMP格式的图标图像的RGB位图;将所述RGB位图编码为不带alpha通道的图像;An image generation module, used for obtaining RGB values of an image area corresponding to the original image to be displayed on the composite image, and obtaining an uncompressed RGB bitmap according to the RGB values; the RGB bitmap includes an uncompressed RGB bitmap of an icon image in a BMP format; and encoding the RGB bitmap into an image without an alpha channel; 图像得到模块,用于将所述不带alpha通道的图像作为目标设备的待显示目标图像,将所述待显示目标图像发送至所述目标设备;所述目标设备为以ARGB1555格式存储所述待显示目标图像的嵌入式设备;所述目标设备,还用于将所述ARGB1555格式的待显示目标图像与所述ARGB1555格式的背景图像进行叠加,得到待显示合成图像并以RGB888格式显示所述待显示合成图像;所述RGB888格式为不带alpha通道位的ARGB8888格式。An image acquisition module is used to use the image without an alpha channel as a target image to be displayed of a target device, and send the target image to be displayed to the target device; the target device is an embedded device that stores the target image to be displayed in ARGB1555 format; the target device is also used to superimpose the target image to be displayed in ARGB1555 format with the background image in ARGB1555 format to obtain a composite image to be displayed and display the composite image to be displayed in RGB888 format; the RGB888 format is the ARGB8888 format without an alpha channel bit. 9.一种计算机设备,包括存储器和处理器,所述存储器存储有计算机程序,其特征在于,所述处理器执行所述计算机程序时实现权利要求1至7中任一项所述的方法的步骤。9. A computer device, comprising a memory and a processor, wherein the memory stores a computer program, wherein the processor implements the steps of the method according to any one of claims 1 to 7 when executing the computer program. 10.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现权利要求1至7中任一项所述的方法的步骤。10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
CN202111332915.9A 2021-11-11 2021-11-11 Image processing method, device, computer equipment and storage medium Active CN114067004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111332915.9A CN114067004B (en) 2021-11-11 2021-11-11 Image processing method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111332915.9A CN114067004B (en) 2021-11-11 2021-11-11 Image processing method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114067004A CN114067004A (en) 2022-02-18
CN114067004B true CN114067004B (en) 2025-05-27

Family

ID=80275074

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111332915.9A Active CN114067004B (en) 2021-11-11 2021-11-11 Image processing method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114067004B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116245706B (en) * 2023-05-09 2023-07-14 深圳市乐升半导体有限公司 Pixel mixing method and device for base map and png map
CN116912143A (en) * 2023-07-20 2023-10-20 上海蜜度信息技术有限公司 Image synthesis method, equipment and computer-readable medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389558A (en) * 2017-08-03 2019-02-26 广州汽车集团股份有限公司 A kind of method and device for eliminating image border sawtooth
CN112565771A (en) * 2020-11-30 2021-03-26 上海博泰悦臻电子设备制造有限公司 Picture compression method and device, electronic equipment and medium
CN112785511A (en) * 2020-06-30 2021-05-11 青岛经济技术开发区海尔热水器有限公司 Image anti-aliasing processing method and electrical equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6738071B2 (en) * 2001-10-25 2004-05-18 Hewlett-Packard Development Company, L.P. Dynamically anti-aliased graphics
US7970206B2 (en) * 2006-12-13 2011-06-28 Adobe Systems Incorporated Method and system for dynamic, luminance-based color contrasting in a region of interest in a graphic image
WO2009081623A1 (en) * 2007-12-20 2009-07-02 Sharp Kabushiki Kaisha Image processing device and display device including it
CN101668144B (en) * 2009-09-24 2011-08-17 深圳市同洲电子股份有限公司 Method for realizing semitransparent effect of image layer on video layer, device and set top box
CN111179386A (en) * 2020-01-03 2020-05-19 广州虎牙科技有限公司 Animation generation method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389558A (en) * 2017-08-03 2019-02-26 广州汽车集团股份有限公司 A kind of method and device for eliminating image border sawtooth
CN112785511A (en) * 2020-06-30 2021-05-11 青岛经济技术开发区海尔热水器有限公司 Image anti-aliasing processing method and electrical equipment
CN112565771A (en) * 2020-11-30 2021-03-26 上海博泰悦臻电子设备制造有限公司 Picture compression method and device, electronic equipment and medium

Also Published As

Publication number Publication date
CN114067004A (en) 2022-02-18

Similar Documents

Publication Publication Date Title
US11373275B2 (en) Method for generating high-resolution picture, computer device, and storage medium
CN114418825B (en) Image processing method, image processing device, computer equipment and storage medium
CN106030652B (en) Method, system and composite display controller for providing output surface and computer medium
CN114067004B (en) Image processing method, device, computer equipment and storage medium
GB2539241B (en) Video processing system
CN112070863A (en) Animation file processing method, apparatus, computer-readable storage medium and computer device
WO2020248948A1 (en) Animation file processing method and apparatus, computer readable storage medium, and computer device
CN114040246A (en) Image format conversion method, device, equipment and storage medium of graphic processor
CN112150586B (en) Animation processing method, device, computer readable storage medium and computer equipment
CN114245137B (en) Video frame processing method performed by GPU and video frame processing device including GPU
CN110189384A (en) Image compression method, device, computer equipment and storage medium based on Unity3D
CN114998170B (en) Reversible secret image sharing method and system based on palette image
US20250252625A1 (en) Target image display method and display apparatus, electronic device, and storage medium
US11706463B2 (en) Video synthesis method, apparatus, computer device and readable storage medium
CN114691069A (en) Image display adjustment method and device and electronic equipment
CN107102827B (en) Method for improving quality of image object and apparatus for performing the same
CN111739112A (en) Image processing method, device, computer equipment and storage medium
CN118803179A (en) Image processing method, image processing device, electronic device and storage medium
CN115063333B (en) Image processing method, device, electronic device and computer readable storage medium
CN117196924A (en) Watermark adding method, watermark adding device, computer equipment and storage medium
CN118135079B (en) Three-dimensional scene roaming drawing method, device and equipment based on cloud fusion
CN119031250B (en) Image processing method and device and electronic equipment
CN119011737A (en) Image compression method, device, computer equipment and storage medium
CN115908115B (en) Face image processing method, live image processing device and electronic equipment
JP2005322233A (en) Memory efficient method and apparatus for compression encoding large overlaid camera images

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