Feature extraction method, system and device based on X-ray contrast image
By preprocessing and feature extraction of X-ray contrast images, combined with multi-dimensional feature fusion, the problem of incomplete feature extraction in the existing technology is solved, and more accurate and efficient image analysis is achieved, which is suitable for multiple application fields.
Patent Information
- Application Number
- CN202410570392.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-05-09
AI Technical Summary
The existing technology is difficult to quickly and accurately extract features from X-ray contrast images, especially when considering the special physical properties and various features of the image, it lacks comprehensiveness.
By acquiring absorption contrast images, differential phase contrast images and dark field contrast images, preprocessing, image decomposition, sharpening and contrast enhancement are performed to extract edge features, texture features and shape features, combined with multi-dimensional feature fusion, to achieve better results. Comprehensive and accurate feature extraction.
It improves the accuracy and efficiency of identification and analysis of samples to be tested, and is suitable for fields such as medical imaging, industrial testing, and safety inspections. It provides more detailed image information and higher identification accuracy.
Smart Images

Figure CN118135238B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a feature extraction method, system and device based on X-ray contrast images. Background Art
[0002] Traditional X-ray imaging technology mainly relies on the difference in the absorption of X-rays by materials to form images, but this method has inherent limitations in the identification and analysis of objects, especially when it is necessary to distinguish tissues with different densities. It is difficult to accurately distinguish between different tissues and materials. At the same time, X-ray absorption contrast imaging cannot provide phase information of the sample to be tested. A new type of X-ray differential phase contrast imaging technology has emerged. It acquires images by detecting the X-ray phase changes caused by the sample to be tested. The phase changes can provide richer image information and improve the contrast and resolution of the image. Dark field imaging forms images by measuring the scattering of X-rays by the sample to be tested, which can provide more details of the sample to be tested, not only providing higher image contrast and edge clarity, but also improving the overall resolution, while enhancing the imaging capability of microstructures.
[0003] Although X-ray contrast imaging technology has many advantages, how to extract useful image features from contrast images is still challenging. Although there are many image feature extraction algorithms, most of them are designed for traditional optical or digital images and do not fully consider the special physical properties of X-ray contrast images. At the same time, the existing feature extraction methods are difficult to comprehensively consider multiple image features, and the extraction of image features is not comprehensive. Therefore, how to achieve fast and accurate extraction of X-ray contrast image features has become an issue that needs to be studied urgently. Summary of the invention
[0004] The present invention aims at the shortcomings of the prior art and provides a feature extraction method, system and device based on X-ray contrast images.
[0005] In order to solve the above technical problems, the present invention is solved by the following technical solutions:
[0006] A feature extraction method based on X-ray contrast image, comprising the following steps:
[0007] Acquire a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image, and a dark field contrast image;
[0008] Preprocessing the absorption contrast image, differential phase contrast image and dark field contrast image respectively to obtain the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction;
[0009] Decomposing the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, sharpening and contrast enhancing the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image;
[0010] The edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are extracted respectively to obtain the edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0011] Shape features are extracted based on edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, and shape features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are obtained respectively.
[0012] As an implementable method, the preprocessing includes noise reduction processing, and the noise reduction processing is expressed as follows:
[0013]
[0014]
[0015] in, represents the decay rate parameter that controls the spatial domain weight, Represents the attenuation speed parameter that controls the grayscale difference weight, represents the normalized weight sum, represents the weight function of the bilateral filter, represents the window radius of the bilateral filter, represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction. represents the horizontal axis, represents the vertical coordinate, represents the horizontal coordinate of the neighborhood position, represents the ordinate of the neighborhood position, represents the domain kernel.
[0016] As an implementation method, before the noise reduction process, a filtering process is also included, and the filtering process is expressed as follows:
[0017]
[0018] in, , , represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the mean value corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the variance corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the estimated noise variance, represents the horizontal axis, represents the vertical coordinate, , Represents the number of pixels in different dimensions of the absorption contrast image, differential phase contrast image, or dark field contrast image, represents the filtered absorption contrast image or differential phase contrast image or dark field contrast image, represents the weight, represents the estimated noise standard deviation, Indicates the standard deviation of the absorption contrast image, differential phase contrast image, or dark field contrast image.
[0019] As an implementation method, the different-level difference images at least include a high-level difference image and a low-level difference image, and the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained by combining the denoised absorption contrast image, differential phase contrast image, dark field contrast image and the different-level difference images, including the following steps:
[0020] Based on the high-level difference image, the absorption contrast image after noise reduction, the differential phase contrast image and the dark field contrast image, the corresponding sharpening adjustment coefficients are adjusted to obtain the sharpened absorption contrast image, the differential phase contrast image and the dark field contrast image;
[0021] Based on the low-level difference image, the absorption contrast image after noise reduction, the differential phase contrast image and the dark field contrast image, the corresponding contrast enhancement adjustment coefficients are adjusted to obtain the absorption contrast image after contrast enhancement, the differential phase contrast image and the dark field contrast image;
[0022] Based on the sharpened and contrast-enhanced absorption contrast image, differential phase contrast image and dark field contrast image, an enhanced absorption contrast image, a differential phase contrast image and a dark field contrast image are obtained.
[0023] As an implementable method, the absorption contrast image, differential phase contrast image and dark field contrast image corresponding to the sharpening and contrast enhancement are expressed as follows:
[0024]
[0025]
[0026] in, represents the absorption contrast image or differential phase contrast image or dark field contrast image after sharpening. It represents the absorption contrast image or differential phase contrast image or dark field contrast image after contrast enhancement. represents any one of the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction, represents a high-level difference image or a low-level difference image, represents the sharpening adjustment coefficient, Represents the contrast enhancement adjustment coefficient.
[0027] As an implementation method, the edge features of the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are extracted to obtain the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, including the following steps:
[0028] The enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are respectively converted into grayscale to obtain corresponding grayscale images, and the grayscale images are converted from the spatial domain to the frequency domain to obtain a frequency domain image;
[0029] Extract phase information based on the frequency domain image to obtain frequency domain phase information;
[0030] The frequency domain phase information is enhanced through the angle-preserving consistency model, thereby achieving the phase consistency of the frequency domain phase information;
[0031] According to the phase consistency of the frequency domain phase information, an edge threshold is set, and the pixel points in the frequency domain image are marked in combination with the phase consistency of the frequency domain phase information and the edge threshold to obtain an edge image;
[0032] Perform inverse Fourier transform on the edge image to obtain an edge space region image;
[0033] The edge features of the edge space region image are extracted by edge feature extraction algorithm, and processed to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively;
[0034] Wherein, the frequency domain image is expressed as follows:
[0035]
[0036] The frequency domain phase information is expressed as follows:
[0037]
[0038] The phase consistency of the frequency domain phase information is expressed as follows:
[0039]
[0040] The edge space region image is represented as follows:
[0041]
[0042] in, represents a grayscale image, represents the frequency domain image, , Represents the number of pixels in different dimensions of the grayscale image, represents the frequency domain phase information, represents the tangent calculation, represents the calculation result of the imaginary part of the frequency domain image, represents the real part calculation result of the frequency domain image, Represents pixel The phase consistency, Represents the frequency domain image at point The amplitude, Represents the frequency domain image at point The phase of represents the imaginary unit, represents the edge space region image, Represents the pixel position information of the frequency domain image, Represents the spatial pixel location information.
[0043] As an implementation method, the texture features of the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are extracted to obtain the texture features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, including the following steps:
[0044] Based on the grayscale images corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image, the corresponding grayscale images are traversed based on the traversal window to obtain the grayscale co-occurrence matrix of the pixel points in the traversal window;
[0045] Based on the gray level co-occurrence matrix, the texture features corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained, where the texture features include contrast features, energy features, entropy features and correlation features, which are expressed as follows:
[0046]
[0047]
[0048]
[0049]
[0050] in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, Represents the gray level in the grayscale image corresponding to the enhanced absorption contrast image, differential phase contrast image, or dark field contrast image. represents the gray level probability in the gray level co-occurrence matrix, Indicates grayscale Mean, Indicates grayscale Mean, Indicates grayscale Standard deviation, Indicates grayscale Standard deviation.
[0051] As an implementable method, obtaining the shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image comprises the following steps:
[0052] Based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, shape description is performed to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, wherein the shape features include area features, perimeter features, moment features, convex hull features and shape factor features;
[0053] The edge shape is obtained by edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, an edge shape bounding box is set for the edge property, and random points are generated in the edge shape bounding box;
[0054] By analyzing and judging the positions of random points, the number of internal points of the edge shape is obtained, and the area feature, perimeter feature and shape factor feature are obtained based on the number of internal points of the edge shape, wherein the shape factor feature includes roundness and compactness;
[0055] The edge shape is segmented to obtain the edge mesh, and the origin moment and center moment of the edge mesh are calculated to obtain the moment feature;
[0056] Obtaining the corresponding points of the minimum ordinate values of the coordinate points in the edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, and performing polar angle sorting based on the corresponding points of the minimum ordinate values to obtain a sorted edge point set;
[0057] Analyze and determine the positional relationship between the points in the sorted edge point set, obtain the points that meet the convex hull features, and obtain the convex hull features;
[0058] Among them, the area characteristics and perimeter characteristics are expressed as follows:
[0059]
[0060]
[0061] The roundness and compactness are expressed as follows:
[0062]
[0063]
[0064] The origin moment and the center moment are expressed as follows:
[0065]
[0066]
[0067] in, represents the origin moment, represents the central moment, represents the order of the moment, Represents the grayscale contrast image at point The gray value of the position, represents the barycentric coordinates, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box, Indicates roundness, Indicates compactness, represents the area of the minimum enclosing rectangle, Indicates the pixel position coordinates.
[0068] As an implementable method, obtaining a contrast image of the sample to be tested includes the following steps:
[0069] Obtain the background moiré intensity and the moiré intensity of the sample to be tested, expressed as follows:
[0070]
[0071]
[0072] Based on the background moiré fringe intensity and the moiré fringe intensity of the sample to be tested, the contrast image of the sample to be tested is obtained, including the absorption contrast image, the differential phase contrast image and the dark field contrast image, which are expressed as follows:
[0073]
[0074]
[0075]
[0076] in, represents the background moiré intensity, and Represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the background moiré fringe. represents the horizontal axis, represents the vertical coordinate, Indicates the number of steps. represents the moiré fringe intensity of the sample to be tested, and It represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the moiré fringe of the sample to be tested. represents the differential phase distribution without the sample to be tested. represents the differential phase distribution of the sample to be tested, represents the absorption contrast image, represents the dark field contrast image, represents the differential phase contrast image, represents the phase distribution of the moiré fringe image where the sample to be tested is placed, represents the phase distribution of the moiré fringe image without the sample to be tested. represents the period of the analysis grating, represents the distance between the phase grating and the analyzer grating, represents the angle calculation, Represents the modulo operation.
[0077] A feature extraction system based on X-ray contrast images, comprising an image acquisition module, an image noise reduction module, an image processing module, an edge texture feature extraction module and a shape feature extraction module;
[0078] The image acquisition module acquires a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image and a dark field contrast image;
[0079] The image denoising module preprocesses the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively to obtain the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image;
[0080] The image processing module performs image decomposition on the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, and performs sharpening and contrast enhancement on the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image;
[0081] The edge texture feature extraction module extracts edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image, respectively, to obtain edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0082] The shape feature extraction module extracts shape features based on edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, and obtains shape features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively.
[0083] As an implementable embodiment, the edge texture feature extraction module is configured as follows:
[0084] The enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are respectively converted into grayscale to obtain corresponding grayscale images, and the grayscale images are converted from the spatial domain to the frequency domain to obtain a frequency domain image;
[0085] Extract phase information based on the frequency domain image to obtain frequency domain phase information;
[0086] The frequency domain phase information is enhanced through the angle-preserving consistency model, thereby achieving the phase consistency of the frequency domain phase information;
[0087] According to the phase consistency of the frequency domain phase information, an edge threshold is set, and the pixel points in the frequency domain image are marked in combination with the phase consistency of the frequency domain phase information and the edge threshold to obtain an edge image;
[0088] Perform inverse Fourier transform on the edge image to obtain an edge space region image;
[0089] The edge features of the edge space region image are extracted by edge feature extraction algorithm, and processed to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively;
[0090] Wherein, the frequency domain image is expressed as follows:
[0091]
[0092] The frequency domain phase information is expressed as follows:
[0093]
[0094] The phase consistency of the frequency domain phase information is expressed as follows:
[0095]
[0096] The edge space region image is represented as follows:
[0097]
[0098] in, represents a grayscale image, represents the frequency domain image, , Represents the number of pixels in different dimensions of the grayscale image, represents the frequency domain phase information, represents the tangent calculation, represents the calculation result of the imaginary part of the frequency domain image, represents the real part calculation result of the frequency domain image, Represents pixel The phase consistency, Represents the frequency domain image at point The amplitude, Represents the frequency domain image at point The phase of represents the imaginary unit, represents the edge space region image, Represents the pixel position information of the frequency domain image, Represents the spatial pixel location information;
[0099] Based on the grayscale images corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image, the corresponding grayscale images are traversed based on the traversal window to obtain the grayscale co-occurrence matrix of the pixel points in the traversal window;
[0100] Based on the gray level co-occurrence matrix, the texture features corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained, where the texture features include contrast features, energy features, entropy features and correlation features, which are expressed as follows:
[0101]
[0102]
[0103]
[0104]
[0105] in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, Represents the gray level in the grayscale image corresponding to the enhanced absorption contrast image, differential phase contrast image, or dark field contrast image. represents the gray level probability in the gray level co-occurrence matrix, Indicates grayscale Mean, Indicates grayscale Mean, Indicates grayscale Standard deviation, Indicates grayscale Standard deviation.
[0106] As an implementable embodiment, the shape feature extraction module is configured as follows:
[0107] Based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, shape description is performed to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, wherein the shape features include area features, perimeter features, moment features, convex hull features and shape factor features;
[0108] The edge shape is obtained by edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, an edge shape bounding box is set for the edge property, and random points are generated in the edge shape bounding box;
[0109] By analyzing and judging the positions of random points, the number of internal points of the edge shape is obtained, and the area feature, perimeter feature and shape factor feature are obtained based on the number of internal points of the edge shape, wherein the shape factor feature includes roundness and compactness;
[0110] The edge shape is segmented to obtain the edge mesh, and the origin moment and center moment of the edge mesh are calculated to obtain the moment feature;
[0111] Obtaining the corresponding points of the minimum ordinate values of the coordinate points in the edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, and performing polar angle sorting based on the corresponding points of the minimum ordinate values to obtain a sorted edge point set;
[0112] Analyze and determine the positional relationship between the points in the sorted edge point set, obtain the points that meet the convex hull features, and obtain the convex hull features;
[0113] Among them, the area characteristics and perimeter characteristics are expressed as follows:
[0114]
[0115]
[0116] The roundness and compactness are expressed as follows:
[0117]
[0118]
[0119] The origin moment and the center moment are expressed as follows:
[0120]
[0121]
[0122] in, represents the origin moment, represents the central moment, represents the order of the moment, Represents the grayscale contrast image at point The gray value of the position, represents the barycentric coordinates, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box, Indicates roundness, Indicates compactness, represents the area of the minimum enclosing rectangle, Indicates the pixel position coordinates.
[0123] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following method is implemented:
[0124] Acquire a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image, and a dark field contrast image;
[0125] Preprocessing the absorption contrast image, differential phase contrast image and dark field contrast image respectively to obtain the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction;
[0126] Decomposing the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, sharpening and contrast enhancing the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image;
[0127] The edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are extracted respectively to obtain the edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0128] Shape features are extracted based on edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, and shape features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are obtained respectively.
[0129] A feature extraction device based on X-ray contrast images, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the following method when executing the computer program:
[0130] Acquire a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image, and a dark field contrast image;
[0131] Preprocessing the absorption contrast image, differential phase contrast image and dark field contrast image respectively to obtain the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction;
[0132] Decomposing the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, sharpening and contrast enhancing the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image;
[0133] The edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are extracted respectively to obtain the edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0134] Shape features are extracted based on edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, and shape features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are obtained respectively.
[0135] The present invention has significant technical effects due to the adoption of the above technical solution:
[0136] The method of the present invention realizes image preprocessing, edge feature extraction, texture feature extraction and shape feature extraction. By extracting image features in multiple dimensions, the essential attributes of the object to be tested can be described more comprehensively and accurately, and the problems of existing feature extraction algorithms designed for traditional optical or digital images can be solved. By fusing the features, the purpose of accurate analysis and identification of the sample to be tested can be achieved. The method has a wide range of applications and provides great potential for improving the accuracy and efficiency of identification and analysis of the sample to be tested. BRIEF DESCRIPTION OF THE DRAWINGS
[0137] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0138] Figure 1 It is a schematic flow diagram of the method of the present invention;
[0139] Figure 2 It is an overall schematic diagram of the system of the present invention;
[0140] Figure 3 is a schematic diagram of a contrast image of the present invention;
[0141] Figure 4 is a schematic diagram of a contrast image after filtering according to the present invention;
[0142] Figure 5 Schematic diagram of different level difference images (taking absorption contrast image as an example) of the present invention;
[0143] Figure 6 It is a schematic diagram of the absorption contrast image after image denoising, the absorption contrast image after sharpening and the high-level difference image in the present invention;
[0144] Figure 7 It is a schematic diagram of the absorption contrast image after image denoising, the absorption contrast image after enhancement and the low-level difference image in the present invention;
[0145] Figure 8 The present invention is a schematic diagram of obtaining image boundaries through phase consistency. DETAILED DESCRIPTION
[0146] The present invention is further described in detail below in conjunction with embodiments. The following embodiments are for explanation of the present invention but the present invention is not limited to the following embodiments.
[0147] Embodiment 1:
[0148] A feature extraction method based on X-ray contrast image, such as Figure 1 As shown, the following steps are included:
[0149] S100, obtaining a contrast image of a sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image and a dark field contrast image;
[0150] S200, preprocessing the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively to obtain the absorption contrast image, the differential phase contrast image and the dark field contrast image after noise reduction;
[0151] S300, performing image decomposition on the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image to obtain different levels of difference images, performing sharpening processing and contrast enhancement on the denoised absorption contrast image, the differential phase contrast image, the dark field contrast image and the different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image;
[0152] S400, extracting edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image respectively, to obtain edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0153] S500, performing shape feature extraction based on edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, and obtaining shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively.
[0154] The method of the present invention solves the problem that the existing feature extraction methods do not fully consider the special physical characteristics of X-ray contrast images. At the same time, feature extraction is performed on the absorption contrast image, differential phase contrast image and dark field contrast image respectively, and the obtained features are fused, thereby improving the accuracy and efficiency of identification and analysis of samples to be tested. At the same time, the method of the present invention has the advantages of low cost, wide application range and high accuracy.
[0155] Traditional X-ray imaging technology has limitations in object recognition and analysis methods. For example, the image contrast between cancer and its surrounding normal tissue obtained by absorption contrast imaging alone is often low, making it difficult to accurately identify different tissues and substances. In addition, X-ray absorption contrast imaging cannot provide information about the phase of the object, limiting the ability to resolve microstructures and details. In order to overcome the limitations of imaging technology, X-ray differential phase contrast imaging technology has emerged. This imaging technology acquires images by detecting X-ray phase changes caused by objects. X-ray phase changes are related to the tissue structure and density changes of the object, which can provide richer image information and significantly improve the contrast and resolution of the image. Dark field imaging is also an important imaging mode with unique background development and advantages. Dark field imaging is not based on absorption, but forms images by measuring the scattering of X-rays by the sample to be tested. Dark field imaging can provide more details of the sample to be tested, and is especially suitable for imaging of tiny structures and low-contrast objects.
[0156] In the field of X-ray absorption imaging, traditional image feature extraction techniques have been applied to a certain extent, including grayscale-based histogram analysis. In X-ray absorption contrast images, different tissues and substances have different absorption capabilities for X-rays, resulting in uneven distribution of grayscale in the imaging results. By analyzing the image grayscale histogram, the distribution of various grayscale levels in the image can be extracted, and then the absorption characteristics of the object to be measured can be obtained; based on the frequency domain analysis of the filter, noise and interference will inevitably be introduced into the X-ray absorption contrast image, and these factors may interfere with the accurate recognition and analysis of the object's features. By applying frequency domain filtering technology, such as high-pass or low-pass filters, the noise and interference elements in the image can be effectively removed, so as to clearly extract the key features of the object to be measured; based on shape features to extract object shape information in X-ray absorption images, shape features can describe the shape characteristics of the object by calculating the geometric properties of the object such as the contour, area, perimeter and convex hull. These shape features are crucial for identifying and analyzing the structural characteristics of the object.
[0157] The application scope of the present invention is relatively wide. It can not only play an important role in multiple fields such as medical image analysis, industrial detection and security inspection, but also is particularly suitable for rapid and accurate identification and analysis of various objects. In the field of medical image analysis, the present invention can help the feature extraction and identification of X-ray medical images, such as tumor detection, fracture diagnosis and vascular structure analysis, etc., by accurately extracting the key features in the X-ray differential phase contrast image, and combining advanced machine learning methods for classification and identification, which greatly improves the detection and diagnosis accuracy of diseases and abnormal conditions; in the field of industrial detection, the present invention also shows strong application potential, and can be applied to material defect detection and product quality control, etc., by analyzing the data features in the X-ray differential phase contrast image, quickly and accurately discover the adverse conditions of material and product defects, thereby improving the quality monitoring efficiency of the production process; in the field of security inspection, the present invention can realize a powerful tool for the inspection of luggage, parcels and human bodies, etc., by accurately extracting the feature information in the X-ray contrast image, it can quickly and accurately identify suspicious objects, dangerous goods and hidden objects, and significantly improve the efficiency and accuracy of security inspection. At the same time, the method of the present invention can also be extended to other fields that require rapid and accurate identification and analysis of objects, such as geological exploration and cultural relics protection, so as to obtain more detailed information on the samples to be tested and solve the problem of analysis and identification in related fields.
[0158] In step S100, a contrast image of the sample to be tested is obtained, wherein the contrast image includes an absorption contrast image, a differential phase contrast image and a dark field contrast image. Figure 3 As shown, the following steps are included:
[0159] S110: Obtain a background moiré fringe image and a moiré fringe image of the sample to be tested respectively by X-ray imaging technology, wherein the background moiré fringe intensity is expressed as follows:
[0160]
[0161] The moiré fringe intensity of the sample to be tested is expressed as follows:
[0162]
[0163] S120: Based on the background moiré fringe intensity and the moiré fringe intensity of the sample to be tested, a contrast image of the sample to be tested is obtained, including an absorption contrast image, a differential phase contrast image, and a dark field contrast image, which are expressed as follows:
[0164]
[0165]
[0166]
[0167] in, represents the background moiré intensity, and Represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the background moiré fringe. represents the horizontal axis, represents the vertical coordinate, Indicates the number of steps. represents the moiré fringe intensity of the sample to be tested, and It represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the moiré fringe of the sample to be tested. represents the differential phase distribution without the sample to be tested. represents the differential phase distribution of the sample to be tested, represents the absorption contrast image, represents the dark field contrast image, represents the differential phase contrast image, represents the phase distribution of the moiré fringe image where the sample to be tested is placed, represents the phase distribution of the moiré fringe image without the sample to be tested. represents the period of the analysis grating, represents the distance between the phase grating and the analyzer grating, represents the angle calculation, Represents the modulo operation.
[0168] In step S200, the absorption contrast image, the differential phase contrast image and the dark field contrast image are preprocessed respectively to obtain the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image, including the following steps:
[0169] S210: Correct the spatial geometric position of the contrast image of the sample to be tested, so that the contrast image of the sample to be tested is more accurate and consistent in space. The gray value of each pixel in the absorption contrast image, the differential phase contrast image and the dark field contrast image is obtained from each pixel value in the background moiré fringe image and the moiré fringe image of the sample to be tested through operation. Under the pixel-level operation relationship, the spatial relationship between the three contrast images is one-to-one corresponding, thereby realizing the automatic spatial registration work before image feature extraction, reducing the complexity of the registration process and the possible errors introduced. Because the three contrast images are obtained from a set of original data and are almost exactly the same in spatial distribution, the possible error influence is avoided in the acquisition process of the absorption contrast image, the differential phase contrast image and the dark field contrast image. Therefore, there is no need to consider the misalignment or offset between the contrast images, making the registration process simpler and more reliable, and improving the accuracy and reliability of subsequent analysis and feature extraction.
[0170] S220: In this embodiment, in order to obtain a better noise reduction effect, the absorption contrast image, the differential phase contrast image and the dark field contrast image are firstly subjected to adaptive filtering to obtain the filtered absorption contrast image, the differential phase contrast image and the dark field contrast image, such as Figure 4 As shown, it means as follows:
[0171]
[0172]
[0173]
[0174] in, represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the mean value corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the variance corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the estimated noise variance, represents the horizontal axis, represents the vertical coordinate, , Represents the number of pixels in different dimensions of the absorption contrast image, differential phase contrast image, or dark field contrast image, Represents the filtered absorption contrast image, differential phase contrast image and dark field contrast image.
[0175] S230: using an adaptive bilateral filter to perform image denoising on the filtered absorption contrast image, the differential phase contrast image, and the dark field contrast image, wherein the adaptive bilateral filter is an image denoising method that dynamically adjusts filter parameters according to neighborhood statistical information of pixels, and can automatically adjust the image denoising degree according to local features of the image, thereby achieving more image details while removing noise. The image denoising is expressed as follows:
[0176]
[0177]
[0178] in, represents the decay rate parameter that controls the spatial domain weight, Represents the attenuation speed parameter that controls the grayscale difference weight, represents the normalized weight sum, represents the weight function of the bilateral filter, represents the window radius of the bilateral filter, represents the absorption contrast image, differential phase contrast image and dark field contrast image after filtering, Represents the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction;
[0179] By adjusting the window radius of the bilateral filter and the weight function of the bilateral filter, the denoising degree of the absorption contrast image, differential phase contrast image and dark field contrast image after denoising can be adaptively adjusted according to the local characteristics of the image.
[0180] In step S300, the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image are subjected to image decomposition to obtain different level difference images, and the denoised absorption contrast image, the differential phase contrast image, the dark field contrast image and the different level difference images are subjected to sharpening processing and contrast enhancement to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image, including the following steps:
[0181] After filtering and denoising the absorption contrast image, differential phase contrast image and dark field contrast image, the denoised absorption processed image, differential phase contrast image and dark field contrast image are obtained. The image quality has been greatly improved. While suppressing the noise, the details of the original image are also retained, but at the same time, it brings effects such as edge blur. Further consideration is given to using the multi-scale image enhancement method of the image pyramid to sharpen and enhance the denoised absorption contrast image, differential phase contrast image and dark field contrast image, so that the image feature information is more prominent, which is conducive to the subsequent image feature extraction operation. The Laplacian image pyramid is an image processing technology used for image sharpening and contrast enhancement. Based on the concept of the image pyramid, a series of images of different scales are obtained by performing multiple downsampling and upsampling operations on the image. First, the noise of the denoised absorption contrast image, differential phase contrast image and dark field contrast image is processed by Gaussian filter, and then down-sampled to obtain a smaller image. Next, the down-sampled image is up-sampled using bilinear interpolation to obtain a larger image. In the Laplacian image pyramid, each layer of the image can be obtained by subtracting the up-sampled result of the previous layer from the previous layer of the image, thus obtaining a series of difference images, including high-level difference images and low-level difference images, such as Figure 5 As shown, the high-frequency information of the original image is included. These difference images are added to the absorption contrast image after noise reduction, the differential phase contrast image and the dark field contrast image to achieve the sharpening and enhancement effects of the image, which is expressed as follows:
[0182]
[0183]
[0184] in, represents the absorption contrast image or differential phase contrast image or dark field contrast image after sharpening, such as Figure 6 As shown, represents the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction. represents one of a high-level difference image and a low-level difference image, and represents the adjustment parameter, It represents the absorption contrast image or differential phase contrast image or dark field contrast image after contrast enhancement, such as Figure 7 As shown;
[0185] By adjusting and The value of can achieve different degrees of image sharpening and contrast enhancement effects. The sharpened absorption contrast image, differential phase contrast image and dark field contrast image are combined with the enhanced absorption contrast image, differential phase contrast image and dark field contrast image to obtain the enhanced absorption contrast image, differential phase contrast image and dark field contrast image.
[0186] In step S400, edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are extracted respectively to obtain edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, including the following steps:
[0187] In this embodiment, the edge information corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image is obtained by using the phase consistency model of the conformal transformation, and then the edge information corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image is extracted by the Canny operator to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image. The conformal phase consistency model extracts the edge features of the image by maintaining the consistency of the edge direction, connecting adjacent edge pixels, and maintaining the consistency of the edge angle, thereby obtaining a more accurate and continuous edge segment, thereby better representing the edge features in the contrast image.
[0188] S410: The angle-conformal phase consistency model is a method for extracting image edge features by maintaining the angle consistency of the edge at different scales. The angle-conformal nature of the edge features corresponding to the enhanced absorption contrast image, differential phase contrast image, and dark field contrast image is reflected in the following aspects:
[0189] Edge direction consistency: The conformal phase consistency model detects edges in the image at different scales and calculates the direction of each edge pixel. When extracting edge features, the model keeps the edge direction consistent, that is, the edge directions at adjacent scales should be similar; Edge connectivity: The conformal phase consistency model connects adjacent edge pixels according to the edge direction information to form continuous edge segments, which can ensure that the extracted contrast information edge features are continuous in space and can better represent the boundaries of objects in the image; Angle consistency: The conformal phase consistency model judges the edge angle consistency by calculating the difference between edge directions at different scales. If the difference in edge directions at adjacent scales is small, it is considered that the angles of the edge at different scales are consistent.
[0190] The edge features corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are obtained by using the conformal phase consistency model, such as Figure 8 As shown, the following steps are included:
[0191] Step 1: grayscale process the input enhanced absorption contrast image, differential phase contrast image and dark field contrast image to obtain the corresponding grayscale image;
[0192] Step 2: Perform Fourier transform on the corresponding grayscale image. The corresponding grayscale image is expressed as a complex form of frequency and phase. It is converted from the spatial domain to the frequency domain to obtain the corresponding frequency domain image, which is expressed as follows:
[0193]
[0194] represents the corresponding grayscale image, represents the corresponding frequency domain image, , Indicates the number of pixels of different dimensions of the corresponding grayscale image;
[0195] Step 3: The phase information represents the position and direction of the edge in the corresponding grayscale image. The phase information is extracted based on the corresponding frequency domain image to obtain the frequency domain phase information image, which is expressed as follows:
[0196]
[0197] represents the frequency domain phase information image of the corresponding frequency domain image, represents the tangent calculation, represents the calculation result of the imaginary part of the corresponding frequency domain image, Represents the real part calculation result of the corresponding frequency domain image;
[0198] Step 4: Enhance the phase information through the conformal consistency model. The local phase of the phase information can be adjusted to maintain the phase consistency. In this embodiment, this is achieved by calculating the local phase difference of each pixel point respectively. The specific calculation method is as follows:
[0199] Phase difference = phase - average phase in the neighborhood
[0200] Conformal phase = phase - phase difference
[0201] The average phase value in the neighborhood is the average phase value in the neighborhood around the pixel point, and the phase consistency is achieved through phase adjustment;
[0202] Step 5: After the conformal transformation operation, the phase consistency is improved. The phase consistency of the adjusted pixels is expressed as follows:
[0203]
[0204] Represents pixel The phase consistency, The phase information result is at point The amplitude, The phase information result is at point The phase of
[0205] Step 6: According to phase consistency, determine whether each pixel is an edge point. If the phase consistency of a pixel is high, then this pixel may be an edge. Through the threshold judgment method, the pixel with high phase consistency is marked as an edge point to obtain the corresponding edge image;
[0206] Step 7: Perform inverse Fourier transform on the corresponding edge images to obtain the corresponding edge space area images, which are expressed as follows:
[0207]
[0208] represents the imaginary unit, Represents the edge space region image;
[0209] Step 8: In this embodiment, the Canny algorithm or the Sobel algorithm is used to extract edge features from the spatial edge image, and post-process it to obtain edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image.
[0210] S420: In this embodiment, the texture features corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are extracted by using the gray level co-occurrence matrix. The gray level co-occurrence matrix is a statistical method for describing the texture features of an image, and includes the following steps:
[0211] Step 1: Perform grayscale processing based on the enhanced absorption contrast image, differential phase contrast image and dark field contrast image to obtain the corresponding grayscale image;
[0212] Step 2: Select the traversal window to traverse the corresponding grayscale image, and traverse the traversal window to each position of the corresponding grayscale image;
[0213] Step 3: For each traversal window position, calculate the gray level co-occurrence matrix of the pixel pairs in the window. The gray level co-occurrence matrix is a two-dimensional matrix, in which each element represents the gray level difference between two pixels. Assume that the image matrix in the traversal window is , a total of grayscale levels, the traversal window size is , initialize a size of Zero matrix, traversing each pixel position in the window , get the pixel position Gray value , for pixel location The neighboring pixel positions ,in, and The range is ,exist At the position, get its gray value , in the gray-level co-occurrence matrix The corresponding elements are added with 1, and finally the gray-level co-occurrence matrix is normalized as needed;
[0214] Step 4: According to the gray level co-occurrence matrix, the texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are calculated, including contrast features, which are used to measure the contrast difference between gray levels; energy features, which are used to measure the texture clarity of the image; entropy features, which are used to measure the texture complexity of the image; correlation features, which are used to measure the linear correlation between gray levels, are expressed as follows:
[0215]
[0216]
[0217]
[0218]
[0219] in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, represents the gray level in the grayscale contrast image, represents the gray level probability in the gray level co-occurrence matrix, represents the gray level mean, represents the gray level standard deviation;
[0220] Step 5: Based on the texture features calculated at each traversal window position, the texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are obtained.
[0221] In step S500, shape feature extraction is performed based on edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, respectively, including the following steps:
[0222] S510: In this embodiment, the shape analysis method is used to extract linear features based on the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, and obtain the shape features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image. The shape analysis method is a method for describing and analyzing the shape features of an image or an object. The overall features of the shape of the sample to be tested in the image are described by calculating and analyzing the statistical features of the shape, including area features and perimeter features. The area and perimeter are calculated to describe the size and shape of the shape; moment features, calculate the moment of the shape, including the origin moment and the center moment, to describe the position, size and direction of the shape; convex hull, calculate the convex hull of the shape, that is, the minimum convex polygon surrounding the shape, to describe the convexity of the shape; shape factor, describes the characteristics of the shape, and is independent of the size of the shape, and is used to describe the morphological features, including the following steps:
[0223] Step 1: Since the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image are generally irregular polygons, the Monte Carlo method of the statistical description algorithm in the morphological feature is used to obtain the area feature and perimeter feature. The specific process is as follows:
[0224] respectively defining irregular polygonal bounding boxes surrounding edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image;
[0225] Generate random points within the bounding box of the irregular polygon, where the more random points there are, the more accurate the calculation result will be;
[0226] For each random point, determine whether the point is within the bounding box of the irregular polygon. In this embodiment, the determination method uses the ray method to make the determination, that is, a ray is emitted from the point in any direction, and the number of intersections between the ray and the shape boundary is counted. If the number of intersections is an odd number, the point is inside the shape of the irregular polygon, otherwise, the point is outside the shape of the irregular polygon;
[0227] Get the number of points inside the irregular polygon, and get the area and perimeter features based on the number of points, as shown below:
[0228]
[0229]
[0230] in, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box;
[0231] Step 2: Moments represent the quantification of geometric features of shapes, and are used to calculate the area, centroid, and moment of inertia of the shape. For irregular polygonal shapes, in this embodiment, the calculation of moments includes the following steps:
[0232] Divide irregular polygonal shapes into small pixels or grid cells;
[0233] For each pixel or grid cell, calculate its quality, where the quality is the gray value of the pixel or the area of the grid cell;
[0234] At the same time, for each pixel or grid unit, the moment of the location is calculated, which is obtained by multiplying the coordinates of the pixel by the mass in this embodiment;
[0235] For the shape of the entire irregular polygon, the moments of all pixels or grid cells are added together to obtain the total moment of the irregular polygon;
[0236] Among them, the origin moment is used to describe the grayscale distribution and shape of the contrast image, and the center moment is used to describe the shape and position of the contrast image, which is expressed as follows:
[0237]
[0238]
[0239] in, represents the origin moment, represents the central moment, represents the order of the moment, Indicates that the corresponding grayscale image is at point The gray value of the position, Represents the barycentric coordinates.
[0240] Step 3: The convex hull refers to the smallest convex polygon that surrounds a set of points. The commonly used algorithm for calculating the convex hull is the Graham scanning algorithm. Based on the idea of polar angle sorting, by selecting a suitable starting point, find the next point on the straight line with the current point, and construct the convex hull in sequence. The specific steps are as follows:
[0241] Obtain the point with the smallest ordinate in the edge features corresponding to the absorption contrast image, differential phase contrast image, and dark field contrast image , if there are multiple points with the smallest ordinate, then the point with the smallest abscissa is selected as ;
[0242] based on According to the polar angle values of the points, the polar angle values of all feature points in the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image are sorted respectively to obtain a sorted edge point set;
[0243] Push the sorted edge point set into the stack in sequence, and determine whether the points form a left turn during the stacking process. If so, push them into the stack, otherwise pop the top element of the stack until a left turn is formed;
[0244] The point set in the obtained stack is the convex hull point set, and the obtained convex hull point set is the convex hull feature corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image.
[0245] Step 4: The shape factor is an indicator used to describe the characteristics of an irregular polygon, and is used to measure the complexity and compactness of the shape. In this embodiment, roundness and compactness are used for calculation. Roundness is used to measure the degree to which an irregular shape is close to a circle. The calculation formula is as follows:
[0246]
[0247] in, Represents the area of an irregular shape, Represents the perimeter of an irregular shape, Indicates roundness;
[0248] Compactness is used to measure the compactness of irregular shapes. The calculation formula is as follows:
[0249]
[0250] in, Indicates compactness, Represents the area of an irregular shape, Represents the area of the smallest enclosing rectangle of an irregular shape.
[0251] Furthermore, the present embodiment provides a method for feature fusion, firstly, based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, the sample to be tested is extracted to obtain the contour information of the sample to be tested, and then based on the contour information of the sample to be tested, the edge features, texture features and shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image are combined to perform feature fusion to obtain the contrast image fusion features, and then based on the contrast image fusion features, the sample to be tested is classified and identified. In the present embodiment, a machine learning algorithm is used for feature fusion, such as a support vector machine or a neural network. Based on the fusion features, the present embodiment uses a GAN network based on the Pytorch architecture to classify and identify the sample to be tested.
[0252] Embodiment 2:
[0253] A feature extraction system based on X-ray contrast images, such as Figure 2 As shown, it includes an image acquisition module 100, an image noise reduction module 200, an image processing module 300, an edge texture feature extraction module 400 and a shape feature extraction module 500;
[0254] The image acquisition module 100 acquires a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image and a dark field contrast image;
[0255] The image noise reduction module 200 pre-processes the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively to obtain the absorption contrast image, the differential phase contrast image and the dark field contrast image after noise reduction;
[0256] The image processing module 300 performs image decomposition on the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image to obtain different levels of difference images, and performs sharpening and contrast enhancement on the denoised absorption contrast image, the differential phase contrast image, the dark field contrast image and the different levels of difference images to obtain enhanced absorption contrast images, differential phase contrast images and dark field contrast images;
[0257] The edge texture feature extraction module 400 extracts edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image, respectively, to obtain edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image;
[0258] The shape feature extraction module 500 extracts shape features based on edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, and obtains shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively.
[0259] In one embodiment, the edge texture feature extraction module 400 is configured as follows:
[0260] The enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are respectively converted into grayscale to obtain corresponding grayscale images, and the grayscale images are converted from the spatial domain to the frequency domain to obtain a frequency domain image;
[0261] Extract phase information based on the frequency domain image to obtain frequency domain phase information;
[0262] The frequency domain phase information is enhanced through the angle-preserving consistency model, thereby achieving the phase consistency of the frequency domain phase information;
[0263] According to the phase consistency of the frequency domain phase information, an edge threshold is set, and the pixel points in the frequency domain image are marked in combination with the phase consistency of the frequency domain phase information and the edge threshold to obtain an edge image;
[0264] Perform inverse Fourier transform on the edge image to obtain an edge space region image;
[0265] The edge features of the edge space region image are extracted by edge feature extraction algorithm, and processed to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively;
[0266] Wherein, the frequency domain image is expressed as follows:
[0267]
[0268] The frequency domain phase information is expressed as follows:
[0269]
[0270] The phase consistency of the frequency domain phase information is expressed as follows:
[0271]
[0272] The edge space region image is represented as follows:
[0273]
[0274] in, represents a grayscale image, represents the frequency domain image, , Represents the number of pixels in different dimensions of the grayscale image, represents the frequency domain phase information, represents the tangent calculation, represents the calculation result of the imaginary part of the frequency domain image, represents the real part calculation result of the frequency domain image, Represents pixel The phase consistency, Represents the frequency domain image at point The amplitude, Represents the frequency domain image at point The phase of represents the imaginary unit, represents the edge space region image, Represents the pixel position information of the frequency domain image, Represents the spatial pixel location information;
[0275] Based on the grayscale images corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image, the corresponding grayscale images are traversed based on the traversal window to obtain the grayscale co-occurrence matrix of the pixel points in the traversal window;
[0276] Based on the gray level co-occurrence matrix, the texture features corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained, where the texture features include contrast features, energy features, entropy features and correlation features, which are expressed as follows:
[0277]
[0278]
[0279]
[0280]
[0281] in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, Represents the gray level in the grayscale image corresponding to the enhanced absorption contrast image, differential phase contrast image, or dark field contrast image. represents the gray level probability in the gray level co-occurrence matrix, Indicates grayscale Mean, Indicates grayscale Mean, Indicates grayscale Standard deviation, Indicates grayscale Standard deviation.
[0282] In one embodiment, the shape feature extraction module 500 is configured as follows:
[0283] Based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, shape description is performed to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, wherein the shape features include area features, perimeter features, moment features, convex hull features and shape factor features;
[0284] The edge shape is obtained by edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, an edge shape bounding box is set for the edge property, and random points are generated in the edge shape bounding box;
[0285] By analyzing and judging the positions of random points, the number of internal points of the edge shape is obtained, and the area feature, perimeter feature and shape factor feature are obtained based on the number of internal points of the edge shape, wherein the shape factor feature includes roundness and compactness;
[0286] The edge shape is segmented to obtain the edge mesh, and the origin moment and center moment of the edge mesh are calculated to obtain the moment feature;
[0287] Obtaining the corresponding points of the minimum ordinate values of the coordinate points in the edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, and performing polar angle sorting based on the corresponding points of the minimum ordinate values to obtain a sorted edge point set;
[0288] Analyze and determine the positional relationship between the points in the sorted edge point set, obtain the points that meet the convex hull features, and obtain the convex hull features;
[0289] Among them, the area characteristics and perimeter characteristics are expressed as follows:
[0290]
[0291]
[0292] The roundness and compactness are expressed as follows:
[0293]
[0294]
[0295] The origin moment and the center moment are expressed as follows:
[0296]
[0297]
[0298] in, represents the origin moment, represents the central moment, represents the order of the moment, Represents the grayscale contrast image at point The gray value of the position, represents the barycentric coordinates, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box, Indicates roundness, Indicates compactness, represents the area of the minimum enclosing rectangle, Indicates the pixel position coordinates.
[0299] Various changes and modifications can be made without departing from the spirit and scope of the present invention, and all equivalent technical solutions also belong to the scope of the present invention.
[0300] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0301] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0302] The present invention is described with reference to the flowcharts and / or block diagrams of the method, terminal device (system), and computer program product according to the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0303] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0304] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0305] It should be noted that:
[0306] The "one embodiment" or "embodiment" mentioned in the specification means that the specific features, structures or characteristics described in conjunction with the embodiment are included in at least one embodiment of the present invention. Therefore, the phrases "one embodiment" or "embodiment" appearing in various places throughout the specification do not necessarily refer to the same embodiment.
[0307] In addition, it should be noted that the shapes and names of the parts and components of the specific embodiments described in this specification may be different. Any equivalent or simple changes made based on the structure, features and principles described in the patent concept of the present invention are included in the protection scope of the patent of the present invention. The technicians in the technical field of the present invention can make various modifications or supplements to the specific embodiments described or replace them in a similar manner, as long as they do not deviate from the structure of the present invention or exceed the scope defined by the claims, they should all fall within the protection scope of the present invention.
Claims
1. A feature extraction method based on X-ray contrast image, characterized in that: The following steps are involved: Acquire a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image, and a dark field contrast image; Preprocessing the absorption contrast image, differential phase contrast image and dark field contrast image respectively to obtain the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction; Decomposing the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, sharpening and contrast enhancing the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image; The edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are extracted respectively to obtain the edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image; Shape features are extracted based on edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, and shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image are obtained respectively; The preprocessing includes noise reduction processing, and the noise reduction processing is expressed as follows: in, represents the decay rate parameter that controls the spatial domain weight, Represents the attenuation speed parameter that controls the grayscale difference weight, represents the normalized weight sum, represents the weight function of the bilateral filter, represents the window radius of the bilateral filter, represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction, represents the horizontal axis, represents the vertical coordinate, represents the horizontal coordinate of the neighborhood position, represents the ordinate of the neighborhood position, represents the domain kernel; Before the noise reduction process, a filtering process is also included, and the filtering process is expressed as follows: in, , , represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the mean value corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the variance corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the estimated noise variance, represents the horizontal axis, represents the vertical coordinate, , Represents the number of pixels in different dimensions of the absorption contrast image, differential phase contrast image, or dark field contrast image, represents the filtered absorption contrast image or differential phase contrast image or dark field contrast image, represents the weight, represents the estimated noise standard deviation, Indicates the standard deviation of the absorption contrast image, differential phase contrast image, or dark field contrast image.
2. The feature extraction method based on X-ray contrast image according to claim 1, characterized in that: The different-level difference images at least include a high-level difference image and a low-level difference image, and the enhanced absorption contrast image, the differential phase contrast image, the dark field contrast image and the different-level difference images are obtained by combining the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image, including the following steps: Based on the high-level difference image, the absorption contrast image after noise reduction, the differential phase contrast image and the dark field contrast image, the corresponding sharpening adjustment coefficients are adjusted to obtain the sharpened absorption contrast image, the differential phase contrast image and the dark field contrast image; Based on the low-level difference image, the absorption contrast image after noise reduction, the differential phase contrast image and the dark field contrast image, the corresponding contrast enhancement adjustment coefficients are adjusted to obtain the absorption contrast image after contrast enhancement, the differential phase contrast image and the dark field contrast image; Based on the sharpened and contrast-enhanced absorption contrast image, differential phase contrast image and dark field contrast image, an enhanced absorption contrast image, a differential phase contrast image and a dark field contrast image are obtained.
3. The feature extraction method based on X-ray contrast image according to claim 2, characterized in that: The absorption contrast image, differential phase contrast image and dark field contrast image corresponding to the sharpening and contrast enhancement are expressed as follows: in, represents the absorption contrast image or differential phase contrast image or dark field contrast image after sharpening. It represents the absorption contrast image or differential phase contrast image or dark field contrast image after contrast enhancement. represents any one of the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction, represents a high-level difference image or a low-level difference image, represents the sharpening adjustment coefficient, Represents the contrast enhancement adjustment coefficient.
4. The feature extraction method based on X-ray contrast image according to claim 1, characterized in that: The step of extracting edge features of the enhanced absorption contrast image, the differential phase contrast image, and the dark field contrast image to obtain edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image comprises the following steps: The enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are respectively converted into grayscale to obtain corresponding grayscale images, and the grayscale images are converted from the spatial domain to the frequency domain to obtain a frequency domain image; Extract phase information based on the frequency domain image to obtain frequency domain phase information; The frequency domain phase information is enhanced through the angle-preserving consistency model, thereby achieving the phase consistency of the frequency domain phase information; According to the phase consistency of the frequency domain phase information, an edge threshold is set, and the pixel points in the frequency domain image are marked in combination with the phase consistency of the frequency domain phase information and the edge threshold to obtain an edge image; Perform inverse Fourier transform on the edge image to obtain an edge space region image; The edge features of the edge space region image are extracted by edge feature extraction algorithm, and processed to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively; Wherein, the frequency domain image is expressed as follows: The frequency domain phase information is expressed as follows: The phase consistency of the frequency domain phase information is expressed as follows: The edge space region image is represented as follows: in, represents a grayscale image, represents the frequency domain image, , Represents the number of pixels in different dimensions of the grayscale image, represents the frequency domain phase information, represents the tangent calculation, represents the calculation result of the imaginary part of the frequency domain image, represents the real part calculation result of the frequency domain image, Represents pixel The phase consistency, Represents the frequency domain image at point The amplitude, Represents the frequency domain image at point The phase of represents the imaginary unit, represents the edge space region image, Represents the pixel position information of the frequency domain image, Represents the spatial pixel location information.
5. The feature extraction method based on X-ray contrast image according to claim 1, characterized in that: The method of extracting the texture features of the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image to obtain the texture features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image comprises the following steps: Based on the grayscale images corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image, the corresponding grayscale images are traversed based on the traversal window to obtain the grayscale co-occurrence matrix of the pixel points in the traversal window; Based on the gray level co-occurrence matrix, the texture features corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained, where the texture features include contrast features, energy features, entropy features and correlation features, which are expressed as follows: in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, Represents the gray level in the grayscale image corresponding to the enhanced absorption contrast image, differential phase contrast image, or dark field contrast image. represents the gray level probability in the gray level co-occurrence matrix, Indicates grayscale Mean, Indicates grayscale Mean, Indicates grayscale Standard deviation, Indicates grayscale Standard deviation.
6. The feature extraction method based on X-ray contrast image according to claim 1, characterized in that: The method of obtaining the shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image comprises the following steps: Based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, shape description is performed to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, wherein the shape features include area features, perimeter features, moment features, convex hull features and shape factor features; The edge shape is obtained by edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, an edge shape bounding box is set for the edge property, and random points are generated in the edge shape bounding box; By analyzing and judging the positions of random points, the number of internal points of the edge shape is obtained, and the area feature, perimeter feature and shape factor feature are obtained based on the number of internal points of the edge shape, wherein the shape factor feature includes roundness and compactness; The edge shape is segmented to obtain the edge mesh, and the origin moment and center moment of the edge mesh are calculated to obtain the moment feature; Obtaining the corresponding points of the minimum ordinate values of the coordinate points in the edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, and performing polar angle sorting based on the corresponding points of the minimum ordinate values to obtain a sorted edge point set; Analyze and determine the positional relationship between the points in the sorted edge point set, obtain the points that meet the convex hull features, and obtain the convex hull features; Among them, the area characteristics and perimeter characteristics are expressed as follows: The roundness and compactness are expressed as follows: The origin moment and the center moment are expressed as follows: in, represents the origin moment, represents the central moment, represents the order of the moment, Represents the grayscale contrast image at point The gray value of the position, represents the barycentric coordinates, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box, Indicates roundness, Indicates compactness, represents the area of the minimum enclosing rectangle, Indicates the pixel position coordinates.
7. The feature extraction method based on X-ray contrast image according to claim 1, characterized in that: The step of obtaining a contrast image of the sample to be tested comprises the following steps: Obtain the background moiré intensity and the moiré intensity of the sample to be tested, expressed as follows: Based on the background moiré fringe intensity and the moiré fringe intensity of the sample to be tested, the contrast image of the sample to be tested is obtained, including the absorption contrast image, the differential phase contrast image and the dark field contrast image, which are expressed as follows: in, represents the background moiré intensity, and Represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the background moiré fringe. represents the horizontal axis, represents the vertical coordinate, Indicates the number of steps. represents the moiré fringe intensity of the sample to be tested, and It represents the zero-order coefficient and the first-order coefficient after the intensity decomposition of the moiré fringe of the sample to be tested. represents the differential phase distribution without the sample to be tested. represents the differential phase distribution of the sample to be tested, represents the absorption contrast image, represents the dark field contrast image, represents the differential phase contrast image, represents the phase distribution of the moiré fringe image where the sample to be tested is placed, represents the phase distribution of the moiré fringe image without the sample to be tested. represents the period of the analysis grating, represents the distance between the phase grating and the analyzer grating, represents the angle calculation, Represents the modulo operation.
8. A feature extraction system based on X-ray contrast image, characterized in that: It includes an image acquisition module, an image noise reduction module, an image processing module, an edge texture feature extraction module and a shape feature extraction module; The image acquisition module acquires a contrast image of the sample to be tested, wherein the contrast image includes an absorption contrast image, a differential phase contrast image and a dark field contrast image; The image denoising module preprocesses the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively to obtain the denoised absorption contrast image, the differential phase contrast image and the dark field contrast image; The image processing module performs image decomposition on the denoised absorption contrast image, differential phase contrast image and dark field contrast image to obtain different levels of difference images, and performs sharpening and contrast enhancement on the denoised absorption contrast image, differential phase contrast image, dark field contrast image and different levels of difference images to obtain enhanced absorption contrast image, differential phase contrast image and dark field contrast image; The edge texture feature extraction module extracts edge features and texture features of the enhanced absorption contrast image, differential phase contrast image and dark field contrast image, respectively, to obtain edge features and texture features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image; The shape feature extraction module extracts shape features based on edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, and obtains shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image respectively; The preprocessing includes noise reduction processing, and the noise reduction processing is expressed as follows: in, represents the decay rate parameter that controls the spatial domain weight, Represents the attenuation speed parameter that controls the grayscale difference weight, represents the normalized weight sum, represents the weight function of the bilateral filter, represents the window radius of the bilateral filter, represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the absorption contrast image, differential phase contrast image and dark field contrast image after noise reduction, represents the horizontal axis, represents the vertical coordinate, represents the horizontal coordinate of the neighborhood position, represents the ordinate of the neighborhood position, represents the domain kernel; Before the noise reduction process, a filtering process is also included, and the filtering process is expressed as follows: in, , , represents any one of absorption contrast image, differential phase contrast image and dark field contrast image, represents the mean value corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the variance corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image, represents the estimated noise variance, represents the horizontal axis, represents the vertical coordinate, , Represents the number of pixels in different dimensions of the absorption contrast image, differential phase contrast image, or dark field contrast image, represents the filtered absorption contrast image or differential phase contrast image or dark field contrast image, represents the weight, represents the estimated noise standard deviation, Indicates the standard deviation of the absorption contrast image, differential phase contrast image, or dark field contrast image.
9. The feature extraction system based on X-ray contrast image according to claim 8, characterized in that: The edge texture feature extraction module is configured as follows: The enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image are respectively converted into grayscale to obtain corresponding grayscale images, and the grayscale images are converted from the spatial domain to the frequency domain to obtain a frequency domain image; Extract phase information based on the frequency domain image to obtain frequency domain phase information; The frequency domain phase information is enhanced through the angle-preserving consistency model, thereby achieving the phase consistency of the frequency domain phase information; According to the phase consistency of the frequency domain phase information, an edge threshold is set, and the pixel points in the frequency domain image are marked in combination with the phase consistency of the frequency domain phase information and the edge threshold to obtain an edge image; Perform inverse Fourier transform on the edge image to obtain an edge space region image; The edge features of the edge space region image are extracted by edge feature extraction algorithm, and processed to obtain the edge features corresponding to the absorption contrast image, differential phase contrast image and dark field contrast image respectively; Wherein, the frequency domain image is expressed as follows: The frequency domain phase information is expressed as follows: The phase consistency of the frequency domain phase information is expressed as follows: The edge space region image is represented as follows: in, represents a grayscale image, represents the frequency domain image, , Represents the number of pixels in different dimensions of the grayscale image, represents the frequency domain phase information, represents the tangent calculation, represents the calculation result of the imaginary part of the frequency domain image, represents the real part calculation result of the frequency domain image, Represents pixel The phase consistency, Represents the frequency domain image at point The amplitude, Represents the frequency domain image at point The phase of represents the imaginary unit, represents the edge space region image, Represents the pixel position information of the frequency domain image, Represents the spatial pixel location information; Based on the grayscale images corresponding to the enhanced absorption contrast image, the differential phase contrast image and the dark field contrast image, the corresponding grayscale images are traversed based on the traversal window to obtain the grayscale co-occurrence matrix of the pixel points in the traversal window; Based on the gray level co-occurrence matrix, the texture features corresponding to the enhanced absorption contrast image, differential phase contrast image and dark field contrast image are obtained, where the texture features include contrast features, energy features, entropy features and correlation features, which are expressed as follows: in, represents the contrast feature, Represents energy characteristics, represents the entropy feature, Represents the correlation characteristics, Represents the gray level in the grayscale image corresponding to the enhanced absorption contrast image, differential phase contrast image, or dark field contrast image. represents the gray level probability in the gray level co-occurrence matrix, Indicates grayscale Mean, Indicates grayscale Mean, Indicates grayscale Standard deviation, Indicates grayscale Standard deviation.
10. The feature extraction system based on X-ray contrast image according to claim 8, characterized in that: The shape feature extraction module is configured as follows: Based on the edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, shape description is performed to obtain shape features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, wherein the shape features include area features, perimeter features, moment features, convex hull features and shape factor features; The edge shape is obtained by edge features corresponding to the absorption contrast image, the differential phase contrast image and the dark field contrast image, an edge shape bounding box is set for the edge property, and random points are generated in the edge shape bounding box; By analyzing and judging the positions of random points, the number of internal points of the edge shape is obtained, and the area feature, perimeter feature and shape factor feature are obtained based on the number of internal points of the edge shape, wherein the shape factor feature includes roundness and compactness; The edge shape is segmented to obtain the edge mesh, and the origin moment and center moment of the edge mesh are calculated to obtain the moment feature; Obtaining the corresponding points of the minimum ordinate values of the coordinate points in the edge features corresponding to the absorption contrast image, the differential phase contrast image, and the dark field contrast image, and performing polar angle sorting based on the corresponding points of the minimum ordinate values to obtain a sorted edge point set; Analyze and determine the positional relationship between the points in the sorted edge point set, obtain the points that meet the convex hull features, and obtain the convex hull features; Among them, the area characteristics and perimeter characteristics are expressed as follows: The roundness and compactness are expressed as follows: The origin moment and the center moment are expressed as follows: in, represents the origin moment, represents the central moment, represents the order of the moment, Represents the grayscale contrast image at point The gray value of the position, represents the barycentric coordinates, Represents area characteristics, Indicates the number of internal points of the edge shape, represents the number of random points, Represents the area of the edge shape bounding box, Represents the perimeter feature, Indicates the perimeter of the edge shape bounding box, Indicates roundness, Indicates compactness, represents the area of the minimum enclosing rectangle, Indicates the pixel position coordinates.
11. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
12. A feature extraction device based on X-ray contrast images, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.
