Image processing method, device, system and storage medium

文档序号:1493703 发布日期:2020-02-04 浏览:15次 中文

阅读说明:本技术 一种图像处理方法、设备、系统及存储介质 (Image processing method, device, system and storage medium ) 是由 陈奋 王黎 郑元华 于 2018-09-29 设计创作,主要内容包括:本发明实施例提供了一种图像处理方法、设备、系统及存储介质,其中,方法包括:获取待显示的图像数据,所述图像数据中的每个像素点的数据包括颜色值和透明度值;对所述图像数据中每个像素点的数据进行分离处理,得到所述图像数据的颜色值和透明度关联数据;将所述透明度关联数据作为第一路数据,并将所述颜色值作为第二路数据,向第二图像处理设备分别发送所述第一路数据和第二路数据。通过这种方式,实现了对透明度值的传输,提高了图像传输效率。(The embodiment of the invention provides an image processing method, equipment, a system and a storage medium, wherein the method comprises the following steps: acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value; separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data; and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment. By the mode, the transmission of the transparency value is realized, and the image transmission efficiency is improved.)

1. An image processing method applied to a first image processing apparatus, the method comprising:

acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value;

separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data;

and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

2. The method according to claim 1, wherein said sending the first way data and the second way data to the second image processing device respectively comprises:

sending the first path of data to the second image processing device through a first interface;

and sending the second path of data to the second image processing device through a second interface.

3. The method of claim 2,

the first interface includes a first SPI interface and the second interface includes a first RGB data interface.

4. The method according to claim 1, wherein said sending the first way data and the second way data to the second image processing device respectively comprises:

sending the first path of data and the second path of data through a first connection interface between the first image processing device and the second image processing device;

the first connection interface includes a first channel and a second channel, the first channel is used for sending the first path of data, and the second channel is used for sending the second path of data.

5. The method of claim 4, wherein the first connection interface comprises a first MipidSI interface.

6. The method of claim 1,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

7. An image processing method applied to a second image processing apparatus, the method comprising:

receiving a first path of data and a second path of data sent by first image processing equipment;

determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data;

superposing the color value and the transparency related data to obtain image data to be displayed;

and outputting the image data to be displayed to display equipment for displaying.

8. The method according to claim 7, wherein the receiving the first path of data and the second path of data sent by the first image processing device comprises:

receiving first path data sent by the first image processing equipment through a first interface through a third interface;

and receiving the second path of data sent by the first image processing device through the second interface through the fourth interface.

9. The method of claim 8,

the third interface comprises a second SPI interface and the fourth interface comprises a second RGB data interface.

10. The method according to claim 7, wherein the receiving the first path of data and the second path of data sent by the first image processing device comprises:

receiving a first path of data and a second path of data sent by the first image processing device through a second connection interface between the first image processing device and the second image processing device;

the second connection interface comprises a third channel and a fourth channel, the third channel is used for receiving the first path of data, and the fourth channel is used for receiving the second path of data.

11. The method of claim 10, wherein the second connection interface comprises a second MipiDSI interface.

12. The method of claim 7,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

13. The method according to claim 12, wherein the superimposing the color value and the transparency-related data to obtain image data to be displayed comprises:

determining a mapping relation between the transparency value and the color value of each pixel point according to mapping table data in the transparency associated data;

and superposing the color values and the transparency values according to the mapping relation to obtain image data to be displayed.

14. An image processing method applied to a first image processing apparatus, the method comprising:

acquiring initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

and sending the updated image data to a second image processing device.

15. The method of claim 14,

the updated image data comprises first-class pixel points and second-class pixel points, the values of the first-class pixel points are color values of the pixel points at the corresponding positions in the initial image data, and the values of the second-class pixel points are transparency values of the pixel points at the corresponding positions in the initial image data.

16. The method of claim 14,

the color value of each pixel point in the initial image data comprises the color values of N channels;

the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value;

wherein M and N are positive integers, and M is less than N + 1.

17. An image processing method applied to a second image processing apparatus, the method comprising:

receiving updated image data sent by first image processing equipment, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

and outputting the initial image data to a display device for display.

18. The method of claim 17,

the updated image data comprises first-class pixel points and second-class pixel points, the values of the first-class pixel points are color values of the pixel points at the corresponding positions in the initial image data, and the values of the second-class pixel points are transparency values of the pixel points at the corresponding positions in the initial image data.

19. The method of claim 17,

the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value;

the color value of each pixel point in the initial image data comprises color values of N channels, and the color values of the N channels are determined according to the arrangement sequence of the pixel points on the updated image data and the values of M channels of each pixel point;

wherein M and N are positive integers, and M is less than N + 1.

20. An image processing apparatus, comprising a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value;

separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data;

and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

21. The apparatus of claim 20, further comprising a first interface and a second interface; when the processor sends the first path of data and the second path of data to the second image processing device, the processor is specifically configured to:

sending the first path of data to the second image processing device through a first interface;

and sending the second path of data to the second image processing device through a second interface.

22. The apparatus of claim 21,

the first interface includes a first SPI interface and the second interface includes a first RGB data interface.

23. The apparatus of claim 20, further comprising a first connection interface; when the processor sends the first path of data and the second path of data to the second image processing device, the processor is specifically configured to:

sending the first path of data and the second path of data through the first connection interface;

the first connection interface includes a first channel and a second channel, the first channel is used for sending the first path of data, and the second channel is used for sending the second path of data.

24. The device of claim 23, wherein the first connection interface comprises a first Mipi DSI interface.

25. The apparatus of claim 20,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

26. An image processing apparatus, comprising a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

receiving a first path of data and a second path of data sent by first image processing equipment;

determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data;

superposing the color value and the transparency related data to obtain image data to be displayed;

and outputting the image data to be displayed to display equipment for displaying.

27. The apparatus of claim 26, further comprising a third interface and a fourth interface; when the processor receives the first path of data and the second path of data sent by the first image processing device, the processor is specifically configured to:

receiving first path data sent by the first image processing equipment through a first interface through a third interface;

and receiving the second path of data sent by the first image processing device through the second interface through the fourth interface.

28. The apparatus of claim 27,

the third interface comprises a second SPI interface and the fourth interface comprises a second RGB data interface.

29. The apparatus of claim 26, further comprising a second connection interface; when the processor receives the first path of data and the second path of data sent by the first image processing device, the processor is specifically configured to:

receiving the first path of data and the second path of data sent by the first image processing device through the second connection interface;

the second connection interface comprises a third channel and a fourth channel, the third channel is used for receiving the first path of data, and the fourth channel is used for receiving the second path of data.

30. The device of claim 29, wherein the second connection interface comprises a second MipiDSI interface.

31. The apparatus of claim 26,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

32. The device according to claim 31, wherein the processor performs superimposition processing on the color values and the transparency-related data to obtain image data to be displayed, and is specifically configured to:

determining a mapping relation between the transparency value and the color value of each pixel point according to mapping table data in the transparency associated data;

and superposing the color values and the transparency values according to the mapping relation to obtain image data to be displayed.

33. An image processing apparatus, comprising a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

acquiring initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

and sending the updated image data to a second image processing device.

34. The apparatus of claim 33,

the updated image data comprises first-class pixel points and second-class pixel points, the values of the first-class pixel points are color values of the pixel points at the corresponding positions in the initial image data, and the values of the second-class pixel points are transparency values of the pixel points at the corresponding positions in the initial image data.

35. The apparatus of claim 33,

the color value of each pixel point in the initial image data comprises the color values of N channels;

the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value;

wherein M and N are positive integers, and M is less than N + 1.

36. An image processing apparatus, comprising a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

receiving updated image data sent by first image processing equipment, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

and outputting the initial image data to a display device for display.

37. The apparatus of claim 36,

the updated image data comprises first-class pixel points and second-class pixel points, the values of the first-class pixel points are color values of the pixel points at the corresponding positions in the initial image data, and the values of the second-class pixel points are transparency values of the pixel points at the corresponding positions in the initial image data.

38. The apparatus of claim 36,

the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value;

the color value of each pixel point in the initial image data comprises color values of N channels, and the color values of the N channels are determined according to the arrangement sequence of the pixel points on the updated image data and the values of M channels of each pixel point;

wherein M and N are positive integers, and M is less than N + 1.

39. An image processing system, comprising: a first image processing apparatus including a first interface unit and a second image processing apparatus including a second interface unit;

the first image processing device is configured to acquire image data to be displayed, separate data of each pixel point in the image data to obtain a color value and a transparency value of the image data, use the color value as a first path of data, use the transparency-related data as a second path of data, and send the first path of data and the second path of data to a second image processing device through a first interface unit;

the second image processing device is configured to receive the first path of data and the second path of data sent by the first image processing device through the second interface unit, determine a color value of each pixel point in the image data to be displayed according to the first path of data, determine transparency-related data of each pixel point in the image data to be displayed according to the second path of data, perform superposition processing on the color value and the transparency-related data, obtain image data to be displayed, and output the image data to be displayed to the display device for display.

40. The system of claim 39, wherein the first interface unit comprises a first interface and a second interface; when the first image processing device sends the first path of data and the second path of data to the second image processing device through the first interface unit, the first image processing device is specifically configured to:

sending the first path of data to the second image processing device through a first interface;

and sending the second path of data to the second image processing device through a second interface.

41. The system of claim 40,

the first interface includes a first SPI interface and the second interface includes a first RGB data interface.

42. The system of claim 39, wherein the first interface unit comprises a first connection interface; when the first image processing device sends the first path of data and the second path of data to the second image processing device through the first interface unit, the first image processing device is specifically configured to:

sending the first path of data and the second path of data through a first connection interface between the first image processing device and the second image processing device;

the first connection interface includes a first channel and a second channel, the first channel is used for sending the first path of data, and the second channel is used for sending the second path of data.

43. The system of claim 42, wherein the first connection interface comprises a first MipidSI interface.

44. The system of claim 39,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

45. The system of claim 39, wherein the second interface unit comprises a third interface and a fourth interface; when the second image processing device receives the first path of data and the second path of data sent by the first image processing device through the second interface unit, the second image processing device is specifically configured to:

receiving first path data sent by the first image processing equipment through a first interface through a third interface;

and receiving the second path of data sent by the first image processing device through the second interface through the fourth interface.

46. The system of claim 45,

the third interface comprises a second SPI interface and the fourth interface comprises a second RGB data interface.

47. The system of claim 39, wherein the second interface unit comprises a second connection interface; when the second image processing device receives the first path of data and the second path of data sent by the first image processing device through the second interface unit, the second image processing device is specifically configured to:

receiving a first path of data and a second path of data sent by the first image processing device through a second connection interface between the first image processing device and the second image processing device;

the second connection interface comprises a third channel and a fourth channel, the third channel is used for receiving the first path of data, and the fourth channel is used for receiving the second path of data.

48. The system of claim 47, wherein the second connection interface comprises a second MipidSI interface.

49. The system of claim 39,

the transparency associated data comprises mapping table data, and a mapping table corresponding to the mapping table data is used for recording the mapping relation between the transparency value and the color value of each pixel point in the image data.

50. The system of claim 49, wherein the second image processing device performs superposition processing on the color values and the transparency-related data to obtain image data to be displayed, and is specifically configured to:

determining a mapping relation between the transparency value and the color value of each pixel point according to mapping table data in the transparency associated data;

and superposing the color values and the transparency values according to the mapping relation to obtain image data to be displayed.

51. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 19.

Technical Field

The present invention relates to the field of control technologies, and in particular, to an image processing method, device, system, and storage medium.

Background

At present, a general image data interface (such as RGB Digital interface, Mipi-DSI, and Lvds interface data protocol) is generally used to implement transmission of image data between different image processing devices, and such a general image data interface can only transmit uncoded and uncompressed image data at a high speed, but does not support transmission of transparency data, and cannot implement transmission of image data carrying transparency. Therefore, how to more effectively realize the transmission of image data becomes a major research point.

Disclosure of Invention

Embodiments of the present invention provide an image processing method, an image processing apparatus, an image processing system, and a storage medium, which can implement transmission of transparency data and improve transmission efficiency of image data.

In a first aspect, an embodiment of the present invention provides an image processing method, applied to a first image processing apparatus, where the method includes:

acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value;

separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data;

and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

In a second aspect, an embodiment of the present invention provides another image processing method, applied to a second image processing apparatus, where the method includes:

receiving a first path of data and a second path of data sent by first image processing equipment;

determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data;

superposing the color value and the transparency related data to obtain image data to be displayed;

and outputting the image data to be displayed to display equipment for displaying.

In a third aspect, an embodiment of the present invention provides another image processing method, applied to a first image processing apparatus, where the method includes:

acquiring initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

and sending the updated image data to a second image processing device.

In a fourth aspect, an embodiment of the present invention provides another image processing method, applied to a second image processing apparatus, where the method includes:

receiving updated image data sent by first image processing equipment, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

and outputting the initial image data to a display device for display.

In a fifth aspect, an embodiment of the present invention provides an image processing apparatus, including a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value;

separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data;

and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

In a sixth aspect, an embodiment of the present invention provides another image processing apparatus, including a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

receiving a first path of data and a second path of data sent by first image processing equipment;

determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data;

superposing the color value and the transparency related data to obtain image data to be displayed;

and outputting the image data to be displayed to display equipment for displaying.

In a seventh aspect, an embodiment of the present invention provides yet another image processing apparatus, including a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

acquiring initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

and sending the updated image data to a second image processing device.

In an eighth aspect, an embodiment of the present invention provides yet another image processing apparatus, including a memory and a processor;

the memory to store program instructions;

the processor, configured to invoke the program instructions, and when the program instructions are executed, configured to:

receiving updated image data sent by first image processing equipment, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

and outputting the initial image data to a display device for display.

In a ninth aspect, an embodiment of the present invention provides an image processing system, including: a first image processing apparatus including a first interface unit and a second image processing apparatus including a second interface unit;

the first image processing device is configured to acquire image data to be displayed, separate data of each pixel point in the image data to obtain a color value and a transparency value of the image data, use the color value as a first path of data, use the transparency-related data as a second path of data, and send the first path of data and the second path of data to a second image processing device through a first interface unit;

the second image processing device is configured to receive the first path of data and the second path of data sent by the first image processing device through the second interface unit, determine a color value of each pixel point in the image data to be displayed according to the first path of data, determine transparency-related data of each pixel point in the image data to be displayed according to the second path of data, perform superposition processing on the color value and the transparency-related data, obtain image data to be displayed, and output the image data to be displayed to the display device for display.

In a tenth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the image processing method according to the first, second, third, and fourth aspects.

In the embodiment of the invention, the image processing device can separate the acquired image data including the color value and the transparency value to obtain the color value and the transparency related data of the image data, the transparency related data is used as the first path of data, the color value is used as the second path of data, and the first path of data and the second path of data are respectively sent to the second image processing device, so that the transmission of the transparency related data is realized, and the transmission efficiency of the image data is improved.

Drawings

In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.

FIG. 1a is a schematic structural diagram of an image processing system according to an embodiment of the present invention;

FIG. 1b is a schematic diagram of another image processing system according to an embodiment of the present invention;

FIG. 2 is a flowchart illustrating an image processing method according to an embodiment of the present invention;

FIG. 3 is a flow chart of another image processing method according to an embodiment of the present invention;

FIG. 4 is a flowchart illustrating a further image processing method according to an embodiment of the present invention;

fig. 5a is a schematic structural diagram of a pixel point for changing an image resolution according to an embodiment of the present invention;

FIG. 5b is a schematic structural diagram of another pixel for modifying image resolution according to an embodiment of the present invention;

FIG. 6 is a flowchart illustrating a further image processing method according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;

fig. 8 is a schematic structural diagram of another image processing apparatus provided by an embodiment of the present invention;

FIG. 9 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention;

fig. 10 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.

The image processing method provided in the embodiment of the present invention may be performed by an image processing system, which may include a first image processing apparatus and a second image processing apparatus. In one embodiment, the first image processing device includes a first chip configured to transmit image data carrying transparency-associated data and color values to a second image processing device; in an embodiment, the second image processing device includes a second chip, configured to receive transparency-related data and color values transmitted by the first image processing device, and perform image superposition processing on the color values and transparency values corresponding to the color values according to a mapping relationship between the color values and the transparency values in the transparency-related data. In one embodiment, the first chip may be a 32bit chip and the second chip may be a 24bit chip. In one embodiment, the first image processing apparatus includes a first interface unit, and the second image processing apparatus includes a second interface unit. In one embodiment, the image processing system may be disposed on a drone, a robot, a mobile terminal (e.g., a mobile phone), or the like. An image processing system composed of a first image processing apparatus and a second image processing apparatus is schematically described below.

