Image transmission method, device and electronic equipment

By dividing the color area and color mapping the image, the problem of quality loss in image transmission is solved, and efficient and confidential image transmission is achieved.

CN118354011BActive Publication Date: 2025-02-11CORE MICRO (SHENZHEN) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410515511.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-26
Publication Date
2025-02-11
Estimated Expiration
2044-04-26

AI Technical Summary

Technical Problem

The prior art is prone to quality loss during image transmission, especially when compressed image transmission, excessive compression will lose the details and color quality of the image.

Method used

By analyzing the color area of ​​the image to be transmitted, dividing it into key color areas and transition color areas, and constructing a color mapping set, performing color mapping calculation processing, obtaining the overall mapping distribution of key color areas, and finally data encoding is performed on the image.

Benefits of technology

It realizes the high-quality image transmission during image transmission, solves the problem of quality loss during compressed image transmission, and improves the confidentiality and efficiency of image transmission.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118354011B_ABST
    Figure CN118354011B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of image processing, and discloses an image transmission method, device and electronic equipment. The present invention divides an image to be transmitted into a key color area and a transition color area, and performs color splitting and color mapping on the transition color area through each key color area to obtain a color mapping distribution of the key color area for the transition color area. The color mapping of the key color area to the transition color area is used to achieve the expression of the transition color area, thereby compressing the data encoding of the image to be transmitted, and also improving the confidentiality and high quality of image transmission, thereby solving the problem of quality loss that is prone to occur when compressing image transmission in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image transmission method, device and electronic equipment. Background Art

[0002] In the field of digital image processing and transmission, with the development of network technology and the increasing popularity of image applications, how to effectively transmit high-quality images has become an important research topic. The core issues involved in image transmission include how to ensure the quality of images during transmission and how to improve transmission efficiency, especially in a network environment with limited bandwidth. Traditional image transmission methods, such as directly transmitting raw image data, often face problems such as large data volume, slow transmission speed, and susceptibility to network conditions, especially for images with high resolution or wide dynamic range. In addition, although image compression can reduce the amount of data, excessive compression will lose image details and color quality, affecting the final visual effect. Summary of the invention

[0003] The purpose of the present invention is to provide an image transmission method, device and electronic equipment, aiming to solve the problem of quality loss that easily occurs when compressing images during transmission in the prior art.

[0004] The present invention is implemented in this way. In a first aspect, the present invention provides an image transmission method, comprising:

[0005] Analyze and process the color area of ​​the image to be transmitted to obtain several key color areas and transition color areas;

[0006] Analyzing and processing the relative position relationship of each of the key color regions and the transition color regions in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color regions and each of the transition color regions; wherein the color mapping set includes one of the transition color regions and a plurality of the key color regions;

[0007] Based on each of the color mapping sets, color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area is performed respectively to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set;

[0008] Combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area;

[0009] Data encoding processing is performed on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted.

[0010] Preferably, the step of analyzing and processing the color area of ​​the image to be transmitted to obtain a plurality of key color areas and transition color areas comprises:

[0011] An image positioning coordinate system is constructed based on the image to be transmitted, so as to divide the image to be transmitted into a plurality of basic image units; wherein the image positioning coordinate system is used to coordinately position each of the basic image units;

[0012] Performing color analysis processing on each of the basic image units to obtain basic color parameters of each of the basic image units;

[0013] Performing a correlation analysis on basic color parameters of adjacent basic image units to obtain a color correlation vector between each basic image unit and an adjacent basic image unit; wherein the color correlation vector is used to describe the correlation between the basic color parameter of the basic image unit and the basic color parameter of the adjacent basic image unit;

[0014] Integrating the basic image units into a plurality of image color regions according to color association vectors between the basic image units;

[0015] Analyzing and processing are performed according to the basic color parameters of each of the basic image units in each of the image color regions to obtain regional color features of each of the image color regions; wherein the regional color features are used to describe the overall features of the basic color parameters of each of the basic image units in the image color region;

[0016] Analyze and process the regional color features of each adjacent image color region, and divide each image color region into the key color region and the transition color region.

[0017] Preferably, the step of analyzing and processing the basic color parameters of each basic image unit in each image color region to obtain the regional color features of each image color region includes:

[0018] Performing numerical statistical processing on basic color parameters of each basic image unit in the image color region to obtain a color parameter distribution of the image color region; wherein the color parameter distribution is used to describe each basic color parameter in the image color region and an occupation ratio of each basic color parameter;

[0019] Analyzing and processing the color parameter distribution of the image color region to obtain a dominant color of the image color region and a color deviation distribution based on the dominant color; wherein the color deviation distribution is used to describe the deviation relationship between the dominant color and the color parameter distribution;

[0020] The dominant color and the color deviation distribution of the dominant color are used together as the regional color feature of the image color region.

[0021] Preferably, the step of analyzing and processing the regional color features of each adjacent image color region to divide each image color region into the key color region and the transition color region comprises:

[0022] Performing primary color segmentation processing according to the dominant color of the regional color characteristics of each of the image color regions to obtain the primary color segmentation characteristics of each of the image color regions; wherein the primary color segmentation characteristics are used to describe the primary color composition ratio of the dominant color of the regional color characteristics of the image color region;

[0023] Comparing and processing the primary color segmentation features of each adjacent image color region, obtaining the primary color balance ratio of each image color region in each adjacent image color region; wherein the primary color balance ratio is used to describe the degree of balance of the primary color composition ratio of the image color region in the primary color composition ratio of each adjacent image color region;

[0024] Analyzing and processing the primary color balance ratios of each adjacent image color region according to a preset standard, and dividing each adjacent image color region into the key color region and the transition color region according to the result of the analysis and processing;

[0025] Among them, the preset standard is a mean standard or an extreme value standard. The mean standard is to select the image color area whose primary color balance ratio is close to the middle value as the key color area, and the extreme value standard is to select the image color area whose primary color balance ratio is not close to the middle value as the key color area.

[0026] Preferably, the step of analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas comprises:

[0027] Performing component ratio processing on the dominant color of the transition color area to obtain a plurality of color component combinations of the dominant color of the transition color area; wherein the color component combination includes a plurality of component colors used to combine to obtain the dominant color of the transition color area;

[0028] According to each color component combination of the dominant color of the transition color area, a comparison and search process is performed on the dominant colors of each adjacent key color area of ​​the transition color area, so as to select an optimal mapping combination from each adjacent key color area of ​​the transition color area; wherein the optimal mapping combination includes a plurality of adjacent key color areas of the transition color area, and the dominant colors of each key color area in the optimal mapping combination are closest to each component color in the color component combination;

[0029] The transition color region and the best mapping of the transition color region are combined as the color mapping set.

[0030] Preferably, based on each of the color mapping sets, color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area is performed respectively to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area, which comprises:

[0031] Constructing a mapping target distribution according to the dominant color and color deviation distribution of the regional color characteristics of the transition color region; wherein the mapping target distribution is used to describe the color state that each of the basic image units corresponding to the transition color region in the image positioning coordinate system should exhibit;

[0032] The mapping target distribution is subjected to combined mapping processing according to the dominant colors of each of the key color areas in the color mapping set to obtain a mapping feature distribution of each of the key color areas corresponding to the mapping target distribution; wherein the color mapping distribution is used to describe the color mapping of the key color areas in the color mapping set to the mapping target distribution, and each of the key color areas in the color mapping set performs color mapping corresponding to the color mapping distribution on the mapping target distribution to obtain the mapping target distribution.

[0033] Preferably, the step of combining the color mapping distributions of the key color area in each of the color mapping sets to obtain the overall mapping distribution of the key color area comprises:

[0034] Obtaining the color mapping distribution of the key color area in each of the color mapping sets;

[0035] The color mapping distributions are combined and processed according to the image positioning coordinate system to obtain the overall mapping distribution of the key color area.

[0036] Preferably, the step of performing data encoding processing on the image to be transmitted respectively according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted includes:

[0037] Data encoding is performed according to the regional color characteristics of the key color area to obtain a regional color code;

[0038] Performing data encoding according to the overall mapping distribution of the key color area to obtain mapping color data;

[0039] Combining the regional color code with the mapped color data to obtain an overall color code for the key color region;

[0040] The overall color codes of the key color areas are combined to obtain a data transmission model of the image to be transmitted.

[0041] In a second aspect, the present invention provides an image transmission device, comprising:

[0042] A color partitioning module is used to analyze and process the color area of ​​the image to be transmitted to obtain a number of key color areas and transition color areas;

[0043] A mapping division module, used for analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas; wherein the color mapping set includes one of the transition color areas and a plurality of the key color areas;

[0044] A mapping processing module is used to perform color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area based on each of the color mapping sets, so as to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set;

[0045] A mapping combination module, used for combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area;

[0046] The data encoding module is used to perform data encoding processing on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution, so as to obtain a data transmission model of the image to be transmitted.

[0047] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, an image transmission method as described in any one of the first aspects is implemented.

[0048] The present invention provides an image transmission method, which has the following beneficial effects:

[0049] The present invention divides the image to be transmitted into key color areas and transition color areas, and performs color splitting and color mapping on the transition color areas through each key color area to obtain the color mapping distribution of the key color areas for the transition color areas. The expression of the transition color areas is achieved through the color mapping of the key color areas to the transition color areas, thereby compressing the data encoding of the image to be transmitted, and also improving the confidentiality and high quality of image transmission, thereby solving the problem of quality loss that is prone to occur when compressing image transmission in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 is a schematic diagram of the steps of an image transmission method provided by an embodiment of the present invention;

[0051] Figure 2 It is a structural schematic diagram of an image transmission device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0053] The implementation of the present invention is described in detail below in conjunction with specific embodiments.

[0054] Reference Figure 1 , Figure 2 As shown, a preferred embodiment of the present invention is provided.

[0055] In a first aspect, the present invention provides an image transmission method, comprising:

[0056] S1: Analyze and process the color area of ​​the image to be transmitted to obtain several key color areas and transition color areas;

[0057] S2: Analyze and process the relative position relationship of each of the key color areas and the transition color areas in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas; wherein the color mapping set includes one of the transition color areas and a plurality of the key color areas;

[0058] S3: Based on each of the color mapping sets, color mapping calculation processing is performed on each of the key color areas in the color mapping set to the transition color area to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set;

[0059] S4: combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area;

[0060] S5: performing data encoding processing on the image to be transmitted respectively according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted.

[0061] Specifically, in step S1 of the embodiment provided by the present invention, the image to be transmitted is subjected to color region analysis and processing, and a number of key color regions and transition color regions are obtained.

[0062] It can be understood that image information is expressed by many neatly arranged tiny color units (i.e., basic image units). Within a certain range, the tiny color units that make up the image information show a certain convergence, that is, these tiny color units can be divided into an image area.

[0063] More specifically, in an embodiment provided by the present invention, an image area is divided into a key color area and a transition color area. The difference between the key color area and the transition color area is that the key color area is directly data encoded in subsequent encoding, while the transition color area is data encoded by color mapping of each key color area in the vicinity of the transition color area.

[0064] It should be noted that colors can be obtained by combining various primary colors. In different fields, the selection of primary colors is also different. In the above embodiment provided by the present invention, the color of the key color area is used as the primary color, and the color of the transition color area is used as the target combination color. The primary colors of each of the key color areas are adjusted and matched to obtain the color of the transition color area; that is, the color of the transition color area is broken down into several parts, and each part is handed over to a key color area for color mapping to achieve the expression of the part.

[0065] It can be understood that through this approach, the image to be transmitted can be broken down into several parts, and some of them can be broken down into more detailed parts, ensuring the encryption reliability during data transmission while also reducing the content of data transmission.

[0066] Specifically, in step S2 of the embodiment provided by the present invention, the relative position relationship of each key color area and transition color area in the image to be transmitted is analyzed and processed to construct a number of color mapping sets between each key color area and each transition color area; wherein the color mapping set includes a transition color area and a number of key color areas.

[0067] It can be understood that the transition color area is expressed by color mapping the adjacent key color areas, so it is necessary to select several key color areas within the adjacent range of the transition color area to express the transition color area.

[0068] Specifically, in step S3 of the embodiment provided by the present invention, based on each color mapping set, color mapping calculation and processing of each key color area in the color mapping set to the transition color area are performed respectively to obtain the color mapping distribution of each key color area in each color mapping set to the transition color area; wherein, the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set.

[0069] More specifically, the color of the transition color area is broken down into several parts, each of which is handed over to a key color area in the color mapping set for color mapping expression processing. By superimposing the color mappings of each key color area, the color of the transition color area can be reproduced. The integrated color mapping distribution provides optimized color data for image compression, which helps to maintain higher image quality.

[0070] Specifically, in step S4 of the embodiment provided by the present invention, the color mapping distributions of the key color area in each color mapping set are combined to obtain the overall mapping distribution of the key color area.

[0071] Specifically, in step S5 of the embodiment provided by the present invention, data encoding processing is performed on the image to be transmitted according to each key color area and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted. The optimized data encoding processing and compression algorithm significantly improve the data transmission efficiency and reduce the transmission cost. Through fine color mapping distribution encoding, high-quality image performance can be maintained even after compression. The constructed data transmission model takes into account the error recovery mechanism and improves the recovery ability of image data in an unstable transmission environment.

[0072] The present invention provides an image transmission method, which has the following beneficial effects:

[0073] The present invention divides the image to be transmitted into key color areas and transition color areas, and performs color splitting and color mapping on the transition color areas through each key color area to obtain the color mapping distribution of the key color areas for the transition color areas. The expression of the transition color areas is achieved through the color mapping of the key color areas to the transition color areas, thereby compressing the data encoding of the image to be transmitted, and also improving the confidentiality and high quality of image transmission, thereby solving the problem of quality loss that is prone to occur when compressing image transmission in the prior art.

[0074] Preferably, the step of analyzing and processing the color area of ​​the image to be transmitted to obtain a plurality of key color areas and transition color areas comprises:

[0075] S11: constructing an image positioning coordinate system based on the image to be transmitted, so as to divide the image to be transmitted into a plurality of basic image units; wherein the image positioning coordinate system is used to coordinately position each of the basic image units;

[0076] S12: performing color analysis processing on each of the basic image units to obtain basic color parameters of each of the basic image units;

[0077] S13: performing correlation analysis on basic color parameters of adjacent basic image units to obtain a color correlation vector between each basic image unit and an adjacent basic image unit; wherein the color correlation vector is used to describe the correlation between the basic color parameter of the basic image unit and the basic color parameter of the adjacent basic image unit;

[0078] S14: integrating the basic image units into a plurality of image color regions according to the color association vectors between the basic image units;

[0079] S15: Analyze and process the basic color parameters of each basic image unit in each image color region to obtain a regional color feature of each image color region; wherein the regional color feature is used to describe the overall feature of the basic color parameters of each basic image unit in the image color region;

[0080] S16: Analyze and process the color features of the adjacent image color regions to divide the image color regions into the key color region and the transition color region.

[0081] Specifically, first, an image positioning coordinate system is established based on the image to be transmitted, and the image is divided into several basic image units. This step provides a structured framework for subsequent color analysis and image processing.

[0082] It can be understood that each basic image unit can be positioned and expressed through an image positioning coordinate system. During the color analysis and data encoding process, the image positioning coordinate system will be used to locate the position of each basic image unit in the image to be transmitted, so as to ensure that the color mapping and data encoding can be accurately fed back to the basic image unit, so as to ensure the accuracy of the color mapping and data encoding of the image to be transmitted.

[0083] More specifically, color analysis is performed on each basic image unit to extract basic color parameters, such as RGB value, hue, saturation and brightness.

[0084] More specifically, color correlation analysis is performed on adjacent basic image units to generate color correlation vectors, which describe the color correlation between adjacent units and provide a basis for further image color region integration.

[0085] More specifically, based on the color association vector, the basic image units are integrated into several image color regions. This step identifies image units that are similar or related in color and merges them into larger color regions.

[0086] More specifically, the basic color parameters of each image color area are analyzed and processed to obtain regional color features. These features describe the color characteristics of the entire area, such as the dominant color, and the deviation relationship between each basic image unit and the dominant color in each image color area. Since each basic image unit can be positioned by an image positioning coordinate system, the deviation relationship can also be positioned by the image positioning system.

[0087] More specifically, further analysis is performed based on the regional color features of the neighboring image color regions to divide them into key color regions and transition color regions.

[0088] It is understandable that color area division and feature analysis of images can help achieve more effective image compression, reduce the amount of data, and improve the efficiency of image transmission; through sophisticated color analysis and regional integration, the color characteristics of the image can be more accurately captured and expressed, the visual effect of the image can be enhanced, and the flexibility and accuracy in image editing, color correction, etc. can be increased.

[0089] Preferably, the step of analyzing and processing the basic color parameters of each basic image unit in each image color region to obtain the regional color features of each image color region includes:

[0090] S151: performing numerical statistical processing on basic color parameters of each basic image unit in the image color region to obtain a color parameter distribution of the image color region; wherein the color parameter distribution is used to describe each basic color parameter in the image color region and an occupation ratio of each basic color parameter;

[0091] S152: Analyze and process the color parameter distribution of the image color region to obtain a dominant color of the image color region and a color deviation distribution based on the dominant color; wherein the color deviation distribution is used to describe the deviation relationship between the dominant color and the color parameter distribution;

[0092] S153: Taking the dominant color and the color deviation distribution of the dominant color together as the regional color feature of the image color region.

[0093] Specifically, the numerical statistics of color parameters are performed on the basic image units in each image color region, which involves collecting the color parameters (such as RGB value, HSV value, etc.) of each unit and calculating the distribution of these parameters in the entire region.

[0094] More specifically, the proportion of each color parameter in the image color area is analyzed to determine which color is dominant in the area. That is, based on the color parameter distribution, the dominant color of each image color area is determined, that is, the color that is most prominent or has the largest proportion in the area.

[0095] More specifically, the deviation relationship between the dominant color and other colors is analyzed to construct the color deviation distribution. This distribution describes the changes and distribution of other colors in the area relative to the dominant color; it can be understood that the image color area is an image area composed of basic image units with similar colors, so the colors of each basic image unit in the image color area are similar, and the dominant color is to find the most representative color in each basic image unit, and use this dominant color as a benchmark to calculate the deviation between each basic image unit and the dominant color, and integrate each deviation to get the color deviation distribution.

[0096] More specifically, the dominant colors and their color deviation distributions are incorporated as regional color features of the entire image color region, which provides a comprehensive perspective to understand and describe the color properties of the region.

