CN103345636A - Method for identifying foam working condition on copper flotation site based on wavelet multi-scale binaryzation - Google Patents
Method for identifying foam working condition on copper flotation site based on wavelet multi-scale binaryzation Download PDFInfo
- Publication number
- CN103345636A CN103345636A CN2013102527518A CN201310252751A CN103345636A CN 103345636 A CN103345636 A CN 103345636A CN 2013102527518 A CN2013102527518 A CN 2013102527518A CN 201310252751 A CN201310252751 A CN 201310252751A CN 103345636 A CN103345636 A CN 103345636A
- Authority
- CN
- China
- Prior art keywords
- foam
- image
- wavelet
- sigma
- equivalent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 239000006260 foam Substances 0.000 title claims abstract description 146
- 238000005188 flotation Methods 0.000 title claims abstract description 33
- RYGMFSIKBFXOCR-UHFFFAOYSA-N Copper Chemical compound [Cu] RYGMFSIKBFXOCR-UHFFFAOYSA-N 0.000 title claims abstract description 22
- 229910052802 copper Inorganic materials 0.000 title claims abstract description 22
- 239000010949 copper Substances 0.000 title claims abstract description 22
- 238000000034 method Methods 0.000 title claims abstract description 22
- 238000009826 distribution Methods 0.000 claims abstract description 43
- 238000000354 decomposition reaction Methods 0.000 claims description 25
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 claims description 9
- 230000009466 transformation Effects 0.000 claims description 6
- 230000011218 segmentation Effects 0.000 claims description 4
- 238000004422 calculation algorithm Methods 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims 5
- 238000013459 approach Methods 0.000 claims 2
- 238000000844 transformation Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 9
- 238000004519 manufacturing process Methods 0.000 description 8
- 230000000007 visual effect Effects 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000036571 hydration Effects 0.000 description 2
- 238000006703 hydration reaction Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000003709 image segmentation Methods 0.000 description 1
- 230000000877 morphologic effect Effects 0.000 description 1
- 238000003909 pattern recognition Methods 0.000 description 1
- 230000000087 stabilizing effect Effects 0.000 description 1
Images
Landscapes
- Image Processing (AREA)
- Image Analysis (AREA)
Abstract
本发明公开了一种基于小波多尺度二值化的铜浮选现场泡沫工况识别方法,首先对泡沫灰度图像进行小波变换;然后分别对不同尺度的小波逼近子图进行二值化;最后,根据二维小波变换的空间-频率关系,对各二值图像的白色区域面积进行统计计算,得到一种新的与泡沫表观形态直接相关的多尺度统计特征——等效尺寸特征。根据所获得的等效尺寸特征,可进一步得到泡沫图像等效尺寸分布图,由分布图便能直接将不同工况的泡沫图像区分开来。本发明简单有效,对指导铜浮选现场泡沫工况识别有重要意义。
The invention discloses a copper flotation on-site foam working condition recognition method based on wavelet multi-scale binarization. First, wavelet transform is performed on the foam grayscale image; then, wavelet approximation subgraphs of different scales are binarized; finally According to the space-frequency relationship of the two-dimensional wavelet transform, the white area area of each binary image is statistically calculated, and a new multi-scale statistical feature directly related to the foam appearance is obtained—the equivalent size feature. According to the obtained equivalent size characteristics, the equivalent size distribution map of the foam image can be further obtained, and the foam images of different working conditions can be directly distinguished from the distribution map. The invention is simple and effective, and has great significance for instructing the identification of foam working conditions on the spot of copper flotation.
Description
技术领域technical field
本发明涉及一种基于小波多尺度二值化的铜浮选现场泡沫工况识别方法,属于图像处理技术和模式识别等领域。The invention relates to a wavelet multi-scale binarization-based recognition method for copper flotation foam working conditions, which belongs to the fields of image processing technology, pattern recognition and the like.
背景技术Background technique
浮选工况即浮选生产过程中的工作状况,及时准确地识别工况对指导浮选生产至关重要。传统的依靠作业工人肉眼观察泡沫表观变化的方式,已无法满足当今浮选生产快速准确识别工况的需要。随着机器视觉及图像处理等技术的飞速发展,结合浮选现场泡沫特征进行智能识别工况的工作取得了很大进展。通过快速准确的识别浮选现场的工况类别,浮选生产控制系统可及时调整生产参数,使浮选生产过程始终保持在最优状态。The flotation working condition is the working condition in the flotation production process, timely and accurate identification of the working condition is very important to guide the flotation production. The traditional way of relying on workers to observe the apparent changes of foam with naked eyes can no longer meet the needs of rapid and accurate identification of working conditions in today's flotation production. With the rapid development of technologies such as machine vision and image processing, great progress has been made in the intelligent identification of working conditions based on the foam characteristics of flotation sites. By quickly and accurately identifying the working conditions of the flotation site, the flotation production control system can adjust production parameters in time to keep the flotation production process in an optimal state.
研究表明,由肉眼直接观测到的泡沫大小、颜色等泡沫表面视觉特征(以下简称泡沫表观特征)是浮选工况的综合反映。如何准确提取浮选过程中与关键生产指标密切相关的泡沫表观特征,是实现浮选工况识别的关键。应用于铜浮选工况识别的传统特征主要通过分割方法获得,包括泡沫颜色、尺寸、承载率、速度及稳定度等,但这些直接通过分割原始图像获得的特征不具备多尺度特性。二值图像是表征一幅图像的最简单形式。将泡沫灰度图像二值化,可以得到泡沫个数、面积等形态统计特征。与图像分割方法一样,利用二值化方法所获得的泡沫特征也不具备多尺度特性。小波分析具有多尺度特性,能模拟人的视觉系统对信号进行多通道时频域分析,从而能够得到信息更加丰富的统计特征。利用小波分析提取的传统统计特征虽然具有多尺度特性,但很难描绘符合作业工人视觉习惯的泡沫表观形态,因而直接影响工况的准确判断。Studies have shown that the visual characteristics of the foam surface such as the size and color of the foam directly observed by the naked eye (hereinafter referred to as the apparent characteristics of the foam) are a comprehensive reflection of the flotation conditions. How to accurately extract the foam appearance characteristics closely related to key production indicators in the flotation process is the key to realize the identification of flotation conditions. The traditional features applied to the recognition of copper flotation conditions are mainly obtained by segmentation methods, including foam color, size, loading rate, velocity and stability, etc., but these features obtained directly by segmenting the original image do not have multi-scale characteristics. A binary image is the simplest form of representing an image. By binarizing the foam grayscale image, the morphological statistical features such as the number and area of the foam can be obtained. Like the image segmentation method, the foam features obtained by the binarization method do not have multi-scale characteristics. Wavelet analysis has multi-scale characteristics, and can simulate the human visual system to analyze signals in multi-channel time-frequency domain, so as to obtain statistical features with more information. Although the traditional statistical features extracted by wavelet analysis have multi-scale characteristics, it is difficult to describe the appearance of foam that conforms to the visual habits of workers, thus directly affecting the accurate judgment of working conditions.
因此,有必要设计一种基于小波多尺度二值化的铜浮选现场泡沫工况识别方法。Therefore, it is necessary to design a method for identifying foam conditions in copper flotation based on wavelet multi-scale binarization.
发明内容Contents of the invention
本发明所要解决的技术问题是提供一种基于小波多尺度二值化的铜浮选现场泡沫工况识别方法,该基于小波多尺度二值化的铜浮选现场泡沫工况识别方法易于实施,实施成本低,识别效果好。The technical problem to be solved by the present invention is to provide a copper flotation on-site foam working condition identification method based on wavelet multi-scale binarization, which is easy to implement, The implementation cost is low and the recognition effect is good.
发明的技术解决方案如下:The technical solution of the invention is as follows:
一种泡沫图像等效尺寸特征的提取方法,其特征在于,包括以下步骤:A method for extracting foam image equivalent size features, comprising the following steps:
步骤一:根据铜浮选现场所获得的泡沫视频获取三维泡沫图像,将三维泡沫图像进行灰度化,然后对所得的二维灰度图像进行小波分解,从而得到不同尺度上的小波子图,忽略各阶细节子图的特征,仅对各阶逼近子图进行单支重构,得到重构逼近子图;Step 1: Obtain a 3D foam image from the foam video obtained at the copper flotation site, convert the 3D foam image to grayscale, and then perform wavelet decomposition on the obtained 2D grayscale image to obtain wavelet subgraphs on different scales, Ignore the characteristics of each order detail subgraph, and only perform single-branch reconstruction on each order approximation subgraph to obtain the reconstructed approximation subgraph;
步骤二:根据测不准原理和离散小波频域关系,推算出不同阶次子图的泡沫直径变化范围;Step 2: According to the uncertainty principle and the discrete wavelet frequency domain relationship, calculate the range of foam diameter variation of subgraphs of different orders;
步骤三:利用最大类间方差法将各重构逼近子图二值化,得到二值图像,统计出各二值图像的泡沫总体面积,进而求得泡沫等效尺寸特征;最后结合步骤二推算出的泡沫直径变化范围,计算出等效泡沫个数,进而得到泡沫等效尺寸分布图;【一幅泡沫图像经小波变换后能得到多个逼近子图,后面再对这些逼近子图(多个图像)进行进一步处理,便得到对应的等效尺寸分布图。】Step 3: Use the maximum inter-class variance method to binarize each reconstructed approximation sub-image to obtain a binary image, count the total area of the foam in each binary image, and then obtain the equivalent size characteristics of the foam; finally combine with
步骤四:将泡沫等效尺寸分布图与基准分布图比较,确定当前泡沫图像对应的铜浮选现场工况。Step 4: Compare the foam equivalent size distribution map with the benchmark distribution map to determine the copper flotation field conditions corresponding to the current foam image.
所述步骤一包括以下子步骤:Described step one comprises following sub-steps:
步骤1:原始泡沫图像灰度化;Step 1: Grayscale the original foam image;
原始三维RGB泡沫图像K(X×Y×3)灰度化后变为二维灰度图像I(X×Y);The original three-dimensional RGB foam image K (X×Y×3) becomes a two-dimensional grayscale image I (X×Y) after being grayscaled;
步骤2:选择sym4小波对二维灰度图像进行五阶分解,在每个分解阶次,二维小波变换将产生一个逼近子图和水平、垂直、对角线三个不同方向的细节子图;Step 2: Select the sym4 wavelet to decompose the 2D grayscale image to the fifth order. At each decomposition order, the 2D wavelet transform will generate an approximation subimage and detail subimages in three different directions: horizontal, vertical, and diagonal ;
在每个分解阶次的小波变换公式为:The wavelet transform formula at each decomposition order is:
在每个分解阶次中的逼近系数矩阵和3个细节系数矩阵可由二维小波分解的Mallat算法获得:matrix of approximation coefficients in each decomposition order and 3 detail coefficient matrices It can be obtained by the Mallat algorithm of two-dimensional wavelet decomposition:
式中尺度函数为:3个小波函数分别为:ψ1(x,y)=φ(x)ψ(y),ψ2(x,y)=ψ(x)φ(y),ψ3(x,y)=ψ(x)ψ(y),其中和分别表示一维正交多分辨分析的两尺度方程和小波方程;j为分解层数,本例中进行五阶小波分解,则取j=5,4,3,2,1;k,m∈Z分别代表系数矩阵的行和列,l,n∈Z分别代表系数矩阵的行和列;【在进行第一阶小波变换时,l=600,n=800,k=300,m=400】系数序列h={hi}是一个低通滤波器,有h={-0.076,-0.030,0.498,0.804,0.298,-0.100,-0.013,0.032},为h的时序反转系数序列g={gi}是一个高通滤波器且gi=(-1)ih1-i,为g的时序反转 The scaling function in the formula is: The three wavelet functions are: ψ 1 (x, y) = φ(x)ψ(y), ψ 2 (x, y) = ψ(x)φ(y), ψ 3 (x, y) = ψ (x)ψ(y), where and Represent the two-scale equation and wavelet equation of one-dimensional orthogonal multiresolution analysis; j is the number of decomposition layers. In this example, for fifth-order wavelet decomposition, j=5, 4, 3, 2, 1; k, m∈ Z represents the coefficient matrix respectively The rows and columns of , l, n∈Z respectively represent the coefficient matrix row and column; [when performing the first-order wavelet transform, l=600, n=800, k=300, m=400] the coefficient sequence h={h i } is a low-pass filter, and h={ -0.076, -0.030, 0.498, 0.804, 0.298, -0.100, -0.013, 0.032}, Timing reversal for h The coefficient sequence g={g i } is a high-pass filter and g i =(-1) i h 1-i , timing reversal for g
首先应用公式1进行第一阶的二维小波变换,得到1个逼近子图和3个细节子图,其系数由公式2计算;然后,利用公式1对一阶逼近子图(低频部分)继续进行第二阶的二维小波变换,再次得到1个逼近子图和3个细节子图;依此类推,即可得到的五个分解阶次的小波变换;相应地,便得到灰度图像I(X×Y)的多尺度表示;Firstly,
步骤3:忽略各阶细节子图的特征,仅对各阶逼近子图进行单支重构,得到重构逼近子图:Step 3: Ignore the characteristics of each order detail subgraph, and only perform single-branch reconstruction on each order approximation subgraph to obtain the reconstructed approximation subgraph:
将五个逼近重构子图分别记作Sv,v=1,2,…,5,它们代表了不同尺度下泡沫子图的轮廓部分,其系数矩阵通过以下重构公式求得:The five approximation reconstruction subgraphs are denoted as S v , v=1, 2, ..., 5, which represent the contours of the foam subgraphs at different scales, and their coefficient matrix is obtained by the following reconstruction formula:
所述的步骤二中,In the second step,
离散小波不同尺度信号之间的频域关系为:逼近信号fj(t)的频率宽度仅是fj+1(t)频率宽度的一半;fj+1(t)频率宽度的另一半由细节信号dj(t)表现;The frequency domain relationship between discrete wavelet signals of different scales is: the frequency width of the approximation signal f j (t) is only half of the frequency width of f j+1 (t); the other half of the frequency width of f j+1 (t) is given by Detail signal d j (t) performance;
表1Table 1
【由测不准原理可知,小波多尺度分析的空间频率窗口面积具有不变性。因此,各重构子图的频率宽度分别对应不同空间宽度。】根据离散小波不同尺度信号之间的频域关系和测不准原理得到五个逼近子图的空间频率关系如表1所示。【表中的空间范围就是图6中的等效直径范围】【According to the uncertainty principle, the spatial frequency window area of wavelet multi-scale analysis is invariant. Therefore, the frequency widths of each reconstructed submap correspond to different spatial widths. 】According to the frequency domain relationship between discrete wavelet signals of different scales and the uncertainty principle, the spatial frequency relationship of the five approximation subgraphs is shown in Table 1. [The spatial range in the table is the equivalent diameter range in Figure 6]
所述的步骤三包括以下子步骤:Described step three comprises the following substeps:
步骤1:根据最大类间方差法计算出各重构子图的最佳阈值,对各重构子图进行二值化,并统计出各二值图像的泡沫总体面积:Step 1: Calculate the optimal threshold value of each reconstructed submap according to the maximum between-class variance method, perform binarization on each reconstructed submap, and count the total area of foam in each binary image:
设Sv有L个灰度级,灰度值是i的像素数为ni,则总的像素数是各灰度值出现的概率为设以灰度Lth为门限将图像分割成2个区域,灰度级为1~Lth的像素区域A,灰度级为Lth+1~L-1的像素区域B:A、B出现的概率分别为:Suppose S v has L gray levels, and the number of pixels whose gray value is i is n i , then the total number of pixels is The probability of occurrence of each gray value is Let the gray level L th be used as the threshold to divide the image into two areas, the pixel area A with a gray level of 1 to L th , and the pixel area B with a gray level of L th +1 to L-1: A and B appear The probabilities are:
A和B两类的灰度均值分别为:The gray mean values of A and B are:
从而可以得到图像总的灰度均值:In this way, the total gray value of the image can be obtained:
由此可以得到A、B两区域的类间方差:From this, the between-class variance of A and B regions can be obtained:
σ2=pA(ωA-ω0)2+pB(ωB-ω0)2;σ 2 =p A (ω A -ω 0 ) 2 +p B (ω B -ω 0 ) 2 ;
为得到最优分割阈值,以两类的类间方差作为判别准则,使σ2值最大的即为所求的最佳阈值:In order to obtain the optimal segmentation threshold, the variance between the two classes is used as the discriminant criterion, and the one with the largest σ2 value That is the optimal threshold value sought:
计算出各逼近重构子图的最佳阈值再根据分别对Sv进行二值化,得到五个二值图像,统计各二值图像的白色区域面积,即得到泡沫总体面积,记为Av;Calculate the optimal threshold for each approximation reconstruction subgraph Then according to Carry out binarization to Sv respectively, obtain five binary images, count the white area area of each binary image, promptly obtain the total foam area, denote as Av ;
步骤2:相邻二值图像泡沫总体面积相减,得到泡沫等效尺寸特征;Step 2: Subtract the total area of the foam in adjacent binary images to obtain the equivalent size feature of the foam;
将相邻二值图像的泡沫总体面积相减,得到泡沫子图等效面积,记为Eq;Subtract the total foam area of adjacent binary images to obtain the equivalent area of the foam sub-image, which is denoted as E q ;
有,Eq=Aq+1-Aq,q=1,2,3,4;Yes, E q = A q+1 -A q , q = 1, 2, 3, 4;
Eq即为通过多尺度二值化所求得的泡沫等效尺寸特征,下标q为等效尺寸特征的个数,q+1为分解阶次;由于分解阶次为5,则4个等效尺寸特征分别对应4个连续的泡沫直径变化范围:1~2,2~4,4~8,8~16;【这个范围是分析小波子图之间的空间-频率关系直接得到的,而不是由面积得到。这里的直径是等效直径,因此未给单位。】E q is the foam equivalent size feature obtained by multi-scale binarization, the subscript q is the number of equivalent size features, and q+1 is the decomposition order; since the decomposition order is 5, then 4 The equivalent size features correspond to four continuous foam diameter ranges: 1~2, 2~4, 4~8, 8~16; [this range is directly obtained by analyzing the space-frequency relationship between wavelet subgraphs, rather than by area. The diameters here are equivalent diameters, so units are not given. 】
步骤3:根据推算出的泡沫直径变化范围,计算出等效泡沫个数,进而得到泡沫等效尺寸分布图;Step 3: Calculate the number of equivalent foams according to the calculated foam diameter variation range, and then obtain the foam equivalent size distribution diagram;
以Dq为泡沫直径变化范围的平均值,4个泡沫直径变化范围对应的Dq分别为1.5,3,6,12,根据下式求出各阶次的等效泡沫个数:Taking D q as the average value of the range of foam diameter variation, the corresponding D q of the four foam diameter ranges are 1.5, 3, 6, and 12 respectively, and the number of equivalent foams of each order is calculated according to the following formula:
【这个个数就是图6中的频数】 [This number is the frequency in Figure 6]
最终得到当前工况泡沫图像的等效尺寸分布图。Finally, the equivalent size distribution diagram of the foam image under the current working condition is obtained.
所述的步骤四中,基准分布图的获取方法为:先由多幅已知工况的图像经步骤一至三获得多个泡沫等效尺寸分布图,对所得的多个泡沫等效尺寸分布图进行统计,从而得到基准分布图;所述的统计指统计出在不同工况下的各泡沫图像等效直径的泡沫频数,基准分布图为离线得到的。In the
有益效果:Beneficial effect:
本发明的基于小波多尺度二值化的铜浮选现场泡沫工况识别方法,将小波多尺度分析与图像二值化相结合,利用小波多尺度二值化来提取一种新的与泡沫表观形态直接相关的多尺度统计特征——等效尺寸特征。根据该特征来识别铜浮选生产工况,对于稳定铜浮选工况,实现铜浮选过程的优化控制有重要的意义。The copper flotation on-site foam working condition recognition method based on wavelet multi-scale binarization of the present invention combines wavelet multi-scale analysis with image binarization, and utilizes wavelet multi-scale binarization to extract a new The multi-scale statistical feature directly related to the appearance and shape - the equivalent size feature. Identifying the production conditions of copper flotation based on this feature is of great significance for stabilizing the working conditions of copper flotation and realizing the optimal control of the copper flotation process.
本发明所提取的特征是原始图像在不同尺度上的表达,具有多尺度特性;同时该特征与泡沫表观形态直接相关,不同的泡沫图像对应不同的等效尺寸分布。通过比较等效尺寸分布图可以直接将不同工况的泡沫图像区分开来,因此简单有效,对指导铜浮选工况识别有重要意义。The feature extracted by the present invention is the expression of the original image on different scales, and has multi-scale characteristics; at the same time, the feature is directly related to the apparent shape of the foam, and different foam images correspond to different equivalent size distributions. By comparing the equivalent size distribution diagrams, the foam images of different working conditions can be directly distinguished, so it is simple and effective, and it is of great significance to guide the identification of copper flotation working conditions.
附图说明Description of drawings
图1三种不同工况的泡沫图像;Figure 1 Foam images of three different working conditions;
图2泡沫图像五阶小波分解的树状图;Figure 2 The dendrogram of the fifth-order wavelet decomposition of the foam image;
图3泡沫图像重构逼近子图;Fig. 3 Foam image reconstruction approximation subgraph;
图4离散小波不同尺度信号之间的频域关系;Figure 4 The frequency domain relationship between discrete wavelet signals of different scales;
图5五个逼近子图的空间频率关系;The spatial frequency relationship of the five approximation subgraphs in Fig. 5;
图6三种不同工况泡沫图像的等效尺寸分布。Figure 6. Equivalent size distribution of foam images under three different working conditions.
具体实施方式Detailed ways
以下将结合附图和具体实施例对本发明做进一步详细说明:The present invention will be described in further detail below in conjunction with accompanying drawing and specific embodiment:
实施例1:Example 1:
下面结合附图对本发明的具体实施方式进行描述,某铜浮选现场有三种不同工况的泡沫,分别为正常泡沫、水化泡沫和粘性泡沫,这三种不同工况的泡沫图像如图1所示。Below in conjunction with accompanying drawing the specific embodiment of the present invention is described, and certain copper flotation site has the foam of three kinds of different working conditions, is respectively normal foam, hydration foam and viscous foam, and the foam image of these three kinds of different working conditions is shown in Figure 1 shown.
第一步,根据铜浮选现场所获得的泡沫视频,获取泡沫图像,并将三维图像进行灰度化。然后对二维灰度图像进行小波分解,得到不同尺度上的小波子图。忽略各阶细节子图的特征,仅对各阶逼近子图进行单支重构,得到重构逼近子图。In the first step, according to the foam video obtained at the copper flotation site, the foam image is obtained, and the three-dimensional image is grayscaled. Then wavelet decomposition is performed on the two-dimensional grayscale image to obtain wavelet subgraphs on different scales. Ignore the characteristics of each order detail subgraph, and only perform single-branch reconstruction on each order approximation subgraph to obtain the reconstructed approximation subgraph.
步骤1:原始泡沫图像灰度化;Step 1: Grayscale the original foam image;
原始三维RGB泡沫图像K(X×Y×3)灰度化后变为二维灰度图像I(X×Y);The original three-dimensional RGB foam image K (X×Y×3) becomes a two-dimensional grayscale image I (X×Y) after being grayscaled;
步骤2:选择sym4小波对灰度图像进行五阶分解,在每个分解阶次,二维小波变换将产生一个逼近子图和水平、垂直、对角线三个不同方向的细节子图,图2为泡沫图像五阶小波分解树状图;Step 2: Select the sym4 wavelet to decompose the grayscale image to the fifth order. In each decomposition order, the two-dimensional wavelet transform will generate an approximation subgraph and three detail subgraphs in different directions: horizontal, vertical and diagonal. Fig. 2 is the fifth-order wavelet decomposition dendrogram of the foam image;
在每个分解阶次的小波变换公式为:The wavelet transform formula at each decomposition order is:
在每个分解阶次中的逼近系数矩阵和3个细节系数矩阵可由二维小波分解的Mallat算法获得:matrix of approximation coefficients in each decomposition order and 3 detail coefficient matrices It can be obtained by the Mallat algorithm of two-dimensional wavelet decomposition:
式中尺度函数为:3个小波函数分别为:ψ1(x,y)=φ(x)ψ(y),ψ2(x,y)=ψ(x)φ(y),ψ3(x,y)=ψ(x)ψ(y),其中和分别表示一维正交多分辨分析的两尺度方程和小波方程;j为分解层数,本例中进行五阶小波分解,则取j=5,4,3,2,1;k,m∈Z分别代表系数矩阵的行和列,l,n∈Z分别代表系数矩阵的行和列;【在进行第一阶小波变换时,l=600,n=800,k=300,m=400】系数序列h={hi}是一个低通滤波器,有h={-0.076,-0.030,0.498,0.804,0.298,-0.100,-0.013,0.032},为h的时序反转系数序列g={gi}是一个高通滤波器且gi=(-1)ih1-i,为g的时序反转 The scaling function in the formula is: The three wavelet functions are: ψ 1 (x, y) = φ(x)ψ(y), ψ 2 (x, y) = ψ(x)φ(y), ψ 3 (x, y) = ψ (x)ψ(y), where and Represent the two-scale equation and wavelet equation of one-dimensional orthogonal multiresolution analysis; j is the number of decomposition layers. In this example, for fifth-order wavelet decomposition, j=5, 4, 3, 2, 1; k, m∈ Z represents the coefficient matrix respectively The rows and columns of , l, n∈Z respectively represent the coefficient matrix row and column; [when performing the first-order wavelet transform, l=600, n=800, k=300, m=400] the coefficient sequence h={h i } is a low-pass filter, and h={ -0.076, -0.030, 0.498, 0.804, 0.298, -0.100, -0.013, 0.032}, Timing reversal for h The coefficient sequence g={g i } is a high-pass filter and g i =(-1) i h 1-i , timing reversal for g
首先应用公式(1)进行第一层的二维小波变换,(取j=5,k=300,m=400,l=600,n=800,)得到1个逼近子图和3个细节子图( ),其系数由公式(2)计算,此时即为步骤1所获得的二维灰度图像矩阵I(X×Y)(的计算步骤为:对任一固定的列数n=800,先用与的每个列向量作卷积,进行向下二抽样得到然后再用与的每个行向量作卷积,进行向下二抽样得到);然后,再利用公式(1)对一阶逼近子图(低频部分)继续进行第二层的二维小波变换(此时j=4,k=150,m=200,l=300,n=400),再次得到1个逼近子图
步骤3:忽略各阶细节子图的特征,仅对各阶逼近子图进行单支重构,得到重构逼近子图,如图3所示;Step 3: Ignore the characteristics of the detailed subgraphs of each order, and only perform single-branch reconstruction on the approximation subgraphs of each order to obtain the reconstructed approximation subgraph, as shown in Figure 3;
随着分解阶次的增加,小波子图逐渐变小。为获得与原始图像大小一致的子图,并保持各子图的频率分量,需进行单支重构。进行单支重构时,仅利用单个子图的小波系数进行信号重构,其它子图的小波系数置为零。由于逼近子图反映泡沫图像的轮廓,而细节子图反映泡沫图像的细节变化,因此,在获得泡沫尺寸特征时,可以忽略各阶细节子图,仅对逼近子图进行重构。将五个逼近重构子图分别记作Sv(v=1,2,…,5),它们代表了不同尺度下泡沫子图的轮廓部分,其系数矩阵可通过重构公式求得:As the decomposition order increases, the wavelet subgraph becomes smaller gradually. In order to obtain subimages with the same size as the original image and maintain the frequency components of each subimage, single-branch reconstruction is required. When performing single-branch reconstruction, only the wavelet coefficients of a single subgraph are used for signal reconstruction, and the wavelet coefficients of other subgraphs are set to zero. Since the approximation subgraph reflects the contour of the foam image, and the detail subgraph reflects the detail changes of the foam image, when obtaining the foam size feature, the detail subgraph of each order can be ignored, and only the approximation subgraph can be reconstructed. The five approximation reconstruction subgraphs are respectively denoted as Sv ( v=1, 2, ..., 5), which represent the contours of the foam subgraphs at different scales, and their coefficient matrix can be obtained by the reconstruction formula:
第二步,根据测不准原理和离散小波频域关系,推算出不同阶次子图的泡沫直径变化范围。In the second step, according to the uncertainty principle and the discrete wavelet frequency domain relationship, the range of foam diameter variation in subgraphs of different orders is deduced.
离散小波不同尺度信号之间的频域关系如图4所示。其中,fj、fj-1、fj-2代表不同尺度的逼近信号,dj-1、dj-2代表不同尺度的细节信号。The frequency domain relationship between discrete wavelet signals of different scales is shown in Figure 4. Among them, f j , f j-1 , f j-2 represent approximation signals at different scales, and d j-1 , d j-2 represent detail signals at different scales.
由测不准原理可知,小波多尺度分析的空间频率窗口面积具有不变性。因此,各重构子图的频率宽度分别对应不同空间宽度。根据图4和测不准原理可得五个逼近子图的空间频率关系,如图5所示。According to the uncertainty principle, the spatial frequency window area of wavelet multi-scale analysis is invariant. Therefore, the frequency widths of each reconstructed submap correspond to different spatial widths. According to Figure 4 and the uncertainty principle, the spatial frequency relationship of the five approximate subgraphs can be obtained, as shown in Figure 5.
第三步,利用最大类间方差法将各重构子图二值化,统计出各二值图像的泡沫总体面积。再通过计算求得泡沫等效尺寸特征。最后结合第二步推算出的泡沫直径变化范围,计算出等效泡沫个数,进而得到泡沫等效尺寸分布图。In the third step, each reconstructed subimage is binarized by using the method of maximum variance between classes, and the total foam area of each binary image is calculated. Then calculate the foam equivalent size characteristics. Finally, combined with the variation range of the foam diameter calculated in the second step, the number of equivalent foams is calculated, and then the foam equivalent size distribution diagram is obtained.
步骤1:根据最大类间方差法计算出各重构子图的最佳阈值,对其进行二值化,并统计出各二值图像的泡沫总体面积;Step 1: Calculate the optimal threshold value of each reconstructed subimage according to the maximum between-class variance method, perform binarization on it, and count the total area of the foam in each binary image;
设Sv有L个灰度级,灰度值是i的像素数为ni,则总的像素数是各灰度值出现的概率为显然pi≥0,设以灰度t为门限将图像分割成2个区域,灰度级为1~Lth的像素区域A,灰度级为Lth+1~L-1的像素区域B。A、B出现的概率分别为:Suppose S v has L gray levels, and the number of pixels whose gray value is i is n i , then the total number of pixels is The probability of occurrence of each gray value is Obviously p i ≥ 0, Assume that the image is divided into two areas with the gray level t as the threshold, the pixel area A with the gray level of 1~ Lth , and the pixel area B with the gray level of Lth +1~L-1. The probabilities of A and B appearing are:
A和B两类的灰度均值分别为:The gray mean values of the two classes A and B are:
从而可以得到图像总的灰度均值:In this way, the total gray value of the image can be obtained:
由此可以得到A、B两区域的类间方差:From this, the between-class variance of A and B regions can be obtained:
σ2=pA(ωA-ω0)2+pB(ωB-ω0)2 (7)σ 2 =p A (ω A -ω 0 ) 2 +p B (ω B -ω 0 ) 2 (7)
为得到最优分割阈值,以两类的类间方差作为判别准则,使σ2值最大的即为所求的最佳阈值:In order to obtain the optimal segmentation threshold, the variance between the two classes is used as the discriminant criterion, and the one with the largest σ2 value That is the optimal threshold value sought:
计算出各逼近重构子图的最佳阈值再根据分别对Sv进行二值化,得到五个二值图像。统计各二值图像的白色区域面积,从而得到泡沫总体面积,记为Av。Calculate the optimal threshold for each approximation reconstruction subgraph Then according to Binarize S v separately to obtain five binary images. The area of the white area of each binary image is counted to obtain the total area of the foam, which is denoted as A v .
步骤2:相邻二值图像泡沫总体面积相减,得到泡沫等效尺寸特征;Step 2: Subtract the total area of the foam in adjacent binary images to obtain the equivalent size feature of the foam;
将相邻二值图像的泡沫总体面积相减,得到泡沫子图等效面积,记为Eq。Eq即为通过多尺度二值化所求得的泡沫等效尺寸特征,q为等效尺寸特征的个数,q+1为分解阶次。由于分解阶次为5,则4个等效尺寸特征分别对应4个连续的泡沫直径变化范围:1~2,2~4,4~8,8~16。Subtract the total foam area of adjacent binary images to obtain the equivalent area of the foam sub-image, which is denoted as E q . E q is the foam equivalent size feature obtained by multi-scale binarization, q is the number of equivalent size features, and q+1 is the decomposition order. Since the decomposition order is 5, the 4 equivalent size features correspond to 4 continuous foam diameter ranges: 1~2, 2~4, 4~8, 8~16.
Eq=Aq+1-Aq,q=1,2,3,4 (9)E q =A q+1 -A q , q=1, 2, 3, 4 (9)
步骤3:根据推算出的泡沫直径变化范围,计算出等效泡沫个数,进而得到泡沫等效尺寸分布图;Step 3: Calculate the number of equivalent foams according to the calculated foam diameter variation range, and then obtain the foam equivalent size distribution diagram;
由于泡沫形状近似为圆,其面积可由π(Dq/2)2计算得出,取Dq为泡沫直径变化范围的平均值,分别为1.5,3,6,12,根据下式即可求出各阶次的等效泡沫个数。Since the shape of the foam is approximately a circle, its area can be calculated by π(D q /2) 2 , and D q is taken as the average value of the range of foam diameters, which are 1.5, 3, 6, and 12 respectively, and can be obtained according to the following formula Calculate the number of equivalent foams of each order.
最终得到当前工况泡沫图像的等效尺寸分布图。Finally, the equivalent size distribution diagram of the foam image under the current working condition is obtained.
第四步,将实时获得的泡沫等效尺寸分布图与基准分布图进行比较,确定当前泡沫图像对应的铜浮选现场泡沫工况。The fourth step is to compare the foam equivalent size distribution map obtained in real time with the reference distribution map to determine the foam working condition of the copper flotation site corresponding to the current foam image.
基准分布图的获取方法为:首先将采集的铜浮选现场历史泡沫视频进行人工分类,从而获得三种不同工况的多幅泡沫图像,然后经步骤一至三分别对这三种泡沫图像进行处理,获得多个泡沫等效尺寸分布图,最后对所得的多个泡沫等效尺寸分布图进行统计,得到基准分布图,如图6所示。The method of obtaining the benchmark distribution map is as follows: firstly, manually classify the collected historical froth videos of the copper flotation site, so as to obtain multiple froth images of three different working conditions, and then process the three froth images respectively through
由图6可知,正常泡沫大小尺寸分布比较均匀,主要集中在2~10;水化泡沫小泡沫居多,尺寸分布主要集中在1~4;粘性泡沫的尺寸分布与正常泡沫的相近,但其小泡沫比正常泡沫的多,大泡沫比正常泡沫的少。将实时获得的泡沫等效尺寸分布图与基准分布图进行比较,观察(如采用人工观察)此时的泡沫等效尺寸分布情况,从而便能对当前铜浮选现场泡沫工况进行识别。It can be seen from Figure 6 that the normal foam size distribution is relatively uniform, mainly concentrated in 2-10; the hydration foam is mostly small foam, and the size distribution is mainly concentrated in 1-4; the size distribution of viscous foam is similar to that of normal foam, but its small There is more foam than normal, and the large foam is less than normal. Compare the foam equivalent size distribution map obtained in real time with the reference distribution map, and observe (for example, use manual observation) the foam equivalent size distribution at this time, so that the current foam working conditions of the copper flotation site can be identified.
结果表明,本发明所提特征既包含了多尺度信息,又与泡沫表观形态直接相关,不同的泡沫图像对应不同的等效尺寸分布,通过比较分布图可以直接将不同工况的泡沫图像区分开来。该方法简单有效,对指导铜浮选现场泡沫工况识别有重要意义。The results show that the features proposed in the present invention not only contain multi-scale information, but also are directly related to the foam appearance. Different foam images correspond to different equivalent size distributions. By comparing the distribution maps, the foam images of different working conditions can be directly distinguished. open. This method is simple and effective, and it is of great significance to guide the identification of foam conditions in copper flotation.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310252751.8A CN103345636B (en) | 2013-06-24 | 2013-06-24 | Based on the copper flotation site bubble condition recognition methods of multi-scale wavelet binaryzation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310252751.8A CN103345636B (en) | 2013-06-24 | 2013-06-24 | Based on the copper flotation site bubble condition recognition methods of multi-scale wavelet binaryzation |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103345636A true CN103345636A (en) | 2013-10-09 |
CN103345636B CN103345636B (en) | 2016-04-13 |
Family
ID=49280431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310252751.8A Active CN103345636B (en) | 2013-06-24 | 2013-06-24 | Based on the copper flotation site bubble condition recognition methods of multi-scale wavelet binaryzation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103345636B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559496A (en) * | 2013-11-15 | 2014-02-05 | 中南大学 | Extraction method for multi-scale multi-direction textural features of froth images |
CN103632156A (en) * | 2013-12-23 | 2014-03-12 | 中南大学 | Multi-scale neighboring dependence matrix-based method for extracting froth image texture characteristics |
CN103971379A (en) * | 2014-05-30 | 2014-08-06 | 中南大学 | Single-vidicon equivalent binocular stereoscopic vision model based foam stereoscopic feature extraction method |
CN109371633A (en) * | 2018-11-29 | 2019-02-22 | 余姚市朗硕电器科技有限公司 | Foam spreads condition detecting system |
CN112054806A (en) * | 2020-09-15 | 2020-12-08 | 西南交通大学 | A Data Compression Method for Subway Plug-in Doors Based on Two-dimensional Adaptive Threshold Wavelet |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101334844A (en) * | 2008-07-18 | 2008-12-31 | 中南大学 | Key Feature Extraction Method for Flotation Froth Image Analysis |
US20100080439A1 (en) * | 2008-04-04 | 2010-04-01 | Lina Jamil Karam | Automatic Cell Migration and Proliferation Analysis |
CN102855492A (en) * | 2012-07-27 | 2013-01-02 | 中南大学 | Classification method based on mineral flotation foam image |
-
2013
- 2013-06-24 CN CN201310252751.8A patent/CN103345636B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100080439A1 (en) * | 2008-04-04 | 2010-04-01 | Lina Jamil Karam | Automatic Cell Migration and Proliferation Analysis |
CN101334844A (en) * | 2008-07-18 | 2008-12-31 | 中南大学 | Key Feature Extraction Method for Flotation Froth Image Analysis |
CN102855492A (en) * | 2012-07-27 | 2013-01-02 | 中南大学 | Classification method based on mineral flotation foam image |
Non-Patent Citations (2)
Title |
---|
LIU,J.J. ET AL.: "Flotation froth monitoring using multiresolutional multivariate image analysis", 《MINERALS ENGINEERING》 * |
郭建平: "基于向量形态学重构的铜浮选泡沫图像分割方法研究及应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103559496A (en) * | 2013-11-15 | 2014-02-05 | 中南大学 | Extraction method for multi-scale multi-direction textural features of froth images |
CN103559496B (en) * | 2013-11-15 | 2016-08-17 | 中南大学 | The extracting method of the multiple dimensioned multi-direction textural characteristics of froth images |
CN103632156A (en) * | 2013-12-23 | 2014-03-12 | 中南大学 | Multi-scale neighboring dependence matrix-based method for extracting froth image texture characteristics |
CN103632156B (en) * | 2013-12-23 | 2016-06-22 | 中南大学 | Froth images texture characteristic extracting method based on multiple dimensioned neighborhood correlation matrix |
CN103971379A (en) * | 2014-05-30 | 2014-08-06 | 中南大学 | Single-vidicon equivalent binocular stereoscopic vision model based foam stereoscopic feature extraction method |
CN103971379B (en) * | 2014-05-30 | 2017-07-28 | 中南大学 | Foam stereoscopic features extracting method based on the equivalent binocular stereo vision model of single camera |
CN109371633A (en) * | 2018-11-29 | 2019-02-22 | 余姚市朗硕电器科技有限公司 | Foam spreads condition detecting system |
CN112054806A (en) * | 2020-09-15 | 2020-12-08 | 西南交通大学 | A Data Compression Method for Subway Plug-in Doors Based on Two-dimensional Adaptive Threshold Wavelet |
CN112054806B (en) * | 2020-09-15 | 2023-07-25 | 西南交通大学 | Subway sliding plug door data compression method based on two-dimensional self-adaptive threshold wavelet |
Also Published As
Publication number | Publication date |
---|---|
CN103345636B (en) | 2016-04-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107229917B (en) | A common salient target detection method for multiple remote sensing images based on iterative clustering | |
CN104063686B (en) | Crop leaf diseases image interactive diagnostic system and method | |
CN110648342B (en) | A foam infrared image segmentation method based on NSST saliency detection and graph cut | |
CN108053417A (en) | A kind of lung segmenting device of the 3DU-Net networks based on mixing coarse segmentation feature | |
CN103345636B (en) | Based on the copper flotation site bubble condition recognition methods of multi-scale wavelet binaryzation | |
CN104933709A (en) | Automatic random-walk CT lung parenchyma image segmentation method based on prior information | |
CN103208097B (en) | Filtering method is worked in coordination with in the principal component analysis of the multi-direction morphosis grouping of image | |
CN103517065B (en) | Method for objectively evaluating quality of degraded reference three-dimensional picture | |
CN101527043B (en) | Video picture segmentation method based on moving target outline information | |
CN105335975B (en) | Polarization SAR image segmentation method based on low-rank decomposition and statistics with histogram | |
CN101587189B (en) | Texture elementary feature extraction method for synthetizing aperture radar images | |
CN106203444A (en) | Classification of Polarimetric SAR Image method based on band ripple Yu convolutional neural networks | |
CN104636721A (en) | Palm print identification method based on contour and edge texture feature fusion | |
CN104299232A (en) | SAR image segmentation method based on self-adaptive window directionlet domain and improved FCM | |
Valliammal et al. | Leaf image segmentation based on the combination of wavelet transform and k means clustering | |
CN109429051A (en) | Based on multiple view feature learning without reference stereoscopic video quality method for objectively evaluating | |
CN103632156B (en) | Froth images texture characteristic extracting method based on multiple dimensioned neighborhood correlation matrix | |
CN107330873B (en) | Stereo image quality objective evaluation method based on multi-scale binocular fusion and local feature extraction | |
CN101419669A (en) | Three-dimensional human ear extracting method based on profile wave convert | |
CN104144339B (en) | A kind of matter based on Human Perception is fallen with reference to objective evaluation method for quality of stereo images | |
Gambino et al. | Automatic skull stripping in MRI based on morphological filters and fuzzy c-means segmentation | |
CN103871060B (en) | Image partition method based on steady direction wave zone probability graph model | |
CN103914840B (en) | A kind of human body contour outline extraction method for non-simple background | |
CN103108209B (en) | Stereo image objective quality evaluation method based on integration of visual threshold value and passage | |
CN104331864B (en) | Based on the processing of the breast image of non-down sampling contourlet and the significant model of vision |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |