Image visual target coding method

Through technologies such as image data acquisition, structural entropy maximization map generation, and super-pixel segmentation, the difficulty in semantic understanding and diversity processing of image visual target encoding in the existing technology is solved, and the efficiency and fidelity of image encoding are improved. It is suitable for Various image application scenarios.

CN118540479APending Publication Date: 2024-08-23BEIHANG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410490759.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-23
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing image visual object encoding technology has deficiencies in semantic understanding, diversity processing, efficiency, and adaptive capabilities, resulting in recognition confusion, misjudgment, and high computational complexity.

Method used

Using the methods of image data collection, structural entropy maximization map generation, superpixel segmentation, multi-level optimization and feature extraction, by constructing interaction graphs and coding trees, the hierarchical coding and two-dimensional coding tree design of the image are carried out, combining superpixel segmentation and Feature extraction to improve the efficiency and fidelity of image coding.

Benefits of technology

It improves the efficiency and compression ratio of image coding, enhances the semantic representation ability of images, reduces computational complexity, and provides clearer and more detailed image coding results, which is suitable for different image application scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118540479A
    Figure CN118540479A
Patent Text Reader

Abstract

The invention discloses an image visual target coding method, which comprises the following steps of: acquiring image data to obtain original image data; image generation: carrying out structure entropy maximization graph generation on the original image; superpixel segmentation: segmenting the image into a plurality of pixels by using a superpixel segmentation model; multi-level optimization: carrying out hierarchical segmentation optimization through reduced graph and enhanced graph operations; feature extraction: extracting segmented and optimized superpixel features, and taking the extracted superpixel features as input of image visual coding; and image visual coding: carrying out image visual coding on the image subjected to feature extraction. According to the invention, the accuracy, robustness and efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular relates to an image visual target encoding method. Background Art

[0002] With the rapid development of computer vision and image processing, image object recognition and coding has become a widely concerned research field. Object coding technology aims to convert the target object in the image into a compact vector representation with semantic information to achieve efficient target recognition, image search, intelligent monitoring and other applications.

[0003] However, there are some problems with existing image visual object coding technologies, which limit their accuracy, robustness and efficiency in practical applications. First, existing technologies have certain limitations in semantic understanding and representation capabilities. Target objects of the same category may be encoded as similar vectors, while target objects of different categories may have similar vector representations, leading to confusion and misjudgment of target recognition. Second, target objects in images have diversity and variability in appearance, posture, lighting, etc., and existing technologies have difficulties in dealing with diversity and variability. For complex scenes and challenging images, target coding technologies may not be able to accurately capture the characteristics and changes of targets. In addition, with the continuous growth of image data, existing technologies may be inefficient and computationally complex when processing large-scale data sets. In addition, existing technologies have limited adaptability and generalization capabilities in different fields and scenarios, and privacy protection and security require more attention and improvement. Summary of the invention

[0004] In order to solve the above problems, the present invention proposes an image visual object encoding method to improve accuracy, robustness and efficiency.

[0005] To achieve the above object, the technical solution adopted by the present invention is: an image visual target encoding method, comprising the steps of:

[0006] Image data acquisition, obtaining original image data;

[0007] Image generation: generate a graph maximizing the structural entropy of the original image;

[0008] Superpixel segmentation, using superpixel segmentation model to segment the image into multiple pixels;

[0009] Multi-level optimization, hierarchical segmentation optimization through graph reduction and graph enhancement operations;

[0010] Feature extraction: extract the segmented and optimized superpixel features as the input of image visual encoding;

[0011] Image visual encoding, image visual encoding of feature extracted images.

[0012] Furthermore, during the image data acquisition process, a digital image containing visual information is obtained as raw image data.

[0013] Furthermore, after the image data is collected, the original image is subjected to the structure entropy maximization graph generation, and the structure entropy is used to quantify the metric of uncertainty embedded or hidden in the interaction system in the graph; for a strongly connected graph, the quantification of the structure entropy determines and decodes the coding tree associated with the vertices of the graph; the coding tree is a mathematical model and data structure of the hierarchical abstraction of the graph; the coding of the graph naturally forms the hierarchical division of the graph;

[0014] Using the input pixel image, we construct an interaction graph under distance metric and color measurement;

[0015] The structural entropy maximization graph generation method includes the following steps:

[0016] (1) Initialize an empty graph as the starting point of the generated graph;

[0017] (2) According to the predefined graph generation rules, a node is selected from the current graph as the starting point of the generation operation;

[0018] (3) Generate a new node according to the generation rule and connect it to one or more nodes in the current graph;

[0019] (4) Calculate the structural entropy of the generated new graph;

[0020] (5) Repeat steps 3 and 4 to generate multiple candidate graphs;

[0021] (6) Select the candidate graph with the largest structural entropy as the final generated result.

[0022] Furthermore, the graph G is constructed by maximizing the structural entropy and the following formula is defined:

[0023]

[0024] For the coding tree T of graph G, under the coding tree T, the structural entropy of the undirected graph G is defined as:

[0025]

[0026] Among them, vol(V α ) is T α The sum of the degrees of all vertices in g α From the vertex V\T α to T a The total weight of the edges of V, vol(G) is the total degree of all vertices in V; Indicates the number of bits required to encode a child node based on its parent node; Indicates that under the stable distribution of random walk, from T a The external transfer to T a The probability of using the corresponding code; the structural entropy H(G) of graph G is defined as H T and represents the minimum amount of information required to determine the vertices accessible from a random walk given the codeword of the starting vertex,

[0027] Furthermore, an interaction graph of graph G is constructed. The construction of the interaction graph is completed by maximizing the structural entropy and minimizing the relative entropy between the generated weights and the original weight distribution. The formula is:

[0028] G=arg maxH(G)-λd(W′,W);

[0029] Where d represents the distance metric, W is the weight of the interaction graph constructed from the complete graph and d, and W′ is the weight of the actual interaction graph G = (V, E, W′);

[0030] To construct the graph, for pixels u and v in the image whose horizontal and vertical distances are less than r, create an edge (u,v); then for each vertex, keep the first k connected edges with the smallest distance and remove the others;

[0031] Entropy maximization weight generation: Given the structure of the graph, the weight generation of the interaction graph is the result of entropy maximization. Maximum entropy ensures that the bias is minimized while reducing the uncertainty within the model, while faithfully representing the distribution of weights in the image. The optimal G is selected in the following way:

[0032]

[0033]

[0034] Among them, H(W) represents the Shannon entropy of the weight distribution W, which represents the randomness of the random walk process on the graph; d G (i, j) represents the walking distance from vertex i to j in graph G, and the weighted distance ∑ i,j W ij d G (i, j) is regarded as the average energy E of the random walk process;

[0035] Therefore, the weight of the interaction graph is defined as:

[0036]

[0037] Among them, the parameter t can control the sparsity of the graph, and Z is the normalization term;

[0038] According to the color feature distance and spatial distance between pixels, the distance is defined as:

[0039] d(i,j)=||c i -c j || a .||s i -s j || β ;

[0040] Where c represents the color vector, s represents the position vector, and α and β in the distance metric are set according to the space captured by the image.

[0041] Furthermore, superpixel segmentation generates interactive image abstractions by maximizing the decoding information, and different segmentation tasks are transformed into different graphs with different constraints to maximize the decoding information; for the hierarchical superpixel segmentation task, the segmentation is regarded as a 2D coding tree of the graph, which is generated by maximizing the 2D decoding information or minimizing the 2D structural entropy;

[0042] Includes steps:

[0043] Generate a structure map based on the image as an input image;

[0044] Perform initial superpixel segmentation on the input image;

[0045] Use structural entropy for measurement;

[0046] Merge superpixels;

[0047] Form a superpixel cluster representation.

[0048] Furthermore, given a segmentation P and an input graph G, use P to represent the segmentation of the graph G. In order to find the optimal segmentation P of the graph G with the adjusted global volume M, the structural information of the graph G under the segmentation P is set as the objective function to be minimized;

[0049] Based on the principle of minimizing structural entropy, the original graph G is decoded to obtain a segmentation P that matches the target; in the hierarchical entropy minimization segmentation algorithm, at the beginning, each node is clustered separately to form an initial segmentation P; in each clustering iteration, n clusters are extracted from the segmentation to formally construct a new graph; new clusters are formed using a greedy algorithm to minimize structural entropy, and are added to the segmentation P when the initially extracted clusters are deleted during the iteration; until the current number of clusters is less than the current n, and then after the last iteration, the target segmentation P is obtained and the segmentation is completed; when the algorithm cannot update any clusters in a cycle, it will expand n to obtain the final segmentation.

[0050] Furthermore, the multi-level optimization;

[0051] A reduction graph of the structure graph is established, and the reduction operation is performed using the adjacency matrix of the original graph and the matrix of the graph reduction; a coding tree is generated by maximizing the decoding information, and the coding tree is used as the structure of the graph reduction;

[0052] Virtual edges are created between adjacent vertices in the structure graph and reduced to weighted edges on the reduced graph. High-order regional distance is introduced to approximate the distance metric of these weighted edges. Complementary interactions are merged with the original reduced graph to generate an enhanced graph.

[0053] Furthermore, the feature extraction comprises the steps of:

[0054] (1) Superpixel feature recognition: using super-image segmentation technology to segment the image into hundreds of superpixels;

[0055] (2) Feature space construction: Based on the extracted feature types, a multidimensional feature space is constructed;

[0056] (3) Feature optimization and filtering and denoising; use the principal component analysis (PCA) optimization algorithm to reduce the dimension of the feature space to highlight the most important features and remove redundant information;

[0057] (4) Feature selection: Screening out the most useful features for classification or identification through automated selection or importance assessment.

[0058] (5) Feature encoding: Select the corresponding feature encoding technology for feature encoding according to the required compression ratio and quality requirements;

[0059] (6) Normalization of feature vectors, standardization processing and range adjustment;

[0060] (7) Output of feature vector: The normalized feature vector is output as the input for the next step of image visual encoding.

[0061] Furthermore, the image visual coding utilizes: the encoder En maps the image visual coding to potential features y; after quantization Q, it is compressed into a bit stream through entropy coding; and then the receiver converts the bit stream back through entropy decoding;

[0062] The encoder performs image transformation and the decoder performs image reconstruction; the encoder consists of 4 downsampling blocks, and a scale affine layer is added between adjacent convolutional layers; the encoder consists of 4 upsampling blocks, and a scale affine layer is added between adjacent convolutional layers.

[0063] The beneficial effects of adopting this technical solution are:

[0064] The present invention can improve the efficiency and compression ratio of image coding. Through the structural design of hierarchical coding, coding tree and two-dimensional coding tree, and the application of superpixel segmentation technology, the efficiency and compression ratio of image coding are improved. Hierarchical coding and coding tree can effectively utilize redundant information in the image, reduce unnecessary data storage and transmission, and thus achieve more efficient image compression. The design of the two-dimensional coding tree can better capture the spatial correlation of the image and further improve the coding effect. Superpixel segmentation, as a preprocessing step, can better retain the structural information of the image, making the subsequent feature extraction and coding process more accurate and effective.

[0065] The present invention improves the quality and fidelity of image coding. The quality and fidelity of image coding are improved through the steps of feature extraction and image visual coding. The feature extraction stage performs feature extraction on each superpixel to capture important information and visual features in the image. These features can be used as input for image visual coding, which helps to more accurately represent the image content. The image visual coding stage uses these features for compression, and by optimizing the coding algorithm and parameter settings, higher quality image reconstruction and fidelity can be achieved. Through the invention scheme, a clearer and more detailed image coding result can be provided.

[0066] The present invention provides a universal image coding method and system, which is applicable to various image application scenarios and requirements. Through the design of hierarchical coding, coding tree and two-dimensional coding tree, as well as superpixel segmentation and feature extraction technology, the invention scheme can be applied to different types of image data, including static images, dynamic images and videos. This universal image coding method and system can be widely used in different fields and industries, such as digital media, communications, medical imaging, etc. It provides an efficient and reliable solution for the storage, transmission and processing of image data, and has broad application prospects. BRIEF DESCRIPTION OF THE DRAWINGS

[0067] Figure 1 The figure is a flow chart of an image visual target encoding method of the present invention. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described below with reference to the accompanying drawings.

[0069] In this embodiment, see Figure 1 As shown, the present invention proposes an image visual target encoding method, comprising the steps of:

[0070] Image data acquisition, obtaining original image data;

[0071] Image generation: generate a graph maximizing the structural entropy of the original image;

[0072] Superpixel segmentation, using superpixel segmentation model to segment the image into multiple pixels;

[0073] Multi-level optimization, hierarchical segmentation optimization through graph reduction and graph enhancement operations;

[0074] Feature extraction: extract the segmented and optimized superpixel features as the input of image visual encoding;

[0075] Image visual encoding, image visual encoding of feature extracted images.

[0076] As an optimization solution of the above embodiment, during the image data acquisition process, a digital image containing visual information is obtained as original image data.

[0077] It involves using a camera, sensor or other image acquisition device to shoot or scan the target scene to obtain a digital image containing visual information. The purpose of image data acquisition is to capture the visual content in the target scene and provide input data for subsequent image encoding and processing. In the invention scheme of this patent, image data acquisition is the starting point of the entire technical process, providing raw image data for subsequent steps such as structural entropy maximization graph generation, superpixel segmentation, feature extraction and image visual encoding. Image data acquisition can be performed through various image acquisition devices, such as digital cameras, video cameras, scanners, etc. During the acquisition process, appropriate equipment and parameter settings can be selected according to specific needs and application scenarios to obtain high-quality image data. The acquired image data may contain rich visual information, such as objects, textures, colors, shapes, etc. in the scene. In order to ensure the quality of the acquired image data, factors such as appropriate lighting conditions, camera settings and shooting angles can be considered.

[0078] As an optimization scheme of the above embodiment, after the image data is collected, the original image is subjected to the structure entropy maximization graph generation, and the structure entropy is used to quantify the metric of uncertainty embedded or hidden in the interaction system in the graph; for a strongly connected graph, the quantization of the structure entropy determines and decodes the coding tree associated with the vertices of the graph; the coding tree is a hierarchical abstract mathematical model and data structure of the graph; the coding of the graph naturally forms the hierarchical division of the graph;

[0079] Using the input pixel image, we construct an interaction graph under distance metric and color measurement;

[0080] The structural entropy maximization graph generation method includes the following steps:

[0081] (1) Initialize an empty graph as the starting point of the generated graph;

[0082] (2) According to the predefined graph generation rules, a node is selected from the current graph as the starting point of the generation operation;

[0083] (3) Generate a new node according to the generation rule and connect it to one or more nodes in the current graph;

[0084] (4) Calculate the structural entropy of the generated new graph;

[0085] (5) Repeat steps 3 and 4 to generate multiple candidate graphs;

[0086] (6) Select the candidate graph with the largest structural entropy as the final generated result.

[0087] By iteratively generating and evaluating the structural entropy of candidate graphs, this method can gradually generate richer and more diverse graph structures. The generation rules can be designed according to specific application fields and requirements to control the structural characteristics and constraints in the generation process.

[0088] The coding tree of a graph G = (V, E) is defined as a rooted tree T with the following properties: 1) For each node α∈T, there exists a subset of vertices and the subgraph G in G corresponding to α a . 2) For the root node λ, we set T λ =V. 3) For each node α∈T, its parent node is labeled α-. 4) For each leaf node α, T a is a singleton set containing a single vertex in V. 5) For each non-leaf node α∈T, all vertex subsets of its child nodes form T a The division of and T β =T α If the height of a coding tree T is k, then T is called a k-level coding tree.

[0089] Structural entropy successfully provides a quantitative measure of the complexity of a graph, which has been verified in the field of graph representation learning. The present invention does not use entropy to measure the complexity of network data, but uses structural entropy as a structural guide for building interaction graphs. Compared with other graph-based superpixel segmentation algorithms, the algorithm used in the present invention maximizes the information entropy of the graph structure.

[0090] The graph G is constructed by maximizing the structural entropy and the following formula is defined:

[0091]

[0092] For the coding tree T of graph G, under the coding tree T, the structural entropy of the undirected graph G is defined as:

[0093]

[0094] Among them, vol(Va ) is T α The sum of the degrees of all vertices in g α From the vertex V\T a to T a The total weight of the edges of V, vol(G) is the total degree of all vertices in V; Indicates the number of bits required to encode a child node based on its parent node; Indicates that under the stable distribution of random walk, from T a The external transfer to T a The probability of using the corresponding code; the structural entropy H(G) of graph G is defined as H T and represents the minimum amount of information required to determine the vertices accessible from a random walk given the codeword of the starting vertex,

[0095] The differences in structural entropy in graph generation are controlled by given parameters while using the same distance metric for graph generation. Graphs with lower structural entropy tend to capture simple boundaries, while graphs with higher structural entropy can capture complex boundaries. The above examples apply to any pixel-based interaction measure. Intuitively, graphs with higher structural entropy tend to be densely connected and can capture long-distance relationships between modules, which suggests that maximizing structural entropy is an important principle for analyzing internal relationships in images.

[0096] However, in actual data processing, building a complete graph is inefficient. In most cases, we must properly balance the cost of the computing system and the performance of the model. In addition, we also need to optimize by analyzing the patterns in the data space to ensure that the model operates in an efficient and effective manner in a specific task. Therefore, the present invention establishes an interaction graph of the graph G, and the construction of the interaction graph is completed by simultaneously maximizing the structural entropy and minimizing the relative entropy between the original weight distribution of the generated weights, and the formula is:

[0097] G=arg max H(G)-λd(W′,W);

[0098] Where d represents the distance metric, W is the weight of the interaction graph constructed from the complete graph and d, and W′ is the weight of the actual interaction graph G = (V, E, W′);

[0099] The following conditions are met:

[0100]

[0101] To construct the graph, for pixels u and v in the image whose horizontal and vertical distances are less than r, create an edge (u, v); then for each vertex, keep the first k connected edges with the smallest distance and remove the others; the overall time complexity is O(HWr 2logr). The algorithm can be efficiently parallelized, and the complexity after parallelization is O(1).

[0102] Entropy maximization weight generation: Given the structure of the graph, the weight generation of the interaction graph is the result of entropy maximization. Maximum entropy ensures that the bias is minimized while reducing the uncertainty within the model, while faithfully representing the distribution of weights in the image. The optimal G is selected in the following way:

[0103]

[0104]

[0105] Among them, H(W) represents the Shannon entropy of the weight distribution W, which represents the randomness of the random walk process on the graph; d G (i, j) represents the walking distance from vertex i to j in graph G, and the weighted distance ∑ i,j W ij d G (i, j) is regarded as the average energy E of the random walk process;

[0106] Therefore, the weight of the interaction graph is defined as:

[0107]

[0108] Among them, the parameter t can control the sparsity of the graph, and Z is the normalization term;

[0109] According to the color feature distance and spatial distance between pixels, the distance is defined as:

[0110] d(i,j)=||c i -c j || α .||s i -s j || β ;

[0111] Where c represents the color vector, s represents the position vector, and α and β in the distance metric are set according to the space captured by the image.

[0112] As an optimization scheme of the above embodiment, superpixel segmentation generates interactive image abstraction by maximizing the decoding information, and utilizes different segmentation tasks to transform into maximizing the decoding information in different graphs with different constraints; for the hierarchical superpixel segmentation task, the segmentation is regarded as a two-dimensional coding tree of the graph, which is generated by maximizing the two-dimensional decoding information or minimizing the two-dimensional structural entropy;

[0113] Includes steps:

[0114] Generate a structure map based on the image as an input image;

[0115] Perform initial superpixel segmentation on the input image;

[0116] Use structural entropy for measurement;

[0117] Merge superpixels;

[0118] Form a superpixel cluster representation.

[0119] Superpixel segmentation is an image processing technique that aims to divide an image into compact and continuous regions with semantically consistent regions, which are often called superpixels. Compared with traditional pixel-level segmentation, superpixel segmentation can reduce the details in the image and combine similar pixels into larger regions, thus providing a higher-level image representation.

[0120] Specifically, given a segmentation P and an input graph G, use P to represent the segmentation of the graph G. In order to find the optimal segmentation P of the graph G with the adjusted global volume M, the structural information of the graph G under the segmentation P is set as the objective function to be minimized;

[0121] Based on the principle of minimizing structural entropy, the original graph G is decoded to obtain a segmentation P that matches the target; in the hierarchical entropy minimization segmentation algorithm, at the beginning, each node is clustered separately to form an initial segmentation P; in each clustering iteration, n clusters are extracted from the segmentation to formally construct a new graph; new clusters are formed using a greedy algorithm to minimize structural entropy, and are added to the segmentation P when the initially extracted clusters are deleted during the iteration; until the current number of clusters is less than the current n, and then after the last iteration, the target segmentation P is obtained and the segmentation is completed; when the algorithm cannot update any clusters in a cycle, it will expand n to obtain the final segmentation.