Referring to fig. 1a, fig. 1a is a schematic structural diagram of an image processing system according to an embodiment of the present invention, and the image processing system shown in fig. 1a includes: the image display device comprises a first image processing device 1 and a second image processing device 2, wherein the first image processing device 1 can acquire image data 12 to be displayed through a GUI subsystem 11, and the first image processing device 1 can obtain a color value 121 and transparency-related data 122 of the image data 12 by separating data of each pixel point in the image data 12. In an embodiment, the transparency-related data 122 includes mapping table data, and a mapping table corresponding to the mapping table data is used for recording a mapping relationship between a transparency value and a color value of each pixel in the image data. The first image processing device 1 may use the color value 121 as a first path of data, use the transparency-related data 122 as a second path of data, and send the first path of data and the second path of data to the second image processing device 2 through the first interface unit 13, respectively. In an embodiment, after the first image processing device 1 sends the first path of data and the second path of data to the second image processing device 2 through the first interface unit 13, the second interface unit 14 of the second image processing device 2 may receive the first path of data and the second path of data sent by the first image processing device 1, determine transparency-related data of each pixel point in the image data to be displayed according to the first path of data, and determine a color value of each pixel point in the image data to be displayed according to the second path of data. In an embodiment, after the second image processing device 2 determines the color value and the transparency-related data sent by the first image processing device, the color value and the transparency-related data may be subjected to superposition processing to obtain image data to be displayed, and the image data to be displayed is output to the display device 3 for display through the display controller 22 of the second image processing device 2.

In one embodiment, the first interface unit 13 may include a first interface 131 and a second interface 132, and when the first image processing apparatus 1 of the image processing system respectively sends the first path of data and the second path of data to the second image processing apparatus 2 through the first interface unit 13, the first path of data may be sent to the second image processing apparatus 2 through the first interface 131, and the second path of data may be sent to the second image processing apparatus 2 through the second interface 132. In one embodiment, the first interface 131 may include a first SPI interface, and the second interface 132 may include a first RGB data interface. In an embodiment, the first way data may be transparency-related data, and the second way data may be color values.

In one embodiment, the second interface unit 14 may include a third interface 141 and a fourth interface 142, the third interface 141 may include a second SPI interface, and the fourth interface 142 may include a second RGB data interface. In one embodiment, when receiving the first path of data and the second path of data sent by the first image processing apparatus 1 through the second interface unit 14, the second image processing apparatus 2 of the image processing system may receive the first path of data sent by the first image processing apparatus 1 through the first interface 131 through the third interface 141; and receiving, via the fourth interface 142, the second path of data sent by the first image processing apparatus 1 via the second interface 132.

In an embodiment, the first interface unit 13 may include a first connection interface 133 as shown in fig. 1b, and fig. 1b is a schematic structural diagram of another image processing system provided in an embodiment of the present invention. When the first path of data and the second path of data are respectively sent to the second image processing device 2 through the first interface unit 13, the first image processing device 1 of the image processing system can send the first path of data and the second path of data through the first connection interface 133 between the first image processing device 1 and the second image processing device 2; the first connection interface 133 may include a first channel and a second channel, where the first channel is used to send the first way of data, and the second channel is used to send the second way of data. In one embodiment, the first connection interface 133 may comprise a first Mipi DSI interface.

In one embodiment, the second interface unit 14 may include a second connection interface 143; when the second image processing apparatus 2 receives the first path of data and the second path of data sent by the first image processing apparatus 1 through the second interface unit 14, the first path of data and the second path of data sent by the first image processing apparatus 1 may be received through the second connection interface 143 between the first image processing apparatus 1 and the second image processing apparatus 2; the second connection interface 143 includes a third channel and a fourth channel, where the third channel is used to receive the first path of data, and the fourth channel is used to receive the second path of data; in one embodiment, the second connection interface 143 may comprise a second Mipi DSI interface.

In an embodiment, the second image processing device 2 may perform superposition processing on the received color value and transparency-related data sent by the first image processing device 1 to obtain image data to be displayed, and output the image data to a display device for displaying.

In an embodiment, the second image processing device 2 may further obtain other image data 15, such as camera video data, besides the received image data to be displayed sent by the first image processing device, where the other image data may include color value and/or transparency-related data, and the embodiment of the present invention does not specifically limit the other image data.

In an embodiment, the second image processing device 2 may perform superposition processing on the received color value and transparency-related data sent by the first image processing device 1 and the obtained other image data 15 to obtain image data to be displayed, and output the image data to a display device for display.

An image processing method provided by an embodiment of the present invention is schematically described below with reference to the drawings.

Referring to fig. 2, fig. 2 is a flowchart illustrating an image processing method according to an embodiment of the present invention, where the method may be executed by an image processing apparatus, and the image processing apparatus corresponds to the first image processing apparatus, where the image processing apparatus is specifically explained as described above. Specifically, the method of the embodiment of the present invention includes the following steps.

S201: image data to be displayed is acquired.

In the embodiment of the present invention, an image processing device may acquire image data to be displayed, where data of each pixel in the image data includes a color value and a transparency value. In one embodiment, the color values may be RGB values and the transparency values may be Alpha values.

S202: and separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data.

In the embodiment of the present invention, the image processing device may separate data of each pixel point in the image data to obtain color values and transparency-related data of the image data. In an embodiment, the transparency-related data includes mapping table data, and a mapping table corresponding to the mapping table data is used to record a mapping relationship between a transparency value and a color value of each pixel in the image data. In one embodiment, the mapping table data may comprise an A-RGB lookup table.

S203: and taking the transparency associated data as a first path of data and the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

In this embodiment of the present invention, the image processing device may use the transparency-related data as a first path of data, use the color value as a second path of data, and send the first path of data and the second path of data to the second image processing device, respectively. That is, the image processing apparatus may transmit the transparency associated data and the color value to a second image processing apparatus, respectively.

