Method for extracting image features of three-dimensional image
Through the combination of three-dimensional Gaussian geometric moments and TRS invariants, the problem of consistency of three-dimensional image feature extraction under the influence of noise is solved, feature invariance under rotation, translation and scale transformation is achieved, and the accuracy and accuracy of three-dimensional image retrieval are improved. Accuracy.
Patent Information
- Application Number
- CN202410714851.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When existing technologies deal with feature extraction from three-dimensional images under the influence of noise, feature consistency is insufficient, which affects model generalization capabilities. In particular, it is difficult to maintain feature invariance under rotation and scale transformation.
Three-dimensional Gaussian geometric moments and their TRS invariants are used to calculate Gaussian geometric moments through numerical methods, and a Gaussian function is introduced in image processing to weight the contribution of voxels to ensure that features remain consistent under rotation, translation and scale transformation, and It is used in content-based three-dimensional image retrieval systems to achieve fast matching and retrieval.
It improves the consistency and matching accuracy of image features, significantly improves the retrieval accuracy in complex three-dimensional model libraries, and ensures the stability and robustness of features under different geometric transformations.
Smart Images

Figure CN118537575A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image feature extraction, and in particular to a method for extracting image features of a three-dimensional image. Background Art
[0002] With the advancement of 3D scanning technology, 3D modeling software and 3D printing technology, the acquisition of 3D image data has become more and more convenient, and the application scenarios have also increased dramatically, from medical image analysis, reverse engineering, virtual reality to robot navigation, cultural heritage protection and other fields. These applications have put forward an urgent need for efficient and accurate 3D image feature extraction;
[0003] In practical applications, images are often affected by many factors such as perspective changes, lighting conditions, occlusion, noise, etc. Therefore, developing image features that can resist these changes, that is, having rotation invariance, scale invariance, and translation invariance, has become a research focus. Methods such as three-dimensional Gaussian geometric moments and their TRS invariants came into being in this context.
[0004] After searching, the invention patent with Chinese patent number CN108717568B discloses an image feature extraction and training method based on a three-dimensional convolutional neural network. Compared with the existing technology, the invention patent with Chinese patent number CN108717568B can effectively extract the three-dimensional features and patterns of the image, and the proportional balanced sample input mechanism enhances the model's expression ability for various categories, and the improved loss function improves the recognition rate of the neural network.
[0005] However, neural networks usually achieve category balance by oversampling minority class samples or undersampling majority class samples. Oversampling may cause the model to learn repeated feature patterns and may introduce noise. For images that have undergone geometric transformation, the consistency of features will be reduced, affecting the generalization ability of the model. The present invention defines a three-dimensional Gaussian geometric moment and constructs a three-dimensional Gaussian geometric moment TRS invariant to achieve good invariance of the three-dimensional Gaussian geometric moment invariant under rotation and scale transformation. For noisy rotated images, the MRE of the three-dimensional Gaussian geometric moment invariant can be better extracted. Therefore, a method for extracting image features of a three-dimensional image is proposed herein. Summary of the invention
[0006] The purpose of the present invention is to solve the shortcoming in the prior art that the consistency of extracted features cannot be effectively maintained for images with noise, and to propose a method for extracting image features of a three-dimensional image.
[0007] In order to achieve the above object, the present invention adopts the following technical solutions:
[0008] A method for extracting image features of a three-dimensional image, the image feature extraction process is:
[0009] S1: Establish the theoretical framework of three-dimensional Gaussian geometric moments to clarify the theoretical basis and concepts;
[0010] S2: Computation of Gaussian geometric moments on discretized 3D image data using numerical methods, computational implementation details;
[0011] S3: Construct TRS translation, rotation, and scale invariants, and ensure that features remain consistent under different geometric transformations through centering and normalization.
[0012] S4: Apply the TRS invariant to the content-based 3D image retrieval system to achieve fast image matching and retrieval by calculating the similarity between the query image and the image features in the database.
[0013] In S1, the three-dimensional Gaussian geometric moment is achieved by assigning a weight based on its position (x, y, z) and probability density function ρ(x, y, z) to each point of the object in the three-dimensional space, and using the Gaussian function Further weighting is performed to comprehensively consider the "weight" distribution of the object's shape in various directions:
[0014]
[0015] p, q, r are non-negative integers representing the moment orders along the x, y, and z axes, respectively. σ is the standard deviation of the Gaussian function, which controls the rate at which the weight decays with increasing spatial distance.
[0016] In S1, the concept of three-dimensional Gaussian geometric moments is based on multidimensional statistical analysis. By considering the "weight" distribution of objects in different directions, the probability density function ρ(x, y, z) is used to quantify the shape characteristics. Then, the Gaussian function is introduced. This makes the description robust to local noise, and controls how fast the weight decays with distance through σ.
[0017] In S2, based on the theoretical foundation and clear concepts in S1, the 3D image data is loaded into the computer memory, and the 3D space is divided into a series of small cubes. Each cube is called a voxel. The size of the voxel depends on the required resolution and computing resources.
[0018] Assign a density or intensity value to each voxel, derived from the original image data, or in computer graphics, the color or grayscale value of each point;
[0019] Traverse each voxel (i, j, k), where i, j, k are the indices of the voxel in the x, y, and z directions respectively;
[0020] For the current voxel position (x i ,y j ,z k ), calculate the value of the Gaussian function:
[0021]
[0022] Where σ is the standard deviation of the Gaussian function;
[0023] According to the definition of three-dimensional Gaussian geometric moment, the contribution of each voxel to the geometric moment is calculated:
[0024]
[0025] where ρ ijk is the density or intensity value of voxel (i,j,k), p,q,r are the corresponding powers, and then the contributions of all voxels are accumulated to approximate the integral value, followed by Gaussian weighting application.
[0026] In S2, decreasing weights are applied to neighboring voxels in space, which naturally emphasizes the important structures in the image. First, a three-dimensional Gaussian function is defined. σ is the standard deviation of the Gaussian function, which controls the speed at which the weight decreases with the spatial distance. For each voxel at the coordinate (x i ,y j ,z k ), calculate the Gaussian function value at that point, multiply the physical properties of each voxel by the Gaussian function value, and get the weighted contribution of the voxel to the overall geometric moment, expressed as:
[0027]
[0028] Finally, all voxels are traversed and the weighted contribution C of each voxel is calculated. ijk Cumulatively, the numerical integration calculation of three-dimensional Gaussian geometric moments is completed.
[0029] In S3, to construct the TRS invariant, first calculate the centroid coordinates of the 3D image
[0030]
[0031] M 100 ,M 010 ,M 001 are the first-order moments along the x, y, and z axes, respectively, and M 000 is the total volume;
[0032] The coordinates of each voxel (x i ,y j ,z k ) is translated relative to the centroid coordinates so that the centroid moves to the origin of the coordinates, and the new coordinates become Get the coordinates of the center of mass;
[0033] Then, the effect of scale change is eliminated, based on the volume M 000 Or moment of inertia M 100 ,M 010 ,M 001 , choose volume as the scale factor, then the normalized moment is:
[0034]
[0035] The normalized moments obtained above are combined to form a feature vector.
[0036] In S4, based on the three-dimensional models in the database, for each model, the steps of S3 are applied to calculate the TRS invariant, a set of numerical vectors are generated, the calculated TRS invariant features are vector-encoded, and stored in the database, each model corresponds to a feature vector;
[0037] After submitting the 3D query image or the 3D data of the model, the query image is subjected to the same preprocessing operation as the model in the database, and the same algorithm and parameter settings are applied to calculate the TRS invariant feature vector of the query image.
[0038] In S4, we first select the metric calculation and adjust the parameters to control the sensitivity of the distance calculation. Then we traverse the TRS invariant feature vector of each model in the database and calculate the distance with the feature vector of the query image, which is: f qi is the feature value of the query image in the i-th dimension, f di is the characteristic value of the dth model in the database in the corresponding dimension;
[0039] According to the calculated distance value, which represents the similarity score, the models in the database are sorted. The smaller the distance, the higher the similarity. The top N most matching models are selected and displayed to the user in order of similarity.
[0040] The present invention has the following beneficial effects:
[0041] 1. In the present invention, the three-dimensional Gaussian geometric moment TRS invariant is designed with special emphasis on invariance to rotation and translation, as well as high adaptability to scale changes. This means that even if the image undergoes these common geometric transformations, the extracted features can still maintain a high degree of consistency, thereby improving the accuracy of matching and retrieval.
[0042] 2. In the present invention, the retrieval strategy based on Minkowski distance combined with the three-dimensional Gaussian geometric moment TRS invariant can significantly improve the retrieval accuracy, which means that in a complex three-dimensional model library, users can more accurately find the models they are interested in or need. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 A method step diagram of a method for extracting image features of a three-dimensional image proposed by the present invention. In the figure: S1: Establishing a theoretical framework of three-dimensional Gaussian geometric moments to achieve a clear theoretical basis and concept;
[0044] S2: Computation of Gaussian geometric moments on discretized 3D image data using numerical methods, computational implementation details;
[0045] S3: Construct TRS translation, rotation, and scale invariants, and ensure that features remain consistent under different geometric transformations through centering and normalization.
[0046] S4: Apply the TRS invariant to the content-based 3D image retrieval system to achieve fast image matching and retrieval by calculating the similarity between the query image and the image features in the database. DETAILED DESCRIPTION
[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] Embodiment 1
[0049] like Figure 1 As shown, the present invention proposes a method for extracting image features of a three-dimensional image, and the image feature extraction process is as follows:
[0050] S1: Establish the theoretical framework of three-dimensional Gaussian geometric moments to clarify the theoretical basis and concepts;
[0051] S2: Computation of Gaussian geometric moments on discretized 3D image data using numerical methods, computational implementation details;
[0052] S3: Construct TRS translation, rotation, and scale invariants, and ensure that features remain consistent under different geometric transformations through centering and normalization.
[0053] S4: Apply the TRS invariant to the content-based 3D image retrieval system to achieve fast image matching and retrieval by calculating the similarity between the query image and the image features in the database.
[0054] In S1, the three-dimensional Gaussian geometric moment is achieved by assigning a weight based on its position (x, y, z) and probability density function ρ(x, y, z) to each point of the object in the three-dimensional space, and using the Gaussian function Further weighting is performed to comprehensively consider the "weight" distribution of the object's shape in various directions:
[0055]
[0056] p, q, r are non-negative integers representing the moment orders along the x, y, and z axes, respectively. σ is the standard deviation of the Gaussian function, which controls the rate at which the weight decays with increasing spatial distance.
[0057] In S1, the concept of three-dimensional Gaussian geometric moments is based on multidimensional statistical analysis. By considering the "weight" distribution of objects in different directions, the probability density function ρ(x, y, z) is used to quantify the shape characteristics. Then, the Gaussian function is introduced. This makes the description robust to local noise, and controls how fast the weight decays with distance through σ.
[0058] In S2, based on the theoretical foundation and clear concepts in S1, the 3D image data is loaded into the computer memory, and the 3D space is divided into a series of small cubes. Each cube is called a voxel. The size of the voxel depends on the required resolution and computing resources.
[0059] Assign a density or intensity value to each voxel, derived from the original image data, or in computer graphics, the color or grayscale value of each point;
[0060] Traverse each voxel (i, j, k), where i, j, k are the indices of the voxel in the x, y, and z directions respectively;
[0061] For the current voxel position (x i ,y j ,z k ), calculate the value of the Gaussian function:
[0062]
[0063] Where σ is the standard deviation of the Gaussian function;
[0064] According to the definition of three-dimensional Gaussian geometric moment, the contribution of each voxel to the geometric moment is calculated:
[0065]
[0066] where ρ ijkis the density or intensity value of voxel (i,j,k), p,q,r are the corresponding powers, and then the contributions of all voxels are accumulated to approximate the integral value, followed by Gaussian weighting application.
[0067] In S2, decreasing weights are applied to neighboring voxels in space, which naturally emphasizes the important structures in the image. First, a three-dimensional Gaussian function is defined. σ is the standard deviation of the Gaussian function, which controls the speed at which the weight decreases with the spatial distance. For each voxel at the coordinate (x i ,y j ,z k ), calculate the Gaussian function value at that point, multiply the physical properties of each voxel by the Gaussian function value, and get the weighted contribution of the voxel to the overall geometric moment, expressed as:
[0068]
[0069] Finally, all voxels are traversed and the weighted contribution C of each voxel is calculated. ijk Cumulatively, the numerical integration calculation of three-dimensional Gaussian geometric moments is completed.
[0070] In this embodiment, in the method of quantifying the spatial distribution characteristics in shape analysis:
[0071]
[0072] Among them, the spatial coordinate x p y q z r This part shows that in three-dimensional space, the position contribution of each point is related to the power of its coordinate value. Here p, q, and r are integers corresponding to the order in the (x, y, and z) axis directions, respectively. Higher orders will emphasize the contribution of points far away from the origin, while lower orders will focus on the central area of the shape.
[0073] The probability density function ρ(x, y, z) reflects the probability or density of each point in three-dimensional space. In image processing, this can be understood as the grayscale value, color intensity or density of a pixel or voxel, reflecting the existence or "importance" of an object at that point;
[0074] Gaussian function This part is the core, and Gaussian weighting is introduced. The Gaussian function is a bell-shaped curve with its peak at the origin, which decays exponentially as the distance from the origin increases. σ is the standard deviation, which determines the width of the function. A larger σ means a wider distribution and a greater impact on distant points; a smaller σ focuses more on local areas and is more sensitive to noise. By multiplying with the Gaussian function, the contribution of each point is weakened according to its distance from the origin, which naturally gives more importance to the center of the shape and also smoothes the noise.
[0075] Embodiment 2
[0076] like Figure 1 As shown, based on the first embodiment, in S3, the TRS invariant is constructed, and the centroid coordinates of the three-dimensional image are first calculated.
[0077]
[0078] M 100 ,M 010 ,M 001 are the first-order moments along the x, y, and z axes, respectively, and M 000 is the total volume;
[0079] The coordinates of each voxel (x i ,y j ,z k ) is translated relative to the centroid coordinates so that the centroid moves to the origin of the coordinates, and the new coordinates become Get the coordinates of the center of mass;
[0080] Then, the effect of scale change is eliminated, based on the volume M 000 Or moment of inertia M 100 ,M 010 ,M 001 , choose volume as the scale factor, then the normalized moment is:
[0081]
[0082] The normalized moments obtained above are combined to form a feature vector.
[0083] In S4, based on the three-dimensional models in the database, for each model, the steps of S3 are applied to calculate the TRS invariant, a set of numerical vectors are generated, the calculated TRS invariant features are vector-encoded, and stored in the database, each model corresponds to a feature vector;
[0084] After submitting the 3D query image or the 3D data of the model, the query image is subjected to the same preprocessing operation as the model in the database, and the same algorithm and parameter settings are applied to calculate the TRS invariant feature vector of the query image.
[0085] In S4, we first select the metric calculation and adjust the parameters to control the sensitivity of the distance calculation. Then we traverse the TRS invariant feature vector of each model in the database and calculate the distance with the feature vector of the query image, which is: f qi is the feature value of the query image in the i-th dimension, f di is the characteristic value of the dth model in the database in the corresponding dimension;
[0086] According to the calculated distance value, which represents the similarity score, the models in the database are sorted. The smaller the distance, the higher the similarity. The top N most matching models are selected and displayed to the user in order of similarity.
[0087] In this embodiment, the constructed TRS invariant calculates the centroid of the three-dimensional image and moves it to the origin of the coordinate system, thereby ensuring that the feature description is independent of the absolute position of the image in space, thereby achieving translation invariance;
[0088] At the same time, by selecting a suitable scale factor volume or other quantity based on Gaussian geometric moments and performing normalization, the impact of scale changes can be eliminated, ensuring that the feature description is insensitive to changes in image size, achieving scale invariance, and by calculating and using high-order, carefully designed moment combinations, the consistency of features can be maintained at different rotation angles;
[0089] Based on centroid coordinates Get the normalized matrix Then, through mathematical combination, the normalized moments obtained above are combined to form a eigenvector, and a series of Hu moment invariants, Zernike moments or other forms of invariants are constructed. These combinations can resist various geometric transformations, such as translation, rotation and scaling;
[0090] Before the final application, the feature vectors need to be additionally standardized to ensure the comparability between different features;
[0091] Through the above steps, the final feature set can not only describe the shape information of the image, but also maintain a high degree of invariance under translation, rotation and scale changes.
[0092] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A method for extracting image features of a three-dimensional image, characterized in that: The image feature extraction process is: S1: Establish the theoretical framework of three-dimensional Gaussian geometric moments to clarify the theoretical basis and concepts; S2: Computation of Gaussian geometric moments on discretized 3D image data using numerical methods, computational implementation details; S3: Construct TRS translation, rotation, and scale invariants, and ensure that features remain consistent under different geometric transformations through centering and normalization. S4: Apply the TRS invariant to the content-based 3D image retrieval system to achieve fast image matching and retrieval by calculating the similarity between the query image and the image features in the database.
2. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S1, the three-dimensional Gaussian geometric moment is achieved by assigning a weight based on its position (x, y, z) and probability density function ρ(x, y, z) to each point of the object in the three-dimensional space, and using the Gaussian function Further weighting is performed to comprehensively consider the "weight" distribution of the object's shape in various directions: p, q, r are non-negative integers representing the moment orders along the x, y, and z axes, respectively. σ is the standard deviation of the Gaussian function, which controls the rate at which the weight decays with increasing spatial distance.
3. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S1, the concept of three-dimensional Gaussian geometric moments is based on multidimensional statistical analysis. By considering the "weight" distribution of objects in different directions, the probability density function ρ(x, y, z) is used to quantify the shape characteristics, and then the introduction of Gaussian function This makes the description robust to local noise, and controls how fast the weight decays with distance through σ.
4. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S2, based on the theoretical foundation and clear concepts in S1, the 3D image data is loaded into the computer memory, and the 3D space is divided into a series of small cubes. Each cube is called a voxel. The size of the voxel depends on the required resolution and computing resources. Assign a density or intensity value to each voxel, derived from the original image data, or in computer graphics, the color or grayscale value of each point; Traverse each voxel (i, j, k), where i, j, k are the indices of the voxel in the x, y, and z directions respectively; For the current voxel position (x i ,y j ,z k ), calculate the value of the Gaussian function: Where σ is the standard deviation of the Gaussian function; According to the definition of three-dimensional Gaussian geometric moment, the contribution of each voxel to the geometric moment is calculated: where ρ ijk is the density or intensity value of voxel (i,j,k), p,q,r are the corresponding powers, and then the contributions of all voxels are accumulated to approximate the integral value, followed by Gaussian weighting application.
5. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S2, decreasing weights are applied to neighboring voxels in space, which naturally emphasizes the important structures in the image. First, a three-dimensional Gaussian function is defined. σ is the standard deviation of the Gaussian function, which controls the speed at which the weight decreases with the spatial distance. For each voxel at the coordinate (x i ,y j ,z k ), calculate the Gaussian function value at that point, multiply the physical properties of each voxel by the Gaussian function value, and obtain the weighted contribution of the voxel to the overall geometric moment, expressed as: Finally, all voxels are traversed and the weighted contribution C of each voxel is calculated. ijk Cumulatively, the numerical integration calculation of three-dimensional Gaussian geometric moments is completed.
6. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S3, to construct the TRS invariant, first calculate the centroid coordinates of the 3D image M 100 ,M 010 ,M 001 are the first-order moments along the x, y, and z axes, respectively, and M 000 is the total volume; The coordinates of each voxel (x i ,y j ,z k ) is translated relative to the centroid coordinates so that the centroid moves to the origin of the coordinates, and the new coordinates become Get the coordinates of the center of mass; Then, the effect of scale change is eliminated, based on the volume M 000 Or moment of inertia M 100 ,M 010 ,M 001 , choose volume as the scale factor, then the normalized moment is: The normalized moments obtained above are combined to form a feature vector.
7. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S4, based on the three-dimensional models in the database, for each model, the steps of S3 are applied to calculate the TRS invariant, a set of numerical vectors are generated, the calculated TRS invariant features are vector-encoded, and stored in the database, each model corresponds to a feature vector; After submitting the 3D query image or the 3D data of the model, the query image is subjected to the same preprocessing operation as the model in the database, and the same algorithm and parameter settings are applied to calculate the TRS invariant feature vector of the query image.
8. The method for extracting image features of a three-dimensional image according to claim 1, characterized in that: In S4, we first select the metric calculation and adjust the parameters to control the sensitivity of the distance calculation. Then we traverse the TRS invariant feature vector of each model in the database and calculate the distance with the feature vector of the query image, which is: f qi is the feature value of the query image in the i-th dimension, f di is the characteristic value of the dth model in the database in the corresponding dimension; According to the calculated distance value, which represents the similarity score, the models in the database are sorted. The smaller the distance, the higher the similarity. The top N most matching models are selected and displayed to the user in order of similarity.
