Image recognition method for texture image feature analysis

Through the Gabor kernel function and neighborhood matrix statistical method, the feature matrix is ​​constructed, which solves the problem of information loss and computational complexity of feature transformation in image recognition, and achieves efficient texture feature analysis and recognition.

CN114359608BActive Publication Date: 2024-10-18SUZHOU YOUFA ELECTRONIC TECHNOLOGY SERVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111638334.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-29
Publication Date
2024-10-18
Estimated Expiration
2041-12-29

AI Technical Summary

Technical Problem

Existing feature transformation methods have problems with information loss, deformation, and high computational complexity in image recognition, and cannot effectively achieve dimensionality reduction and feature mapping of high-dimensional feature information.

Method used

The Gabor kernel function is used for 4-direction filtering to generate four-dimensional texture features to form an n×n neighborhood matrix. The number of occurrences of each combination is counted, a (n2-1)×16 feature matrix is ​​constructed, and cluster analysis is performed.

Benefits of technology

It realizes the normalization processing and dimensional consistency transformation of image features, reduces the computational cost, improves the recognition efficiency and accuracy, and has better intra-class similarity and inter-class differentiation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114359608B_ABST
    Figure CN114359608B_ABST
Patent Text Reader

Abstract

The present invention relates to an image recognition method for texture image feature analysis. The method comprises the following steps: (1) for an image with an input pixel value of M×N, a 4-directional filtering is performed using the real part of a Gabor kernel function to generate texture features of the image; (2) for each pixel point's 4-dimensional information, a direction with the largest value is taken to represent the direction of the pixel point; (3) an n×n neighborhood matrix is ​​formed, and the matrix window is allowed to drift through each pixel point in the image; (4) for any pixel point P 1 and any pixel point P in its neighborhood 2 , P 1 P 2 There are 16 combinations of directions; when the neighborhood matrix drifts through the entire image, the number of times each combination appears can be counted; (5) According to the number of times each combination appears, a (n 2 ‑1)×16 feature matrix, and cluster analysis is performed on the formed feature matrix. The present invention has high processing accuracy and low computational cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a rapid recognition and processing technology for images, in particular to an image recognition method for texture image feature analysis. Background Art

[0002] In various image detection and recognition applications, such as image detection and processing of aircraft riveting defects, recognition and processing of physiological feature images such as fingerprints, etc. When using electronic information processing technology for image clustering analysis, dimensionality reduction is often required to reduce the computational cost without affecting the feature information in the original image, that is, without affecting the image recognition accuracy. The methods of transforming high-dimensional data into low-dimensional space can be roughly divided into two types: feature selection and feature transformation. The feature selection algorithm often increases with the increase of image dimension and the number of subspaces, and the computational complexity is higher, while feature transformation does not have this problem.

[0003] Existing feature transformation methods can be divided into two categories: (1) direct compression or reduction, which usually causes information loss and deformation, thus affecting the recognition accuracy; (2) the other is linear transformation, such as standard orthogonal transformation, whitening transformation, linear discriminant analysis (LDA), principal component analysis (PCA), etc. Among them, standard orthogonal transformation and whitening transformation cannot achieve the goal of dimensionality reduction. They are both equal-dimensional transformations, and therefore cannot achieve the purpose of informationizing features of different dimensions into the same dimension; LDA is an algorithm that can achieve dimensionality reduction, but it is a supervised transformation method. During the calculation process, it uses the mean point of each class to represent the class. At the same time, the number of features that can be extracted is limited by the number of categories, which is its shortcoming; the statistic examined by PCA is the covariance matrix of all samples. Although it has the effect of dimensionality reduction, it only processes the input data set. For image processing, it is not possible to intuitively see the relationship between the transformed result and the data before the transformation. Like LDA, they cannot clearly give the mapping relationship of features from high-dimensional space to low-dimensional space. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide an image recognition method for texture image feature analysis that can improve computational efficiency and reduce computational cost while ensuring high processing accuracy, in view of the shortcomings of traditional feature transformation algorithms.

[0005] The image recognition method for texture image feature analysis of the present invention comprises the following steps:

[0006] (1) For an image with an input pixel value of M×N, the real part of the Gabor kernel function is used to perform filtering in four directions (0°, 45°, 90°, and 135°) to generate the texture features of the image, that is, each pixel has a four-dimensional feature (M×N×4);

[0007] (2) For each pixel’s four-dimensional information, the direction with the largest value is taken to represent the direction of the pixel; (3) For each pixel P1 (coordinates are (x, y)), an n×n neighborhood matrix (n is a positive integer) is formed, and this matrix window is drifted to traverse each pixel in the image;

[0008] (4) For any pixel P1 and any point P2 in its neighborhood (coordinates are (x+a, y+b), a∈[-2,2], b∈[-2,2]), each pixel may have four directions, so there are 16 combinations of P1 and P2. Since the neighborhood around any pixel contains (n 2 -1) pixels at different positions. When the n×n neighborhood matrix drifts through the entire image, the number of times each combination appears can be counted;

[0009] (5) According to the number of times each combination appears, a (n 2 -1)×16 matrix, which is the feature matrix of the original image, and cluster analysis is performed on the formed feature matrix.

[0010] Furthermore, in step (2), each pixel is labeled according to its direction, and is visualized in a manner where four labels correspond to different colors.

[0011] Furthermore, the neighborhood matrix described in step (3) is a 5×5 matrix.

[0012] The positive effects of the present invention are embodied in:

[0013] 1. The method of the present invention normalizes the texture features of the image and converts images of different sizes into feature matrices of fixed size; that is, when it is necessary to fuse and identify information of different modalities, on the one hand, the internal features of the image are combined, and on the other hand, the consistent transformation of feature dimensions is achieved;

[0014] 2. The feature matrix formed by the method of the present invention has a fixed size, which can greatly improve the efficiency of the algorithm and reduce the computational cost while achieving dimensionality reduction;

[0015] 3. After preliminary verification, the experimental results of the method of the present invention have better intra-class similarity and inter-class distinction than the existing clustering analysis algorithm.

[0016] 4. The method of the present invention is scalable. Based on the Gabor filter with different kernel functions in 4 directions and 8 directions, when the feature matrix has a weak discrimination, the feature matrix can be converted into a matrix of a specific size to improve the clustering accuracy.

[0017] 5. The method of the present invention transforms the original image analysis process of superpixel division + feature extraction into a feature matrix transformation step, which reduces the computational cost while considering the texture features of the image itself.

[0018] 6. The method of the present invention adopts a window formed by a 2*2 neighborhood around each pixel point, which realizes statistics once in the entire image and makes full use of each neighborhood relationship. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of label colors in four directions when visual processing is performed on each pixel in an embodiment of the present invention;

[0020] Figure 2 It is a visual image comparison diagram after fingerprint image processing according to an embodiment of the present invention. DETAILED DESCRIPTION

[0021] The method of the embodiment of the present invention processes the fingerprint image, and the steps are as follows:

[0022] (1) For an input image with a pixel value of 200×210, the real part of the Gabor kernel function is used to perform filtering in four directions (0°, 45°, 90°, and 135°) to generate the texture features of the image, that is, each pixel has a four-dimensional feature (200×210×4);

[0023] (2) For each pixel's four-dimensional information, the direction with the largest value is taken to represent the direction of the pixel; each pixel is labeled according to its direction, and visualized in a way that the four labels "1, 2, 3, 4" correspond to different colors (e.g. Figure 1 shown);

[0024] (3) For each pixel point P1 (coordinates are (x, y)), a 5×5 neighborhood matrix is ​​formed, and this matrix window is drifted to traverse each pixel point in the image;

[0025] (4) For any pixel P1 and any point P2 in its neighborhood (coordinates are (x+a, y+b), a∈[-2,2], b∈[-2,2]), each pixel has 4 labels, so there are 16 combinations of P1 and P2. Since the neighborhood around any pixel contains 24 pixels at different positions, when the 5×5 neighborhood matrix drifts through the entire image, the number of times each combination appears can be counted.

[0026] (5) According to the number of occurrences of each combination, a 24×16 matrix is ​​calculated.

[0027]

[0028] This is the feature matrix of the original image. Perform cluster analysis on the feature matrix to obtain Figure 2 The comparison results of the visualization images shown in the figure. Among them, P1 is three samples from the same person, and P2 is three samples from the second person. Through the comparison, it can be found that the experimental results have strong similarity within the class and strong distinction between classes.

Claims

1. An image recognition method for texture image feature analysis, characterized in that: Includes the following step, (1) For an image with an input pixel value of M×N, the real part of the Gabor kernel function is used to perform a 4-directional filter to generate the texture features of the image, that is, each pixel has a 4-dimensional feature; (2) For each pixel’s four-dimensional information, the direction with the largest value is taken to represent the direction of the pixel; (3) Form an n×n neighborhood matrix and let this matrix window drift through each pixel in the image; (4) For any pixel point P1 and any pixel point P2 in its neighborhood, each pixel point may have 4 directions, so there are 16 combinations of P1 and P2. Since the neighborhood around any pixel point contains (n 2 -1) pixels at different positions. When the n×n neighborhood matrix drifts through the entire image, the number of times each combination appears can be counted; (5) According to the number of times each combination appears, a (n 2 -1)×16 matrix, which is the feature matrix of the original image, and cluster analysis is performed on the formed feature matrix.

2. The image recognition method for texture image feature analysis according to claim 1, characterized in that: In step (2), each pixel is labeled according to four different directions, and the four labels are visualized in a way that they correspond to different colors.

3. The image recognition method for texture image feature analysis according to claim 1, characterized in that: The neighborhood matrix described in step (3) is a 5×5 matrix.

Citation Information

Patent Citations

  • Self-adapting multi-dimension veins image segmenting method based on wavelet and average value wander

    CN101251893A

  • Method for segmenting three Markov field SAR image based on Gabor characteristic

    CN102402685A