In one embodiment, the image processing apparatus includes a first interface unit including a first interface and a second interface therein. In one embodiment, when the image processing apparatus sends the first path of data and the second path of data to a second image processing apparatus, the first path of data may be sent to the second image processing apparatus through the first interface, and the second path of data may be sent to the second image processing apparatus through the second interface. In one embodiment, the first interface may be a first SPI interface, which is a general purpose low speed data interface; in one embodiment, the second interface may be a first RGB data interface for high speed transfer of unencoded, uncompressed image data such as color values. In other embodiments, the first interface may also be another general low-speed data interface, and the embodiments of the present invention are not limited in particular.

Specifically, as an example, referring to fig. 1a, assuming that the first interface 131 is a first SPI interface and the second interface 132 is a first RGB data interface, the image processing apparatus 1 may send transparency-related data serving as the first path of data to the second image processing apparatus 2 through the first SPI interface, and send color values serving as the second path of data to the second image processing apparatus 2 through the first RGB data interface.

In one embodiment, the image processing device includes a first connection interface, and when the image processing device sends the first path of data and the second path of data to a second image processing device, the first path of data and the second path of data may be sent through the first connection interface; the first connection interface includes a first channel and a second channel, the first channel is used for sending the first path of data, and the second channel is used for sending the second path of data. In an embodiment, the first connection interface includes a first Mipi DSI interface, and the first Mipi DSI interface includes a first lane and a second lane, where the first lane is used to send the first path of data, and the second lane is used to send the second path of data.

Specifically, as an example, referring to fig. 1b, assuming that the first connection interface 133 is a first Mipi DSI interface, if the first path of data is transparency-related data and the second path of data is a color value, the image processing apparatus may send the transparency-related data through a first channel of the first Mipi DSI interface and send the color value through a second channel of the first Mipi DSI interface.

In one embodiment, the image processing apparatus may directly transmit transparency-related data and color values in the image data by modifying a circuit structure of the Mipi DSI interface, so that the Mipi DSI interface after modifying the circuit structure does not need to transmit the transparency-related data through the first channel, and transmit the color values through the second channel of the first Mipi DSI interface.

In the embodiment of the present invention, the image processing device may separate the acquired image data including the color value and the transparency value to obtain the color value and the transparency-related data of the image data, use the transparency-related data as the first path of data, use the color value as the second path of data, and send the first path of data and the second path of data to the second image processing device, so as to implement transmission of the transparency-related data and improve transmission efficiency of the image data.

Referring to fig. 3, fig. 3 is a flowchart illustrating another image processing method according to an embodiment of the present invention, where the method may be executed by an image processing apparatus, and the image processing apparatus corresponds to the second image processing apparatus, where the image processing apparatus is specifically explained as described above. The embodiment of the present invention is different from the embodiment described in fig. 2 above in that the embodiment of the present invention is a schematic illustration of a process of processing image data on an image processing apparatus.

S301: and receiving the first path of data and the second path of data sent by the first image processing device.

In this embodiment of the present invention, the image processing device may receive the first path of data and the second path of data sent by the first image processing device. The explanation of the first path of data and the second path of data is as described above, and is not described herein again.

In one embodiment, the image processing apparatus includes a second interface unit including a third interface and a fourth interface. In one embodiment, when receiving the first path of data and the second path of data sent by the first image processing device, the image processing device may receive, through the third interface, the first path of data sent by the first image processing device through the first interface; and receiving the second path of data sent by the first image processing device through the second interface through the fourth interface. In one embodiment, the third interface may include a second SPI interface, and the second SPI interface is configured to receive the first path of data sent by the first image processing device through the first interface; in one embodiment, the fourth interface may include a second RGB data interface, and the second RGB data interface is configured to receive the second path of data sent by the first image processing device through the second interface.

In an embodiment, the image processing apparatus includes a second connection interface, and when the image processing apparatus receives the first path of data and the second path of data sent by the first image processing apparatus, the first path of data sent by the first image processing apparatus through the first channel of the first connection interface and the second path of data sent by the second channel of the first connection interface may be received through the second connection interface. In an embodiment, the second connection interface includes a third channel and a fourth channel, the third channel is configured to receive the first path of data sent by the first image processing device through the first channel of the first connection interface, and the fourth channel is configured to receive the second path of data sent by the first image processing device through the second channel of the first connection interface. In one embodiment, the second connection interface may comprise a second Mipi DSI interface.

S302: and determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data.

In the embodiment of the present invention, after receiving a first path of data and a second path of data sent by a first image processing device, the image processing device may determine transparency-related data of each pixel point in the image data to be displayed according to the first path of data, and determine a color value of each pixel point in the image data to be displayed according to the second path of data. In an embodiment, the transparency-related data includes mapping table data, and a mapping table corresponding to the mapping table data is used to record a mapping relationship between a transparency value and a color value of each pixel in the image data.

In an embodiment, when determining the transparency associated data and the color value of each pixel point in the image data to be displayed, the image processing device may determine, according to the color value and the transparency associated data sent by the first received image processing device, a transparency value corresponding to the color value sent by the first received image processing device from a mapping relationship between the transparency value and the color value of each pixel point of the image data recorded in a mapping table corresponding to mapping table data in the transparency associated data.

S303: and superposing the color values and the transparency related data to obtain image data to be displayed.

In the embodiment of the present invention, the image processing device may perform superposition processing on the color value and the transparency-related data to obtain image data to be displayed.

In an embodiment, after determining the transparency value corresponding to the color value sent by the first image processing device, the image processing device may determine a mapping relationship between the transparency value and the color value of each pixel according to mapping table data in the transparency-related data sent by the first image processing device, and determine the transparency value corresponding to the color value sent by the first image processing device according to the mapping relationship, so as to perform superposition processing on the color value and the corresponding transparency value, and obtain image data to be displayed.