[0097] It can be understood that through this method, the dominant color and color deviation distribution of each color area of ​​the image can be accurately extracted, providing detailed color information for subsequent image processing and analysis. Understanding the color characteristics of the image area can help achieve more effective image compression, reduce data redundancy, and optimize data transmission.

[0098] Preferably, the step of analyzing and processing the regional color features of each adjacent image color region to divide each image color region into the key color region and the transition color region comprises:

[0099] S161: performing primary color segmentation processing according to the dominant color of the regional color feature of each of the image color regions to obtain the primary color segmentation feature of each of the image color regions; wherein the primary color segmentation feature is used to describe the primary color composition ratio of the dominant color of the regional color feature of the image color region;

[0100] S162: Comparing and processing the primary color segmentation features of each adjacent image color region to obtain a primary color balance ratio of each image color region in each adjacent image color region; wherein the primary color balance ratio is used to describe the degree of balance of the primary color composition ratio of the image color region in the primary color composition ratio of each adjacent image color region;

[0101] S163: analyzing and processing the primary color balance ratios of each adjacent image color region according to a preset standard, and dividing each adjacent image color region into the key color region and the transition color region according to the result of the analysis and processing;

[0102] Among them, the preset standard is a mean standard or an extreme value standard. The mean standard is to select the image color area whose primary color balance ratio is close to the middle value as the key color area, and the extreme value standard is to select the image color area whose primary color balance ratio is not close to the middle value as the key color area.

[0103] Specifically, primary color segmentation processing is performed on the dominant color in the regional color characteristics of the image color area to identify its primary color composition ratio, which involves decomposing complex colors into basic color components (such as red, green, and blue primary colors of RGB).

[0104] More specifically, the primary color segmentation features of adjacent image color regions are compared to calculate the primary color balance ratio, which describes the degree of balance between the primary color composition ratio of a certain region and the primary color composition ratio of its adjacent regions.

[0105] More specifically, the primary color balance ratio is analyzed according to a preset standard (mean standard or extreme value standard), and then the adjacent image color areas are divided into key color areas and transition color areas. The mean standard tends to select areas with balanced and non-extreme colors as key color areas, while the extreme value standard tends to divide areas with extreme and unbalanced colors as key color areas.

[0106] It can be understood that by extracting and comparing the primary color segmentation features, the complex composition of image colors can be understood and analyzed more accurately, and the accuracy of color analysis can be improved. Using the primary color balance ratio and preset standards to divide the image color area can help to efficiently identify the image content, especially in automatic image processing and image recognition systems. By accurately dividing the key color areas and transition color areas of the image, the visual effects can be better optimized in image editing and color adjustment, and the visual focus can be highlighted. According to the analysis results of the primary color balance ratio, image processing strategies can be flexibly formulated, and different processing methods can be adopted for different types of color areas to improve processing efficiency and effects. Understanding the color composition and regional characteristics in the image can help to achieve more effective data compression and reduce data transmission costs, especially in application scenarios where image data needs to be compressed to reduce storage space or speed up transmission speeds.

[0107] Preferably, the step of analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas comprises:

[0108] S21: performing component ratio processing on the dominant color of the transition color area to obtain a plurality of color component combinations of the dominant color of the transition color area; wherein the color component combination includes a plurality of component colors used to combine to obtain the dominant color of the transition color area;

[0109] S22: According to each color component combination of the dominant color of the transition color area, a comparison and search process is performed on the dominant colors of each adjacent key color area of ​​the transition color area, so as to select an optimal mapping combination from each adjacent key color area of ​​the transition color area; wherein the optimal mapping combination includes a plurality of adjacent key color areas of the transition color area, and the dominant colors of each key color area in the optimal mapping combination are closest to each component color in the color component combination;

[0110] S23: Combining the transition color region with the best mapping of the transition color region as the color mapping set.

[0111] Specifically, a component ratio process is performed on the dominant color of the transition color area to determine the various color component combinations that constitute the dominant color. This includes identifying the basic colors that are combined into the dominant color of the transition color area (such as by analyzing the components of the color in RGB, CMYK or other color models).

[0112] More specifically, based on the color component combination of the dominant color of the transition color area, a comparison search is performed to find the best mapping combination in the adjacent key color area of ​​the transition color area. This process involves comparing the similarity or matching degree of these component colors with the dominant color of the adjacent key color area.

[0113] More specifically, those key color areas whose dominant colors are closest to the color component combination of the transition color area are selected to form the best mapping combination. The dominant colors of these areas are colorimetrically most representative of or closest to the component colors of the dominant colors of the transition area.

[0114] More specifically, the transition color region and its optimal mapping combination are integrated as a color mapping set, which reflects the color relationship and interaction between the transition color region and its adjacent key color region.