[0122] Given a partition P and a graph G, the two-dimensional structural entropy is defined as:

[0123]

[0124] Among them, vol(G), vol(X) and v i They represent the total volume of graph G, the volume of the vertex set of module X, and the volume of node i, respectively. X represents the sum of the edge weights entering X from the outside. Understanding 2D structural entropy minimization. For a grid graph, assume that the graph G is generated by connecting each node with the k nearest nodes, the number of nodes in the graph is M, and the size of each cluster is N. By minimizing H P (G), the approximate expression of N is:

[0125] N~∵(k log2 M);

[0126] If N>>k and M>N, the size of the segmentation is adjusted to suit the specific task by setting the graph M. However, the automatic generation of segmentation sizes reveals the best partition representation between analyzing local features within the segmentation and global features between the segmentations.

[0127] In the decoding information maximization model, by merging two modules X and Y into a single module X∪Y, the change in 2D structural entropy can be expressed as:

[0128]

[0129] Among them, e XY represents the sum of the edge weights connecting modules X and Y. In order to maximize the decoding information, the optimization of the partition P should satisfy Assume that for modules A1 and A2, their volumes are both m, M is the lower limit of the adjusted graph size vol(G), satisfying And modules B1 and B2 satisfy vol(B1)=vol(B2)=km, that is, the volume of B is k times that of A, then we have:

[0130]

[0131] where k is proportional to the density and number of nodes in subgraphs B1 and B2. The inequality shows that maximizing the decoded information naturally provides a normalization term k on the edges when performing hierarchical segmentation optimization and provides an information-theoretic interpretation for normalization methods such as normalized cuts. The strength of the normalization is affected by the variance of the edge weights.

[0132] Implementation of the algorithm. Each level of the framework performs graph partitioning. The graph partitioning algorithm is based on a greedy heuristic algorithm that minimizes the two-dimensional structural information and additionally considers self-loops. Here we use an efficient method to implement it. Using P = {P1, P2, ..., P n} represents the partition of graph G, where and To find the optimal segmentation P of the graph G with the adjusted global volume M, the structural information of the graph G under segmentation P is set as the objective function to be minimized.

[0133]

[0134] Note that to calculate HP, we only need to maintain: (1) Module P i Between vertices and modules P i The total weight of the edges outside is expressed as (2) Module P i and P j The bridging edge between (3) Then, Pi and P j Merge into P i ∪P j The difference in structural entropy after is:

[0135]

[0136] The heuristic algorithm greedily merges the modules P of the graph i and P j To provide maximum entropy optimization. is by merging the module P i and P j Reduced H P The parameters O, V, and E are incrementally maintained. Unfortunately, the structural entropy does not satisfy the submodular property, so the neighboring nodes need to be recalculated after the merging process.

[0137] O X∪Y =O X +O Y -E X,Y ,V X∪Y =V X +V Y .(17)

[0138] Based on the principle of minimizing structural entropy proposed above, the original graph G is decoded<V,E,W> , to obtain a segmentation P that matches the target. In the hierarchical entropy minimization segmentation algorithm, at the beginning, each node is clustered separately to form an initial segmentation P. In each clustering iteration, n clusters are extracted from the segmentation to formally build a new graph. New clusters are formed using a greedy algorithm to minimize the structural entropy and added to the segmentation P when the initially extracted clusters are deleted during the iteration. Until the current number of clusters is less than the current n, then after the last iteration, we obtain the target segmentation P and the segmentation is completed. When the algorithm cannot update any clusters in a cycle, it will expand n to obtain the final segmentation.

[0139] As an optimization solution of the above embodiment, the multi-level optimization;

[0140] A reduction graph of the structure graph is established, and the reduction operation is performed using the adjacency matrix of the original graph and the matrix of the graph reduction; a coding tree is generated by maximizing the decoding information, and the coding tree is used as the structure of the graph reduction;

[0141] We can observe that the structural entropy of a graph not only quantifies the inherent or hidden information in the graph, but also determines and decodes the best hierarchical abstraction of the graph. This abstraction is represented by a coding tree found on the graph. The best coding tree minimizes the remaining uncertainty in the graph and provides a hierarchical abstraction that minimizes the structural entropy. Therefore, the best coding tree represents the maximal functional module of the graph.

[0142] Graph reduction based on coding trees. Graph reduction is a method to speed up graph algorithms by reducing the number of nodes while maintaining structural properties such as spectrum and cuts. The graph reduction operation can be expressed as:

[0143] A′=PAP T ;

[0144] where A∈R N×N Represents the adjacency matrix of the original graph, A′∈R M×M Represents the adjacency matrix of the reduced graph, P∈R M×N The matrix representing the graph reduction. In the framework used, denser and higher-level connections are introduced into the graph by reducing the number of nodes while maintaining the consistency of the representation. The framework applies a coding tree generated by maximizing the decoding information instead of a spectral structure. Using the coding tree as the structure for graph reduction naturally preserves the structural information and encoding properties. The effectiveness of structural information in graph reduction has been verified by applying its results to convolutional graph neural networks. The formula for the reduction operation is shown below:

[0145]

[0146] Here, α(v) represents the leaf node in the coding tree corresponding to vertex v in graph G. The reduction operation maps the original vertex to the vertex set of the parent node of α(v). Therefore, for a weighted graph G = (V, E, A), the reduced graph R T (G) is defined as follows:

[0147] R T (V) = {R T (v)|v∈V}

[0148] R T (E) = {(R T (v s ),R T (v t ))|(v s ,v t )∈E}

[0149] R T (V) = {R T (v)|v∈V}

[0150] R T (E) = {(R T (v s ),R T (v t ))|(v s ,v t )∈E}

[0151]

[0152] R T (G)=(R T (V),R T (E), PAP T );

[0153] in is the matrix of graph reduction. Note that edges within the same module are merged into self-loops. The encoding tree T of the graph G can be transformed into a reduced graph R by merging its leaf nodes T The coding tree R(T) of (G) is as follows:

[0154]

[0155] If G is an interaction graph, then R T (G) is a connected graph, and PAP T is a symmetric irreducible non-negative matrix. The vertex set R T (V) represents the non-overlapping region of the image. The reduction operation maintains the cut structure of the graph, which is defined as:

[0156]

[0157] Additionally, the high-level hierarchy is preserved and is defined as:

[0158]

[0159] Therefore, optimizing T is reduced to the problem of optimizing R(T), resulting in an iterative superpixel segmentation method. After partitioning the image into graph regions, the graph is replaced with a simplified version for further optimization. Finally, the optimization of R(T) is transformed into the optimization of T. On an interaction graph G with an edge set E, the reduction operation has a complexity of O(|E|) and can be parallelized via sparse matrix operations.

[0160] Virtual edges are created between adjacent vertices in the structure graph and reduced to weighted edges on the reduced graph. High-order regional distance is introduced to approximate the distance metric of these weighted edges. Complementary interactions are merged with the original reduced graph to generate an enhanced graph.

[0161] The reduction operation transforms a graph into a smaller, higher-level graph, allowing us to introduce additional information into the graph in a way that adds new connections without increasing the overall complexity. We need to create virtual edges between adjacent vertices as complementary interactions of the original generated graph. These edges are then reduced to weighted edges on the reduced graph, which is equivalent to creating appropriate hyperedges on the original graph. In order to approximate the distance metric for these weighted edges, a higher-order area distance is introduced. The complementary interactions are then merged with the original reduced graph, containing mainly edge information. Based on the assumption that, at a low level, the graph partitioning before and after optimization is the same, optimizing the encoding of the reduced graph is equivalent to optimizing the original graph with virtual complementary edges.

[0162] Through the above processes, using super-image segmentation technology, the image structure information can be better preserved and the quality of image encoding can be improved.

[0163] As an optimization solution of the above embodiment, the feature extraction includes the steps of:

[0164] (1) Superpixel feature recognition: using super-image segmentation technology to segment the image into hundreds of superpixels;

[0165] In the initial stage of feature extraction, the image data is initialized and converted into a format suitable for processing, and the resolution and color space of the image are determined. Then, using the above super-image segmentation technology, the image is segmented into hundreds of super-pixels. These super-pixels are visually consistent and can better preserve the edge and structural information of the image. Next, feature recognition is performed on each super-pixel, including feature extraction in terms of color, texture, shape, etc. The color histogram, texture gradient, and edge strength of each super-pixel can be calculated.

[0166] (2) Feature space construction: Based on the extracted feature types, a multidimensional feature space is constructed;

[0167] Based on the extracted features, such as color and texture features, the feature space will include dimensions such as color histogram and texture gradient. The features of each superpixel are mapped into the feature space to form a feature vector. The position of this vector in the feature space represents the visual properties of the superpixel. When mapping the features of each superpixel into the feature space, features of different dimensions can be combined according to certain rules to form a feature vector. The position of this feature vector in the feature space represents the visual properties of the superpixel, and different feature vectors can be compared and classified using distance or similarity metrics.

[0168] (3) Feature optimization and filtering and denoising; use the principal component analysis (PCA) optimization algorithm to reduce the dimension of the feature space to highlight the most important features and remove redundant information;

[0169] In order to improve the accuracy and robustness of the features, the feature optimization step is performed. First, filter and denoising techniques are applied. We use median filtering to reduce the impact of image noise on feature extraction. Median filtering is a nonlinear filter that replaces the value of each pixel with the median of the pixel values ​​in the neighborhood around the pixel. The median filter can effectively remove salt and pepper noise or impulse noise in the image while maintaining the clarity of the image edges. Then, the principal component analysis PCA optimization algorithm is used to reduce the dimension of the feature space to highlight the most important features and remove redundant information. PCA is a commonly used unsupervised dimensionality reduction method that maps the original features to a set of new orthogonal features through linear transformation. These new features are called principal components and are sorted according to the size of the information they carry. By selecting a smaller number of principal components, most of the information in the original features can be retained and the redundancy between features can be removed.

[0170] (4) Feature selection: Screening out the most useful features for classification or identification through automated selection or importance assessment.

[0171] In automated selection, we use machine learning algorithms (such as support vector machines SVM or decision trees) to select features with high predictive power from the feature set. Importance evaluation evaluates each feature and selects the most effective features for distinguishing images from different categories. We use the mutual information method for evaluation, which measures the correlation between the feature and the target variable. Based on these metrics, features with high information gain or mutual information can be selected as important features.

[0172] (5) Feature encoding: Select the corresponding feature encoding technology for feature encoding according to the required compression ratio and quality requirements;

[0173] We can use the gradient histogram method to encode features. The gradient histogram calculates the gradient direction and intensity of each pixel in the image, then divides the image into small local areas (cells), counts the frequency of different gradient directions in each area, and forms a histogram. Finally, the histograms of all areas are connected in series to obtain a comprehensive feature vector. In terms of more advanced encoding, we use the deep learning method of convolutional neural networks to learn feature representation. Through multiple layers of convolution and pooling operations, the abstract features of the image are gradually extracted. Finally, these abstract features are mapped to a low-dimensional feature space to form a feature vector. These feature vectors can capture the semantic information and contextual relationships of the image and have strong expressive power.

[0174] (6) Normalization of feature vectors, standardization processing and range adjustment;

[0175] In order to ensure that the feature vectors are of the same magnitude and provide high-quality input for subsequent image visual encoding, the feature vectors are normalized. This includes standardization and range adjustment. Standardization standardizes each dimension of the feature vector to a distribution with a mean of 0 and a variance of 1 to eliminate the dimensional differences between different dimensions. We use Z-score standardization to calculate the mean and standard deviation of each dimension in the feature vector, then subtract the mean from each eigenvalue and divide it by the standard deviation. This converts the eigenvalue into a distribution with a mean of 0 and a standard deviation of 1.

[0176] Range adjustment adjusts the value of the feature vector to a specific range to meet the input requirements of the encoding algorithm. We use the linear scaling method for range adjustment, which maps the value of the feature vector from the original range to the new specified range. The specific operation is to perform a linear transformation on each feature value, mapping the minimum value of the original range to the minimum value of the new range, and mapping the maximum value of the original range to the maximum value of the new range.

[0177] (7) Output of feature vector: The normalized feature vector is output as the input for the next step of image visual encoding.

[0178] Ensure that the feature vector can accurately reflect the visual content of the original image and provide high-quality input for image compression. The output of the feature vector not only contains the extracted, optimized and encoded visual feature information, but also undergoes normalization to give it a uniform scale and range for subsequent image encoding and processing.

[0179] As an optimization solution of the above embodiment, the image visual encoding uses: the encoder En maps the image visual encoding to the potential feature y; after quantization Q, it is compressed into a bit stream through entropy coding; and then the receiver converts the bit stream back through entropy decoding;

[0180] The encoder performs image transformation and the decoder performs image reconstruction; the encoder consists of 4 downsampling blocks, and a scale affine layer is added between adjacent convolutional layers; the encoder consists of 4 upsampling blocks, and a scale affine layer is added between adjacent convolutional layers; this simple module performs affine transformation on the latent features so that they contain richer semantic and contextual information to better extract prototypes.

[0181] The entropy coding module needs to use the Channel-wise Auto-Regressive Model (ChARM) as the entropy estimation module. In this model, the latent variable y is divided into 10 groups along the channel dimension. Gaussian prior distribution The estimation is done in an autoregressive manner, where the mean and standard deviation of yi depend on the latent variables quantified in the previous group To further enhance the estimation capability, we also need to use RAT in it. RAT can transmit prototypes of key areas through separate bitstreams, which helps more efficient encoding and decoding. The prototype p can be regarded as segmentation prior information, which is complementary to the super prior information z.

[0182] The above shows and describes the basic principles and main features of the present invention and the advantages of the present invention. It should be understood by those skilled in the art that the present invention is not limited to the above embodiments. The above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention to be protected. The scope of protection of the present invention is defined by the attached claims and their equivalents.

Claims

1. A method for encoding an image visual object, characterized in that: Includes steps: Image data acquisition, obtaining original image data; Image generation: generate a graph maximizing the structural entropy of the original image; Superpixel segmentation, using superpixel segmentation model to segment the image into multiple pixels; Multi-level optimization, hierarchical segmentation optimization through graph reduction and graph enhancement operations; Feature extraction: extract the segmented and optimized superpixel features as the input of image visual encoding; Image visual encoding, image visual encoding of feature extracted images.

2. The image visual target encoding method according to claim 1, characterized in that: During the image data acquisition process, a digital image containing visual information is obtained as raw image data.

3. The image visual target encoding method according to claim 1, characterized in that: After the image data is collected, the original image is subjected to the structure entropy maximization graph generation, and the structure entropy is used to quantify the metric of uncertainty embedded or hidden in the interaction system in the graph; for a strongly connected graph, the quantification of the structure entropy determines and decodes the coding tree associated with the vertices of the graph; The coding tree is a mathematical model and data structure of the hierarchical abstraction of the graph; the coding of the graph naturally forms the hierarchical division of the graph; Using the input pixel image, we construct an interaction graph under distance metric and color measurement; The structural entropy maximization graph generation method includes the following steps: (1) Initialize an empty graph as the starting point of the generated graph; (2) According to the predefined graph generation rules, a node is selected from the current graph as the starting point of the generation operation; (3) Generate a new node according to the generation rule and connect it to one or more nodes in the current graph; (4) Calculate the structural entropy of the generated new graph; (5) Repeat steps 3 and 4 to generate multiple candidate graphs; (6) Select the candidate graph with the largest structural entropy as the final generated result.