In one embodiment, the image processing device may further acquire other image data, such as camera video data, in addition to the image data sent by the first image processing device, where the other image data may include color values and/or transparency-associated data.

In an embodiment, the other image data includes color values and transparency-related data, and the image processing device may determine, according to the color values and the transparency-related data of the other image data, transparency values corresponding to the color values of the other image data from a mapping relationship between the color values and the transparency values of the transparency-related data of the other image data, so as to perform superposition processing on the color values and the transparency values of the other image data, and obtain superposed image data to be displayed.

In an embodiment, the other image data includes color values, and the image processing device may determine, according to the color values of the other image data, a transparency value corresponding to the color value of the other image data from a mapping relationship between the color value of the received transparency-related data sent by the first image processing device and the transparency value, so as to superimpose the color value of the other image data and the transparency value of the image data to be displayed sent by the first image processing device, so as to implement superimposition processing between the received image data to be displayed sent by the first image processing device and the other image data, and obtain the superimposed image data to be displayed.

As shown in fig. 1a, the image processing apparatus 2 may perform superimposition processing on the image data to be displayed received from the third interface 141 and the fourth interface 142 and the other image data 15 acquired by the image processing apparatus 2.

S304: and outputting the image data to be displayed to display equipment for displaying.

In the embodiment of the present invention, the image processing device may output the image data to be displayed to the display device for displaying.

In the embodiment of the present invention, an image processing device may receive a first path of data and a second path of data sent by a first image processing device, determine transparency associated data of each pixel point in image data to be displayed according to the first path of data, determine a color value of each pixel point in the image data to be displayed according to the second path of data, and perform superposition processing on the color value and the transparency associated data, so as to output the image data to be displayed to a display device for display. In this way, image superposition on an image processing device other than the main image processing device is realized, and the accuracy of image superposition is improved.

Referring to fig. 4, fig. 4 is a flowchart illustrating a further image processing method according to an embodiment of the present invention, where the method may be executed by an image processing apparatus, where the image processing apparatus corresponds to the first image processing apparatus, and the detailed explanation of the image processing apparatus is as described above. The embodiment of the present invention is different from the embodiment described in fig. 3 above in that the embodiment of the present invention is a schematic illustration of a process of updating image data by adjusting the resolution of the image data of an image processing apparatus.

S401: initial image data is acquired.

In the embodiment of the present invention, an image processing device may obtain initial image data, where each pixel point in the initial image data includes a color value and a transparency value.

S402: and expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data.

In the embodiment of the present invention, the image processing device may expand the resolution of the initial image data according to a preset resolution expansion rule to obtain the updated image data. In an embodiment, the preset resolution expansion rule may be to increase the number of rows of the pixel points of the initial image data and keep the number of columns of the pixel points of the initial image data unchanged.

In an embodiment, the updated image data includes first-type pixels and second-type pixels, the value of the first-type pixels is a color value of a pixel at a corresponding position in the initial image data, and the value of the second-type pixels is a transparency value of a pixel at a corresponding position in the initial image data.

In an embodiment, the preset resolution expansion rule may be that the color value and the transparency value of the image data are sequentially stored in each pixel point in the updated image data after the number of rows of the pixel points of the initial image data is increased and the number of columns of the pixel points of the initial image data is kept unchanged.

Specifically, fig. 5a is an example, and fig. 5a is a schematic structural diagram of a pixel point for changing an image resolution according to an embodiment of the present invention. Assuming that the color value is RGB, and the transparency value is represented by a, the rule of expanding the resolution may be to store the color value R, G, B through channels 1, 2, and 3 of the first pixel in sequence according to the order of arrangement of the pixels on the initial image data, store the transparency value a corresponding to the color value of the first pixel through channel 4 of the second pixel, store the color value R, G, B through channels 7, 8, and 9 of the third pixel, and store RGB and a value in sequence and in a loop.

In one embodiment, the color value of each pixel point in the initial image data comprises color values of N channels; the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value; wherein M and N are positive integers, and M is less than N + 1.

In an embodiment, the preset resolution expansion rule may be that color values and transparency values of the image data are sequentially stored in each channel of each pixel point in the updated image data after the number of rows of the pixel points of the initial image data is increased and the number of columns of the pixel points of the initial image data is kept unchanged.

Specifically, fig. 5b is an example, and fig. 5b is a schematic structural diagram of another pixel point for changing the image resolution according to an embodiment of the present invention. Assuming that the color value is RGB, the transparency value is represented by a, the rule of expanding the resolution may be to store RGB and a sequentially through channels of each pixel according to the arrangement order of the pixels on the initial image data, as shown in fig. 5B, store color value R, G, B sequentially through channels 1, 2, and 3 of the first pixel, store transparency value a corresponding to the color value of the first pixel through channel 4 of the second pixel, store color value R and G through channels 5 and 6 of the second pixel, store color value B, transparency value a, and color value R respectively through channels 7, 8, and 9 of the third pixel, and store RGB and a sequentially through channels.

S403: and sending the updated image data to a second image processing device.

In the embodiment of the present invention, the image processing device may send the updated image data to the second image processing device through the general image data interface. In one embodiment, the general image data interface may include an RGB data interface, an SPI interface, a Mipi DSI interface, and the like.

In the embodiment of the present invention, an image processing device may obtain initial image data, expand a resolution of the initial image data according to a preset resolution expansion rule, obtain updated image data, where a value of a pixel point in the updated image data is obtained according to a color value and a transparency value of the pixel point in the initial image data, and send the updated image data to a second image processing device. By adjusting the resolution of the image data, the transmission of the image data carrying the transparency value between the image processing devices is realized, and the transmission efficiency of the image data is improved.