[0115] It can be understood that this approach provides more flexibility for image editing and color adjustment. By adjusting the color mapping set, the color transition in the image can be finely controlled to achieve specific visual effects. This method provides an accurate way to analyze the distribution and interaction of image colors, which is an important advantage for image analysis and automatic processing systems. Moreover, by expressing the transition color area through color mapping of the key color area to the transition color area, a high degree of encryption and coding compression can be achieved.

[0116] Preferably, based on each of the color mapping sets, color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area is performed respectively to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area, which comprises:

[0117] S31: constructing a mapping target distribution according to the dominant color and color deviation distribution of the regional color characteristics of the transition color region; wherein the mapping target distribution is used to describe the color state that each of the basic image units corresponding to the transition color region in the image positioning coordinate system should exhibit;

[0118] S32: Performing combined mapping processing on the mapping target distribution according to the dominant colors of each of the key color areas in the color mapping set to obtain a mapping feature distribution of each of the key color areas corresponding to the mapping target distribution; wherein the color mapping distribution is used to describe the color mapping of the key color areas in the color mapping set to the mapping target distribution, and each of the key color areas in the color mapping set performs color mapping corresponding to the color mapping distribution on the mapping target distribution to obtain the mapping target distribution.

[0119] Specifically, according to the regional color characteristics of the transition color area, including the dominant color and its color deviation distribution, a mapping target distribution is constructed, which describes the color state that each basic image unit should ideally exhibit in the image positioning coordinate system.

[0120] More specifically, the dominant colors of each key color area in the color mapping set are used to perform combined mapping processing on the mapping target distribution. This means that the dominant color of the key color area is used as the mapping subject, and the mapping target distribution of the transition color area is mapped and calculated to obtain the color mapping distribution of the key color area corresponding to the transition color area.

[0121] It should be noted that, in the above steps, the transition color area is divided into several color component combinations, and the best group of color component combinations is selected as the best mapping combination. Each color component in the best mapping combination corresponds to a key color area of ​​the color mapping set. In other words, each key color area assumes the function of a color component in the best mapping combination.

[0122] It can be understood that the superposition of various color components in the optimal mapping combination can obtain a transition color area, and each key color area assumes a color component through color mapping, that is, the color component is expressed by adjusting the color of the key color area, and then superimposed to obtain a transition color area.

[0123] More specifically, since there may be deviations in the specific colors of each basic image unit in the transition color area, each basic image unit in the transition color area is a mapping target, and the deviations of the basic image units in the transition color area are combined to obtain the mapping target distribution. It can be understood that when each key color area performs color mapping on each basic image unit in the transition color area, the color mapping will also be different. These different color mappings are combined according to the corresponding basic image units to obtain the mapping feature distribution of the key color area.

[0124] Through the above processing, the mapping feature distribution of each key color area corresponding to the mapping target distribution is obtained. This distribution reflects how to achieve effective mapping of the mapping target distribution of the transition color area through the dominant color of the key color area.

[0125] It can be understood that this method allows efficient use of the color information in the image, enhances the visual performance of the image through fine processing of the key color areas and the transition color areas, and provides a flexible framework for adjusting and editing image colors, which is particularly suitable for application scenarios that require detailed adjustment of color mapping relationships.

[0126] Preferably, the step of combining the color mapping distributions of the key color area in each of the color mapping sets to obtain the overall mapping distribution of the key color area comprises:

[0127] S41: Obtaining the color mapping distribution of the key color area in each of the color mapping sets;

[0128] S42: combining the color mapping distributions according to the image positioning coordinate system to obtain the overall mapping distribution of the key color area.

[0129] Specifically, a key color region may perform color mapping on multiple transition color regions, so it is necessary to search the key color region to obtain the color mapping distribution of all transition color regions that have performed color mapping.

[0130] More specifically, each color mapping distribution of a key color area corresponds to a different transition color area, and each over-plastic color area has a different position in the image positioning coordinate system, so the color mapping distribution points to different objects. These different color mapping distributions are combined to obtain the overall mapping distribution of the key color area.

[0131] Preferably, the step of performing data encoding processing on the image to be transmitted respectively according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted includes:

[0132] S51: performing data encoding according to the regional color features of the key color region to obtain a regional color code;

[0133] S52: performing data encoding according to the overall mapping distribution of the key color area to obtain mapping color data;

[0134] S53: combining the regional color code with the mapped color data to obtain an overall color code of the key color region;

[0135] S54: combining the overall color codes of the key color areas to obtain a data transmission model of the image to be transmitted.

[0136] Specifically, data encoding is performed on the regional color features of each key color area to generate regional color encoding. This step involves converting color features (such as main color, color deviation distribution, etc.) into a coding format that can be used for data transmission.

