A method for mineral particle size measurement of metal mineral light sheet images based on improved K-means algorithm
Through the improved K-means algorithm and computer image processing technology, the problems of low efficiency and low accuracy of manual methods in metallic mineral light sheet image measurement are solved, and fast and accurate mineral embedded particle size measurement is achieved, reaching nanometer-level accuracy.
Patent Information
- Application Number
- CN202111584832.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-12-22
AI Technical Summary
In the existing technology, the mineral embedded particle size measurement of metallic mineral light sheet images relies on manual methods, resulting in heavy workload, low efficiency, low measurement accuracy, and is greatly affected by human factors.
The improved K-means algorithm is combined with computer image processing technology to identify, cluster and color-segment metal mineral light sheets, and the Feret Diameter is used for precise measurement, replacing manual measurement to improve measurement accuracy and efficiency.
It achieves fast and accurate particle size measurement of metal mineral embedded materials, improves measurement accuracy and efficiency, reduces manual labor intensity, and can achieve nanometer-level measurement accuracy.
Smart Images

Figure CN114239304B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a method for measuring mineral grain size of metal mineral optical sheet images based on an improved K-means algorithm, and belongs to the technical field of process mineralogy. Background Art
[0002] At present, in the field of process mineralogy, the measurement of mineral embedded grain size in metal mineral light sheet images is still carried out manually. During measurement, the technician adjusts the polarizing microscope to a suitable magnification, and continuously moves and switches to the metal mineral light sheet until the mineral grains embedded in the field of view are convenient for measurement, and then directly reads the grain size of the embedded minerals in the field of view through the polarizing microscope. Although this method can directly read the embedded grain size of the mineral, there are the following problems: 1. The workload and labor intensity of the technicians are large; 2. The measurement results are greatly affected by human factors; 3. The measurement accuracy is not high.
[0003] With the development of computer image processing technology, in order to solve the above problems, it is proposed to use computer image processing technology to replace manual measurement of metal mineral embedded particle size. According to the color characteristics of metal minerals, combined with image processing technology, efficient measurement of metal mineral embedded particle size can be achieved. After a lot of research on the color characteristics of metal minerals and the specific forms of minerals in images, it is found that simple image segmentation cannot effectively extract the complete shape and outline of the target mineral. By using the K-means algorithm, the colors of the target minerals with different colors in the image can be clustered into a single color, so that the shape and outline of the target mineral can be completely extracted. Given that the K-means algorithm needs to preset the K value when executing, using color to identify the number of mineral types as a reference can enable the algorithm to play the greatest advantage. At the same time, in order to improve the robustness of the algorithm, the initial clustering center of the K-means algorithm is evenly dispersed in the image.
[0004] Finally, the segmented target mineral image is used to accurately measure the mineral embedding particle size using Feret Diameter. Summary of the invention
[0005] The present invention provides a method for measuring mineral grain size of metal mineral optical slice images based on an improved K-means algorithm, so as to overcome the problems of large workload, low efficiency and low measurement accuracy of technicians in manually measuring the mineral embedded grain size in metal mineral optical slices under a microscope.
[0006] The technical solution of the present invention is: a method for measuring mineral particle size of metal mineral optical sheet images based on an improved K-means algorithm, the method comprising:
[0007] First, the obtained metal mineral optical image is used to identify the mineral type and record the location of the target mineral;
[0008] The number of mineral species obtained is used as the basis for setting the K value in the K-means algorithm;
[0009] Use K-means algorithm to cluster images so that the same minerals appear in a single color;
[0010] Using the recorded position of the target mineral, the color of the position where the target mineral is located is separated separately;
[0011] The segmented mineral image is binarized, and the Feret Diameter is used to accurately measure the particle size of the target mineral.
[0012] As a further solution of the present invention, the specific method of identifying the mineral types of the obtained metal mineral light sheet image is to determine the number of mineral types in the light sheet by the difference in color of the metal minerals, and simultaneously record the position of the corresponding target mineral.
[0013] As a further solution of the present invention, the specific steps of the method are as follows:
[0014] Step 1: Use color to identify the mineral type in the metal mineral optical image and record the position of the target mineral in the image;
[0015] Step 2, calculate the K value of the K-means algorithm according to the number of mineral species in the light sheet image obtained in Step 1; the initial value of the K value is 1, and the K value is increased by 2 for each mineral identified in Step 1, where the mineral edge is counted as one category;
[0016] Step 3: Initialize the cluster centers by evenly distributing K cluster centers to the image.
[0017] Step 4: Perform mean filtering on the mineral image for image preprocessing before clustering;
[0018] Step 5: Cluster the images processed in Step 4 using the improved K-means algorithm;
[0019] Step 6, using the target mineral position recorded in Step 1, read the color of the position, segment the shape represented by the color in the image through color segmentation, and then binarize the segmented image;
[0020] Step 7. Use Feret Diameter to measure the particle size of metal minerals in the binarized image to obtain the particle size of metal minerals embedded in the metal mineral optical film.
[0021] As a further solution of the present invention, the specific steps of Step 5 are:
[0022] Step 5.1. Calculate the distance from each pixel to the cluster center, and classify the pixel to the cluster center closest to it. After the classification is completed, K clusters are formed; the distance formula is as follows:
[0023]
[0024] Among them, r1, g1, b1 represent the vector values of the red, green and blue channels of the pixel point (r1, g1, b1) in the color image, r0, g0, b0 represent the vector values of the red, green and blue channels of the cluster center point (r0, g0, b0);
[0025] Step 5.2, calculate the pixel mean in each class and find the new cluster center (c ir ,c ig ,c ib );
[0026]
[0027] Where (c ir ,c ig ,c ib ) represents the new cluster center, c ir ,c ig ,c ib Represent the new cluster center points (c ir ,c ig ,c ib ) The vector value of the red, green and blue channels, n is the number of samples, m is the color channel r, g, b; i is 1, 2...n;
[0028] Step5.3, repeat the steps of Step5.1-Step5.2 until the cluster center no longer changes.
[0029] As a further solution of the present invention, in Step 4, the mineral image is subjected to mean filtering, and the filter window size is 3×3.
[0030] The beneficial effect of the present invention is that the present invention can accurately and quickly replace manual measurement of the mineral embedding particle size under the metal mineral optical film by combining computer image processing technology with an efficient image clustering algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION
[0032] Example 1: Figure 1As shown, a method for measuring mineral grain size of metal mineral optical slice images based on an improved K-means algorithm is provided. The mineral optical slice images are obtained by relying on the equipment and mineral optical slices of a central laboratory of a geological and mineral exploration and development bureau and a university platform. The program is written using MATLAB 2018b software. The computer has a processor of Core i7 and a memory of 16G. The mineral grain size in the image of bornite optical slice is measured. The method comprises:
[0033] First, the obtained metal mineral optical image is used to identify the mineral type and record the location of the target mineral;
[0034] The number of mineral species obtained is used as the basis for setting the K value in the K-means algorithm;
[0035] Use K-means algorithm to cluster images so that the same minerals appear in a single color;
[0036] Using the recorded position of the target mineral, the color of the position where the target mineral is located is separated separately;
[0037] The segmented mineral image is binarized, and the Feret Diameter is used to accurately measure the particle size of the target mineral.
[0038] As a further solution of the present invention, the specific method of identifying the mineral types of the obtained metal mineral light sheet image is to determine the number of mineral types in the light sheet by the difference in color of the metal minerals, and simultaneously record the position of the corresponding target mineral.
[0039] As a further solution of the present invention, the specific steps of the method are as follows:
[0040] Step 1: Use color to identify the mineral type in the metal mineral optical image and record the position of the target mineral in the image;
[0041] Step 2, calculate the K value of the K-means algorithm according to the number of mineral species in the light sheet image obtained in Step 1; the initial value of the K value is 1 (vein background), and the K value is increased by 2 for each mineral identified in Step 1, where the mineral edge is counted as one category;
[0042] Step 3: Initialize the cluster centers by evenly distributing K cluster centers to the image.
[0043] Step 4: Perform mean filtering on the mineral image for image preprocessing before clustering;
[0044] Step 5: Cluster the images processed in Step 4 using the improved K-means algorithm;
[0045] Step 6, using the target mineral position recorded in Step 1, read the color of the position, segment the shape represented by the color in the image through color segmentation, and then binarize the segmented image;
[0046] Step 7. Use Feret Diameter to measure the particle size of metal minerals in the binarized image to obtain the particle size of metal minerals embedded in the metal mineral optical film.
[0047] As a further solution of the present invention, the specific steps of Step 5 are:
[0048] Step 5.1. Calculate the distance from each pixel to the cluster center, and classify the pixel to the cluster center closest to it. After the classification is completed, K clusters are formed; the distance formula is as follows:
[0049]
[0050] Among them, r1, g1, b1 represent the vector values of the red, green and blue channels of the pixel point (r1, g1, b1) in the color image, r0, g0, b0 represent the vector values of the red, green and blue channels of the cluster center point (r0, g0, b0);
[0051] Step 5.2, calculate the pixel mean in each class and find the new cluster center (c ir ,c ig ,c ib );
[0052]
[0053] Where (c ir ,c ig ,c ib ) represents the new cluster center, c ir ,c ig ,c ib Represent the new cluster center points (c ir ,c ig ,c ib ) The vector value of the red, green and blue channels, n is the number of samples, m is the color channel r, g, b; i is 1, 2...n;
[0054] Step5.3, repeat the steps of Step5.1-Step5.2 until the cluster center no longer changes.
[0055] As a further solution of the present invention, in Step 4, the mineral image is subjected to mean filtering, and the filter window size is 3×3.
[0056] By analyzing a large number of metal mineral light-section images and gaining an in-depth understanding of the artificial distribution particle size of metal minerals, computer image processing technology can be used in combination with certain algorithms to measure the mineral distribution particle size under metal mineral light sections.
[0057] Artificial particle size measurement generally uses a caliper on a polarizing microscope to directly estimate the particle size of the embedded minerals in the field of view, and its measurement accuracy is not high (its minimum scale is 10 microns). Using this method to measure mineral particle size can improve the measurement accuracy (up to nanometer level) according to actual needs, thereby improving the precision of evaluating the particle size of mineral embedding.
[0058] Manual particle size measurement generally randomly selects 5-10 points on the light sheet under a polarizing microscope for estimation. Due to the long time (generally 1-3 hours), heavy workload, and easy fatigue of the naked eye in this process, it is difficult to measure the particle size of all mineral particles in the field of view, and under-measurement and over-measurement often occur. This method can effectively solve this problem, and can take all-round photos of the light sheet under a polarizing microscope (the number of points can be appropriately selected as needed), and then measure the mineral particle size in the entire light sheet to improve the accuracy of evaluating the mineral embedded particle size.
[0059] In order to effectively test the applicability of this method in mineral particle size measurement and statistics, the following comparative test was carried out. Test method: 1. The technician randomly selected 6 points on the light sheet under the polarizing microscope for estimation and photographing; 2. The mineral particle size of the 6 photos was measured using this method. The results are shown in Tables 1 and 2.
[0060] Table 1 is the artificial measurement data of the particle size of bornite (unit: um)
[0061]
[0062] Table 2 shows the measured data of the bornite distribution particle size by this method (unit: um)
[0063]
[0064] As can be seen from the table above, the manual particle size measurement measured a total of 71 data, which took about 90 minutes (refer to the general process mineralogy particle size statistics method), of which 57 were less than 37um, 7 were between 37um and 74um, and 7 were greater than 74um; the particle size measurement of this method measured a total of 85 data, which took about 20 minutes, of which 71 were less than 37um, 7 were between 37um and 74um, and 7 were greater than 74um. As can be seen from the above, this method has obvious advantages in measurement precision, timeliness, and accuracy.
[0065] The specific implementation modes of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A method for measuring mineral particle size of metal mineral optical sheet images based on an improved K-means algorithm, characterized in that: The specific steps of the method are as follows: Step 1: Use color to identify the mineral type in the metal mineral optical image and record the position of the target mineral in the image; Step 2, calculate the K value of the K-means algorithm according to the number of mineral species in the light sheet image obtained in Step 1; the initial value of the K value is 1, and the K value is increased by 2 for each mineral identified in Step 1, where the mineral edge is counted as one category; Step 3: Initialize the cluster centers by evenly distributing K cluster centers to the image. Step 4: Perform mean filtering on the mineral image for image preprocessing before clustering; Step 5: Cluster the images processed in Step 4 using the improved K-means algorithm; Step 6, using the target mineral position recorded in Step 1, read the color of the position, segment the shape represented by the color in the image through color segmentation, and then binarize the segmented image; Step 7, use Feret Diameter to measure the particle size of metal minerals in the binarized image to obtain the particle size of metal minerals embedded in the metal mineral optical film; The specific steps of Step 5 are: Step 5.
1. Calculate the distance from each pixel to the cluster center, and classify the pixel to the cluster center closest to it. After the classification is completed, K clusters are formed; the distance formula is as follows: Among them, r1, g1, b1 represent the vector values of the red, green and blue channels of the pixel point (r1, g1, b1) in the color image, r0, g0, b0 represent the vector values of the red, green and blue channels of the cluster center point (r0, g0, b0); Step 5.2, calculate the pixel mean in each class and find the new cluster center (c ir ,c ig ,c ib ); Where (c ir ,c ih ,c ib ) represents the new cluster center, c ir ,c ig ,c ib Represent the new cluster center points (c ir ,c ig ,c ib ) The vector value of the red, green and blue channels, n is the number of samples, m is the color channel r, g, b; i is 1, 2...n; Step 5.3, repeat the steps of Step 5.1-Step 5.2 until the cluster center no longer changes.
2. The method for measuring mineral particle size of metal mineral optical sheet images based on improved K-means algorithm according to claim 1 is characterized by: In the Step 4, the mineral image is subjected to mean filtering, and the filter window size is 3×3.
Citation Information
Patent Citations
Method and system for identifying metallic minerals under microscope based on BP nueral network
AU2020103251A4
Reservoir sensitivity damage simulation method based on digital core model
CN108897906A