Referring to fig. 6, fig. 6 is a flowchart illustrating a further image processing method according to an embodiment of the present invention, where the method may be executed by an image processing apparatus, and the image processing apparatus corresponds to the second image processing apparatus, where the image processing apparatus is specifically explained as described above. The embodiment of the present invention is different from the embodiment described in fig. 4 above in that the embodiment of the present invention is a schematic illustration of the processing procedure of the image data after the image resolution is updated, which is received by the image processing apparatus.

S601: and receiving the updated image data sent by the first image processing device.

In the embodiment of the present invention, the image processing device may receive updated image data sent by the first image processing device, where a value of a pixel point in the updated image data is obtained according to a color value and a transparency value of the pixel point in the initial image data.

In an embodiment, the updated image data includes first-type pixels and second-type pixels, the value of the first-type pixels is a color value of a pixel at a corresponding position in the initial image data, and the value of the second-type pixels is a transparency value of a pixel at a corresponding position in the initial image data.

In one embodiment, the value of each pixel in the updated image data is a value of M channels, and the values of M channels are determined according to the arrangement order of the pixels on the initial image data, and the color values and 1 transparency value of N channels of each pixel; the color value of each pixel point in the initial image data comprises color values of N channels, and the color values of the N channels are determined according to the arrangement sequence of the pixel points on the updated image data and the values of M channels of each pixel point; wherein M and N are positive integers, and M is less than N + 1.

S602: and processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data.

In the embodiment of the present invention, the image processing device may process the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, where each pixel point in the initial image data includes a color value and a transparency value.

S603: and outputting the initial image data to a display device for display.

In the embodiment of the present invention, the image processing device may output the initial image data to the display device for display.

In the embodiment of the present invention, the image processing device may receive the updated image data sent by the first image processing device, process the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, and output the initial image data to the display device for display. By the method, the received updated image data is restored, and the accuracy of image restoration is improved.

Referring to fig. 7, fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention. Specifically, the image processing apparatus includes: memory 701, processor 702, and data interface 703.

The memory 701 may include a volatile memory (volatile memory); the memory 701 may also include a non-volatile memory (non-volatile memory); the memory 701 may also comprise a combination of memories of the kind described above. The processor 702 may be a Central Processing Unit (CPU). The processor 702 may further include a hardware image processing device. The hardware image processing apparatus may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. Specifically, the programmable logic device may be, for example, a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.

Further, the memory 701 is used for storing program instructions, and when the program instructions are executed, the processor 702 may call the program instructions stored in the memory 701 to execute the following steps:

acquiring image data to be displayed, wherein the data of each pixel point in the image data comprises a color value and a transparency value;

separating the data of each pixel point in the image data to obtain color values and transparency related data of the image data;

and taking the transparency associated data as a first path of data, taking the color value as a second path of data, and respectively sending the first path of data and the second path of data to second image processing equipment.

Further, the device further comprises a first interface and a second interface; when the processor 702 sends the first path of data and the second path of data to the second image processing device, the following steps are specifically performed:

sending the first path of data to the second image processing device through a first interface;

and sending the second path of data to the second image processing device through a second interface.

Further, the first interface includes a first SPI interface, and the second interface includes a first RGB data interface.

Further, the device further comprises a first connection interface; when the processor 702 sends the first path of data and the second path of data to the second image processing device, the following steps are specifically performed:

sending the first path of data and the second path of data through the first connection interface;

the first connection interface includes a first channel and a second channel, the first channel is used for sending the first path of data, and the second channel is used for sending the second path of data.

Further, the first connection interface comprises a first Mipi DSI interface.

Further, the transparency associated data includes mapping table data, and a mapping table corresponding to the mapping table data is used for recording a mapping relationship between a transparency value and a color value of each pixel point in the image data.

In the embodiment of the present invention, the image processing device may separate the acquired image data including the color value and the transparency value to obtain the color value and the transparency-related data of the image data, use the transparency-related data as the first path of data, use the color value as the second path of data, and send the first path of data and the second path of data to the second image processing device, so as to implement transmission of the transparency-related data and improve transmission efficiency of the image data.

Referring to fig. 8, fig. 8 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention. Specifically, the image processing apparatus includes: a memory 801, a processor 802, and a data interface 803.

The memory 801 may include a volatile memory (volatile memory); the memory 801 may also include a non-volatile memory (non-volatile memory); the memory 801 may also comprise a combination of memories of the kind described above. The processor 802 may be a Central Processing Unit (CPU). The processor 802 may further include a hardware image processing device. The hardware image processing apparatus may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. Specifically, the programmable logic device may be, for example, a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.

Further, the memory 801 is used for storing program instructions, and when the program instructions are executed, the processor 802 may call the program instructions stored in the memory 801 for executing the following steps:

receiving a first path of data and a second path of data sent by first image processing equipment;

determining transparency related data of each pixel point in the image data to be displayed according to the first path of data, and determining a color value of each pixel point in the image data to be displayed according to the second path of data;

superposing the color value and the transparency related data to obtain image data to be displayed;

and outputting the image data to be displayed to display equipment for displaying.

Further, the device further comprises a third interface and a fourth interface; when the processor 802 receives the first path of data and the second path of data sent by the first image processing device, the processor is specifically configured to:

receiving first path data sent by the first image processing equipment through a first interface through a third interface;

and receiving the second path of data sent by the first image processing device through the second interface through the fourth interface.

Further, the third interface includes a second SPI interface, and the fourth interface includes a second RGB data interface.

Further, the device further comprises a second connection interface; when the processor 802 receives the first path of data and the second path of data sent by the first image processing device, the processor is specifically configured to:

receiving the first path of data and the second path of data sent by the first image processing device through the second connection interface;

the second connection interface comprises a third channel and a fourth channel, the third channel is used for receiving the first path of data, and the fourth channel is used for receiving the second path of data.

Further, the second connection interface comprises a second Mipi DSI interface.

Further, the transparency associated data includes mapping table data, and a mapping table corresponding to the mapping table data is used for recording a mapping relationship between a transparency value and a color value of each pixel point in the image data.

Further, when the processor 802 performs superposition processing on the color value and the transparency-related data to obtain image data to be displayed, the processor is specifically configured to:

determining a mapping relation between the transparency value and the color value of each pixel point according to mapping table data in the transparency associated data;

and superposing the color values and the transparency values according to the mapping relation to obtain image data to be displayed.

In the embodiment of the present invention, an image processing device may receive a first path of data and a second path of data sent by a first image processing device, determine transparency associated data of each pixel point in image data to be displayed according to the first path of data, determine a color value of each pixel point in the image data to be displayed according to the second path of data, and perform superposition processing on the color value and the transparency associated data, so as to output the image data to be displayed to a display device for display. In this way, image superposition on an image processing device other than the main image processing device is realized, and the accuracy of image superposition is improved.

Referring to fig. 9, fig. 9 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention. Specifically, the image processing apparatus includes: memory 901, processor 902, and data interface 903.

The memory 901 may include a volatile memory (volatile memory); memory 901 may also include non-volatile memory (non-volatile memory); the memory 901 may also comprise a combination of the above-mentioned kinds of memories. The processor 902 may be a Central Processing Unit (CPU). The processor 902 may further include a hardware image processing device. The hardware image processing apparatus may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. Specifically, the programmable logic device may be, for example, a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.

Further, the memory 901 is used for storing program instructions, and when the program instructions are executed, the processor 902 can call the program instructions stored in the memory 901 for executing the following steps:

acquiring initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

expanding the resolution of the initial image data according to a preset resolution expansion rule to obtain updated image data, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

and sending the updated image data to a second image processing device.

Further, the updated image data includes first-type pixels and second-type pixels, the values of the first-type pixels are color values of pixels at corresponding positions in the initial image data, and the values of the second-type pixels are transparency values of pixels at corresponding positions in the initial image data.

Further, the color value of each pixel point in the initial image data comprises color values of N channels;

the value of each pixel point in the updated image data is the value of M channels, and the value of the M channels is determined according to the arrangement sequence of the pixel points on the initial image data, the color values of the N channels of each pixel point and 1 transparency value;

wherein M and N are positive integers, and M is less than N + 1.

In the embodiment of the present invention, an image processing device may obtain initial image data, expand a resolution of the initial image data according to a preset resolution expansion rule, obtain updated image data, where a value of a pixel point in the updated image data is obtained according to a color value and a transparency value of the pixel point in the initial image data, and send the updated image data to a second image processing device. By adjusting the resolution of the image data, the transmission of the image data carrying the transparency value between the image processing devices is realized, and the transmission efficiency of the image data is improved.

Referring to fig. 10, fig. 10 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention. Specifically, the image processing apparatus includes: memory 1001, processor 1002, and data interface 1003.

The memory 1001 may include a volatile memory (volatile memory); the memory 1001 may also include a non-volatile memory (non-volatile memory); the memory 1001 may also comprise a combination of memories of the kind described above. The processor 1002 may be a Central Processing Unit (CPU). The processor 1002 may further include a hardware image processing device. The hardware image processing apparatus may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. Specifically, the programmable logic device may be, for example, a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.

Further, the memory 1001 is used for storing program instructions, and when the program instructions are executed, the processor 1002 may call the program instructions stored in the memory 1001 for executing the following steps:

receiving updated image data sent by first image processing equipment, wherein the value of a pixel point in the updated image data is obtained according to the color value and the transparency value of the pixel point in the initial image data;

processing the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, wherein each pixel point in the initial image data comprises a color value and a transparency value;

and outputting the initial image data to a display device for display.

Further, the updated image data includes first-type pixels and second-type pixels, the values of the first-type pixels are color values of pixels at corresponding positions in the initial image data, and the values of the second-type pixels are transparency values of pixels at corresponding positions in the initial image data.

Further, the value of each pixel in the updated image data is a value of M channels, and the values of M channels are determined according to the arrangement order of the pixels on the initial image data, and the color values and 1 transparency value of N channels of each pixel;

the color value of each pixel point in the initial image data comprises color values of N channels, and the color values of the N channels are determined according to the arrangement sequence of the pixel points on the updated image data and the values of M channels of each pixel point;

wherein M and N are positive integers, and M is less than N + 1.

In the embodiment of the present invention, the image processing device may receive the updated image data sent by the first image processing device, process the resolution of the updated image data according to a preset resolution reduction rule to obtain initial image data, and output the initial image data to the display device for display. By the method, the received updated image data is restored, and the accuracy of image restoration is improved.

In an embodiment of the present invention, a computer-readable storage medium is further provided, where a computer program is stored, and when the computer program is executed by a processor, the image processing method described in the embodiment of the present invention is implemented, and details are not repeated herein.

The computer readable storage medium may be an internal storage unit of the device according to any of the preceding embodiments, for example, a hard disk or a memory of the device. The computer readable storage medium may also be an external storage device of the device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the device. Further, the computer-readable storage medium may also include both an internal storage unit and an external storage device of the apparatus. The computer-readable storage medium is used for storing the computer program and other programs and data required by the apparatus. The computer readable storage medium may also be used to temporarily store data that has been output or is to be output.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.

The above disclosure is intended to be illustrative of only some embodiments of the invention, and is not intended to limit the scope of the invention.

29页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:用于提供内容的系统和方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类