[0137] More specifically, data encoding is performed based on the overall mapping distribution information of the key color area to generate mapping color data, which includes converting the overall mapping distribution into a formatted data representation for easy storage and transmission.

[0138] More specifically, the regional color coding is combined with the mapping color data coding to generate the overall color coding of the key color area. This step ensures the integrity of the color information and the high efficiency of transmission.

[0139] More specifically, the overall color coding of all key color areas is comprehensively processed to construct a data transmission model for the image to be transmitted. This model will serve as the basis for image data transmission and optimize the organization and transmission methods of data.

[0140] It can be understood that by accurately encoding the key color areas and their mapping distribution, the volume of transmitted data can be greatly reduced and the efficiency of data transmission can be improved. The fine color information encoding ensures that the color quality of the image is maintained during data transmission, and reduces the loss of color information during compression and transmission. The constructed data transmission model provides flexibility for further processing of the image (such as compression, encryption, etc.), allowing the image data to be optimized according to needs. Through the overall color encoding and data transmission model, the color characteristics of the image can be restored more accurately even in the case of lossy transmission or compression, ensuring the visual effect of the image. The optimized data transmission model not only improves the transmission efficiency, but also facilitates the management and storage of images, especially in scenarios where large amounts of image data need to be processed.

[0141] Reference Figure 2 As shown, in a second aspect, the present invention provides an image transmission device, comprising:

[0142] A color partitioning module is used to analyze and process the color area of ​​the image to be transmitted to obtain a number of key color areas and transition color areas;

[0143] A mapping division module, used for analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas; wherein the color mapping set includes one of the transition color areas and a plurality of the key color areas;

[0144] A mapping processing module is used to perform color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area based on each of the color mapping sets, so as to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set;

[0145] A mapping combination module, used for combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area;

[0146] The data encoding module is used to perform data encoding processing on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution, so as to obtain a data transmission model of the image to be transmitted.

[0147] In this embodiment, for the specific implementation of each module in the above-mentioned device embodiment, please refer to the above-mentioned method embodiment, which will not be described in detail here.

[0148] In a third aspect, the present invention provides an electronic device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, and when the processor executes the computer program, an image transmission method as described in any one of the first aspects is implemented.

[0149] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An image transmission method, characterized in that: include: Analyze and process the color area of ​​the image to be transmitted to obtain several key color areas and transition color areas; Analyzing and processing the relative position relationship of each of the key color regions and the transition color regions in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color regions and each of the transition color regions; wherein the color mapping set includes one of the transition color regions and a plurality of the key color regions; Based on each of the color mapping sets, color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area is performed respectively to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set; Combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area; Data encoding processing is performed on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted.

2. An image transmission method as claimed in claim 1, characterized in that: The steps of analyzing and processing the color regions of the image to be transmitted to obtain a plurality of key color regions and transition color regions include: An image positioning coordinate system is constructed based on the image to be transmitted, so as to divide the image to be transmitted into a plurality of basic image units; wherein the image positioning coordinate system is used to coordinately position each of the basic image units; Performing color analysis processing on each of the basic image units to obtain basic color parameters of each of the basic image units; Performing a correlation analysis on basic color parameters of adjacent basic image units to obtain a color correlation vector between each basic image unit and an adjacent basic image unit; wherein the color correlation vector is used to describe the correlation between the basic color parameter of the basic image unit and the basic color parameter of the adjacent basic image unit; Integrating the basic image units into a plurality of image color regions according to color association vectors between the basic image units; Analyzing and processing are performed according to the basic color parameters of each of the basic image units in each of the image color regions to obtain regional color features of each of the image color regions; wherein the regional color features are used to describe the overall features of the basic color parameters of each of the basic image units in the image color region; Analyze and process the regional color features of each adjacent image color region, and divide each image color region into the key color region and the transition color region.

3. An image transmission method as claimed in claim 2, characterized in that: The step of analyzing and processing the basic color parameters of each basic image unit in each image color region to obtain the regional color features of each image color region comprises: Performing numerical statistical processing on basic color parameters of each basic image unit in the image color region to obtain a color parameter distribution of the image color region; wherein the color parameter distribution is used to describe each basic color parameter in the image color region and an occupation ratio of each basic color parameter; Analyzing and processing the color parameter distribution of the image color region to obtain a dominant color of the image color region and a color deviation distribution based on the dominant color; wherein the color deviation distribution is used to describe the deviation relationship between the dominant color and the color parameter distribution; The dominant color and the color deviation distribution of the dominant color are used together as the regional color feature of the image color region.