4. The image visual target encoding method according to claim 3, characterized in that: The graph G is constructed by maximizing the structural entropy and the following formula is defined: For the coding tree T of graph G, under the coding tree T, the structural entropy of the undirected graph G is defined as: Among them, vol(V α ) is T α The sum of the degrees of all vertices in g α is from vertex V\T α to T a The total weight of the edges of V, vol(G) is the total degree of all vertices in V; Indicates the number of bits required to encode a child node based on its parent node; Indicates that under the stable distribution of random walk, from T a The external transfer to T a The probability of using the corresponding code; the structural entropy H(G) of graph G is defined as H T and represents the minimum amount of information required to determine the vertices accessible from a random walk given the codeword of the starting vertex, 5. The image visual target encoding method according to claim 4, characterized in that: The interaction graph of graph G is constructed by maximizing the structural entropy and minimizing the relative entropy between the generated weights and the original weight distribution. The formula is: G = argmaxH(G)-λd(W′,W); Where d represents the distance metric, W is the weight of the interaction graph constructed from the complete graph and d, and W′ is the weight of the actual interaction graph G = (V, E, W′); To construct the graph, for pixels u and v in the image whose horizontal and vertical distances are less than r, create an edge (u,v); then for each vertex, keep the first k connected edges with the smallest distance and remove the others; Entropy maximization weight generation: Given the structure of the graph, the weight generation of the interaction graph is the result of entropy maximization. Maximum entropy ensures that the bias is minimized while reducing the uncertainty within the model, while faithfully representing the distribution of weights in the image. The optimal G is selected in the following way: Among them, H(W) represents the Shannon entropy of the weight distribution W, which represents the randomness of the random walk process on the graph; d G (i, j) represents the walking distance from vertex i to j in graph G, and the weighted distance ∑ i,j W ij d G (i, j) is regarded as the average energy E of the random walk process; Therefore, the weight of the interaction graph is defined as: Among them, the parameter t can control the sparsity of the graph, and Z is the normalization term; According to the color feature distance and spatial distance between pixels, the distance is defined as: d(i,j)=||c i -c j || a .||s i -s j || β ; Where c represents the color vector, s represents the position vector, and α and β in the distance metric are set according to the space captured by the image.

6. The image visual target encoding method according to claim 1, characterized in that: Superpixel segmentation generates interactive image abstractions by maximizing the decoding information, and different segmentation tasks are transformed into maximizing the decoding information in different graphs with different constraints; for the hierarchical superpixel segmentation task, the segmentation is regarded as a 2D coding tree of the graph, which is generated by maximizing the 2D decoding information or minimizing the 2D structural entropy; Includes steps: Generate a structure map based on the image as an input image; Perform initial superpixel segmentation on the input image; Use structural entropy for measurement; Merge superpixels; Form a superpixel cluster representation.

7. The method for encoding an image visual object according to claim 6, characterized in that: Given a segmentation P and an input graph G, use P to represent the segmentation of graph G. In order to find the optimal segmentation P of graph G with the adjusted global volume M, the structural information of graph G under segmentation P is set as the objective function to be minimized. Based on the principle of minimizing structural entropy, decode the original graph G to obtain the segmentation P that matches the target; In the hierarchical entropy minimization segmentation algorithm, at the beginning, each node is clustered individually to form an initial segmentation P; In each clustering iteration, n clusters are extracted from the partition to formally construct a new graph; New clusters are formed using a greedy algorithm to minimize the structural entropy and are added to the segmentation P when the initially extracted clusters are deleted during the iteration process; until the current number of clusters is less than the current n, and then after the last iteration, the target segmentation P is obtained and the segmentation is completed; when the algorithm cannot update any clusters in a cycle, it will expand n to obtain the final segmentation.

8. The image visual target encoding method according to claim 1, characterized in that: The multi-level optimization; Establish a reduction graph of the structure graph, and use the adjacency matrix of the original graph and the matrix of the graph reduction to perform the reduction operation; Generate a coding tree by maximizing the decoding information and use the coding tree as the structure for graph reduction; Virtual edges are created between adjacent vertices in the structure graph and reduced to weighted edges on the reduced graph. High-order regional distance is introduced to approximate the distance metric of these weighted edges. Complementary interactions are merged with the original reduced graph to generate an enhanced graph.

9. The image visual target encoding method according to claim 1, characterized in that: The feature extraction comprises the steps of: (1) Superpixel feature recognition: using super-image segmentation technology to segment the image into hundreds of superpixels; (2) Feature space construction: Based on the extracted feature types, a multidimensional feature space is constructed; (3) Feature optimization and filtering and denoising; use the principal component analysis (PCA) optimization algorithm to reduce the dimension of the feature space to highlight the most important features and remove redundant information; (4) Feature selection: Screening out the most useful features for classification or identification through automated selection or importance assessment; (5) Feature encoding: Select the corresponding feature encoding technology for feature encoding according to the required compression ratio and quality requirements; (6) Normalization of feature vectors, standardization processing and range adjustment; (7) Output of feature vector: The normalized feature vector is output as the input for the next step of image visual encoding.

10. The image visual target encoding method according to claim 1, characterized in that: The image visual encoding is performed by: the encoder En maps the image visual encoding into a potential feature y; After quantization Q, it will be compressed into a bit stream through entropy coding; The receiver then converts the bit stream back through entropy decoding; The encoder performs image transformation and the decoder performs image reconstruction; the encoder consists of 4 downsampling blocks, and a scale affine layer is added between adjacent convolutional layers; the encoder consists of 4 upsampling blocks, and a scale affine layer is added between adjacent convolutional layers.

Citation Information

Cited By

  • Image processing method for organoid recognition and processing system thereof

    CN119206718A