4. An image transmission method as claimed in claim 3, characterized in that: The step of analyzing and processing the color features of the adjacent image color regions to divide the image color regions into the key color regions and the transition color regions comprises: Performing primary color segmentation processing according to the dominant color of the regional color characteristics of each of the image color regions to obtain the primary color segmentation characteristics of each of the image color regions; wherein the primary color segmentation characteristics are used to describe the primary color composition ratio of the dominant color of the regional color characteristics of the image color region; Comparing and processing the primary color segmentation features of each adjacent image color region, obtaining the primary color balance ratio of each image color region in each adjacent image color region; wherein the primary color balance ratio is used to describe the degree of balance of the primary color composition ratio of the image color region in the primary color composition ratio of each adjacent image color region; Analyzing and processing the primary color balance ratios of each adjacent image color region according to a preset standard, and dividing each adjacent image color region into the key color region and the transition color region according to the result of the analysis and processing; Among them, the preset standard is a mean standard or an extreme value standard. The mean standard is to select the image color area whose primary color balance ratio is close to the middle value as the key color area, and the extreme value standard is to select the image color area whose primary color balance ratio is not close to the middle value as the key color area.

5. An image transmission method as claimed in claim 3, characterized in that: The step of analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas comprises: Performing component ratio processing on the dominant color of the transition color area to obtain a plurality of color component combinations of the dominant color of the transition color area; wherein the color component combination includes a plurality of component colors used to combine to obtain the dominant color of the transition color area; According to each color component combination of the dominant color of the transition color area, a comparison and search process is performed on the dominant colors of each adjacent key color area of ​​the transition color area, so as to select an optimal mapping combination from each adjacent key color area of ​​the transition color area; wherein the optimal mapping combination includes a plurality of adjacent key color areas of the transition color area, and the dominant colors of each key color area in the optimal mapping combination are closest to each component color in the color component combination; The transition color region and the best mapping of the transition color region are combined as the color mapping set.

6. An image transmission method as claimed in claim 5, characterized in that: Based on each of the color mapping sets, the steps of respectively performing color mapping calculation processing on each of the key color areas in the color mapping set to the transition color area to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area include: Constructing a mapping target distribution according to the dominant color and color deviation distribution of the regional color characteristics of the transition color region; wherein the mapping target distribution is used to describe the color state that each of the basic image units corresponding to the transition color region in the image positioning coordinate system should exhibit; The mapping target distribution is subjected to combined mapping processing according to the dominant colors of each of the key color areas in the color mapping set to obtain a mapping feature distribution of each of the key color areas corresponding to the mapping target distribution; wherein the color mapping distribution is used to describe the color mapping of the key color areas in the color mapping set to the mapping target distribution, and each of the key color areas in the color mapping set performs color mapping corresponding to the color mapping distribution on the mapping target distribution to obtain the mapping target distribution.

7. An image transmission method as claimed in claim 2, characterized in that: The step of combining the color mapping distributions of the key color area in each of the color mapping sets to obtain the overall mapping distribution of the key color area comprises: Obtaining the color mapping distribution of the key color area in each of the color mapping sets; The color mapping distributions are combined according to the image positioning coordinate system to obtain the overall mapping distribution of the key color area.

8. An image transmission method as claimed in claim 3, characterized in that: The step of performing data encoding processing on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution to obtain a data transmission model of the image to be transmitted comprises: Performing data encoding according to the regional color characteristics of the key color area to obtain a regional color code; Performing data encoding according to the overall mapping distribution of the key color area to obtain mapping color data; Combining the regional color code with the mapped color data to obtain an overall color code for the key color region; The overall color codes of the key color areas are combined to obtain a data transmission model of the image to be transmitted.

9. An image transmission device, characterized in that: include: A color partitioning module is used to analyze and process the color area of ​​the image to be transmitted to obtain a number of key color areas and transition color areas; A mapping division module, used for analyzing and processing the relative position relationship between each of the key color areas and the transition color areas in the image to be transmitted, so as to construct a plurality of color mapping sets between each of the key color areas and each of the transition color areas; wherein the color mapping set includes one of the transition color areas and a plurality of the key color areas; A mapping processing module is used to perform color mapping calculation processing of each of the key color areas in the color mapping set to the transition color area based on each of the color mapping sets, so as to obtain the color mapping distribution of each of the key color areas in the color mapping set to the transition color area; wherein the transition color area is used to describe the color mapping influence of the key color area on the transition color area in the color mapping set; A mapping combination module, used for combining the color mapping distributions of the key color area in each of the color mapping sets to obtain an overall mapping distribution of the key color area; The data encoding module is used to perform data encoding processing on the image to be transmitted according to each of the key color areas and the corresponding overall mapping distribution, so as to obtain a data transmission model of the image to be transmitted.

10. An electronic device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, an image transmission method as described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Zone-based tone mapping

    CN102473295A

  • Method for transferring colors by utilizing color space distribution

    CN102521807A