[go: up one dir, main page]

CN101976441A - Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector - Google Patents

Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector Download PDF

Info

Publication number
CN101976441A
CN101976441A CN 201010536900 CN201010536900A CN101976441A CN 101976441 A CN101976441 A CN 101976441A CN 201010536900 CN201010536900 CN 201010536900 CN 201010536900 A CN201010536900 A CN 201010536900A CN 101976441 A CN101976441 A CN 101976441A
Authority
CN
China
Prior art keywords
fractal
image
texture
fabric
sobel operator
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
Application number
CN 201010536900
Other languages
Chinese (zh)
Other versions
CN101976441B (en
Inventor
步红刚
汪军
黄秀宝
周建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Donghua University
Original Assignee
Donghua University
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Donghua University filed Critical Donghua University
Priority to CN201010536900XA priority Critical patent/CN101976441B/en
Publication of CN101976441A publication Critical patent/CN101976441A/en
Application granted granted Critical
Publication of CN101976441B publication Critical patent/CN101976441B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

本发明涉及一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法。首先在对原织物图像分别进行水平和垂直Sobel算子滤波处理的基础上,从中各自计算方式一致的一组灰度统计量作为概貌特征;同时依据遍历法原理计算原图像中每一个包含一个横向基本循环周期或纵向基本循环周期的子窗口的分形维数,最后从中选取两个反映横向细节信息的分形维数极值和两个反映纵向细节信息的分形维数极值作为表征织物纹理的细节特征;将上述两个Sobel算子滤波概貌特征与四个分形细节特征组成混合特征向量。这种混合特征向量各特征间具有高度的互补性,兼顾纹理的概貌信息和细节信息,也兼顾纹理的横向信息和纵向信息,能够全面和细致地刻画织物纹理特点。

Figure 201010536900

The invention relates to a method for extracting mixed feature vectors of Sobel operator filtering overview and fractal details for characterizing fabric texture. First, on the basis of horizontal and vertical Sobel operator filtering processing on the original fabric image respectively, a group of gray statistics with the same calculation method are used as the profile features; at the same time, each of the original images contains a horizontal The fractal dimension of the sub-window of the basic cycle or the vertical basic cycle, and finally select two fractal dimension extremes reflecting the horizontal detail information and two fractal dimension extremes reflecting the vertical detail information as the details of the fabric texture Features; the above two Sobel operator filter overview features and four fractal detail features form a mixed feature vector. The features of this mixed feature vector are highly complementary, taking into account the general information and detail information of the texture, as well as the horizontal and vertical information of the texture, and can comprehensively and meticulously describe the characteristics of the fabric texture.

Figure 201010536900

Description

一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法 A mixed feature vector extraction method of Sobel operator filtering overview and fractal details for characterizing fabric texture

技术领域technical field

本发明属于数字图像处理和模式识别领域,特别涉及一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法。The invention belongs to the field of digital image processing and pattern recognition, in particular to a method for extracting feature vectors mixed with Sobel operator filtering overview and fractal details for characterizing fabric texture.

背景技术Background technique

借助织物纹理表征技术能够实现织物纹理参数估计、纹理分类、织物外观评价、瑕疵检测等等目的。任何织物纹理都包含两方面的重要信息,即概貌信息和细节信息。概貌信息为人眼或机器视觉提供总体的粗略的结构和灰度印象,而细节信息则提供局部的精细的结构和灰度印象。因此,要全面和细致地表征纹理结构,最大限度地反映纹理特点,在特征提取时就必须兼顾纹理的概貌和细节信息。为了便于表述,本申请拟将那些主要反映概貌信息的特征称为概貌特征,而将那些主要反映细节信息的特征称为细节特征。显然,概貌特征和细节特征各有侧重,具有极大的互补性。本发明旨在讨论基于Sobel算子滤波概貌特征和分形细节特征的织物纹理表征方法。With the help of fabric texture characterization technology, the purposes of fabric texture parameter estimation, texture classification, fabric appearance evaluation, and defect detection can be realized. Any fabric texture contains two important information, namely general information and detail information. The overview information provides the overall rough structure and grayscale impression for human eyes or machine vision, while the detail information provides the local fine structure and grayscale impression. Therefore, in order to fully and meticulously characterize the texture structure and reflect the texture characteristics to the maximum extent, both the general appearance and the detail information of the texture must be taken into account when extracting features. For ease of expression, the present application intends to refer to those features that mainly reflect general information as general features, and those that mainly reflect detailed information as detailed features. Obviously, the overview feature and the detail feature have their own emphases and are extremely complementary. The present invention aims at discussing a fabric texture characterization method based on Sobel operator filtering profile features and fractal detail features.

较之欧氏几何,分形几何在描述或生成具有自相似性的自然事物或类自然事物时能够提供更好的方法,因而被广泛用在模式识别、图像的模拟和仿真等等诸多领域。自相似性是分形理论的中心概念之一,它与维数的概念密切相关。分形几何描述的对象具有统计意义上的自相似,自相似性用分形维来表征分形维是用分形理论进行图像分析时最常使用的特征参数之一。分形特征特别是分形维数能够较好地刻画纹理粗糙度和复杂度,因而在纹理分类、识别等实践中作为度量特征是合理的。其中盒维数由于概念简单、计算简便而成为使用最普遍的一种分形维数。Compared with Euclidean geometry, fractal geometry can provide a better method for describing or generating natural or natural-like things with self-similarity, so it is widely used in many fields such as pattern recognition, image simulation and simulation. Self-similarity is one of the central concepts of fractal theory, which is closely related to the concept of dimension. The objects described by fractal geometry have statistical self-similarity, and fractal dimension is used to characterize self-similarity. Fractal dimension is one of the most commonly used characteristic parameters in image analysis with fractal theory. Fractal features, especially fractal dimension, can better describe texture roughness and complexity, so it is reasonable to use it as a measurement feature in the practice of texture classification and recognition. Among them, the box dimension has become the most commonly used fractal dimension because of its simple concept and easy calculation.

为便于说明发明要点,有必要对盒维数以及Sobel算子滤波的基本原理作简单介绍。In order to illustrate the key points of the invention, it is necessary to briefly introduce the basic principles of box dimension and Sobel operator filtering.

Figure BSA00000338879500011
为任意非空有界集,用N(δ,F)表示覆盖集F所需直径最大为δ的的集的最少数目,则F的盒维定义为set up
Figure BSA00000338879500011
For any non-empty bounded set, use N(δ, F) to represent the minimum number of sets with the largest diameter δ required to cover the set F, then the box dimension of F is defined as

DD. BB (( Ff )) == limlim δδ →&Right Arrow; 00 loglog NN (( δδ ,, Ff )) -- loglog δδ

注意,定义中所用的δ-覆盖仍是一个一般的集类,在本专利中集F特指为织物图像向纵、横向投影时,通过各行、各列像素灰度累加并取均值所得的图像灰度一维时间序列,也即一条表示图像各行各列像素灰度均值变化的曲线,N(δ,F)表示覆盖F所需的边长为δ的最少方格数,简记为N(δ)。DB(F)简记为D。Note that the δ-coverage used in the definition is still a general set class. In this patent, the set F refers to the image obtained by accumulating the gray levels of pixels in each row and column and taking the average value when the fabric image is projected vertically and horizontally. Grayscale one-dimensional time series, that is, a curve representing the change in the average grayscale value of pixels in each row and column of the image, N(δ, F) represents the minimum number of squares with side length δ required to cover F, abbreviated as N( δ). D B (F) is abbreviated as D.

实际估算一个时间序列的计盒维时,由于该序列为一条曲线,横坐标为序列中各点的位置,纵坐标为各点对应的序列值,需要用尺寸为δ×δ的方格去完全覆盖该曲线并统计N(δ)。从盒维数的定义可知,logN(δ)∞Dlog(1/δ),这表明,若干点对(log(1/δ),logN(δ))在δ→0时的渐近线是直线,其斜率即为D。改变δ大小从而可以得到多个上述点对,然后通过最小二乘法拟合出相应直线。该直线的斜率即为所求的盒维数。When actually estimating the box dimension of a time series, since the sequence is a curve, the abscissa is the position of each point in the sequence, and the ordinate is the sequence value corresponding to each point, it is necessary to use a grid with a size of δ×δ to complete the calculation. Overlay the curve and count N(δ). From the definition of the box dimension, logN(δ)∞Dlog(1/δ), which shows that the asymptotes of several point pairs (log(1/δ), logN(δ)) when δ→0 are straight lines , whose slope is D. By changing the size of δ, multiple above-mentioned point pairs can be obtained, and then the corresponding straight line is fitted by the least square method. The slope of the line is the desired box dimension.

考虑到机织物是由经纬纱相互垂直交织而成,其图像是一种典型的纹理图像,因此可用分形特征来表征织物纹理。Conci等人(1998)采用差分计盒法提取了织物纹理的分形维及其标准差作为特征参数用来表征织物纹理并检测织物疵点。徐增波等人(2000)在织物纹理图像进行Wold模型分析的基础上,以求取分形维过程中的的整个分形特征曲线作为表征织物纹理的特征,进行了织物疵点检测。Wen等人(2002)采用基于分形布朗运动的傅立叶频域最大似然估计算子来估计织物图像的Hurst系数这一分形参数,以此作为表征织物纹理的特征参数来检测疵点。杨艳等人(2007)从绉织物图像中提取了一个全局分形维特征来实现对织物绉效应的客观评价。步红刚等人(2007)为了克服单一分形特征的局限性,提出了一种多分形特征向量提取方法,该方法在疵点检测效果上较以往相关的研究有了大幅度的改善,但由于所提取的多个分形特征向量均是反映全局信息的概貌特征,因而不适于检测很多局部疵点。在“基于矩和分形的纹理分类方法”的专利中(2006),研究者首先计算图像的二阶矩,产生矩特征图像,再对原图像块和矩特征图像估计其分形维数,最后将原图像块和六个矩特征图像的分形维数形成特征向量,作为支持向量机的输入进行织物纹理分类。Considering that the woven fabric is made of warp and weft yarns interwoven vertically, its image is a typical texture image, so the fractal feature can be used to characterize the fabric texture. Conci et al. (1998) extracted the fractal dimension of fabric texture and its standard deviation as characteristic parameters to characterize fabric texture and detect fabric defects by using the differential box method. Xu Zengbo et al. (2000) based on the Wold model analysis of the fabric texture image, used the entire fractal characteristic curve in the process of obtaining the fractal dimension as the feature to characterize the fabric texture, and carried out fabric defect detection. Wen et al. (2002) used the Fourier frequency domain maximum likelihood estimation operator based on fractal Brownian motion to estimate the fractal parameter of the fabric image, the Hurst coefficient, and used it as a characteristic parameter to characterize the fabric texture to detect defects. Yang Yan et al. (2007) extracted a global fractal dimension feature from crepe fabric images to achieve an objective evaluation of fabric crepe effects. Bu Honggang et al. (2007) proposed a multi-fractal feature vector extraction method in order to overcome the limitations of single fractal features. This method has greatly improved the defect detection effect compared with previous related studies. The multiple extracted fractal feature vectors are overview features that reflect global information, so they are not suitable for detecting many local defects. In the patent "Texture Classification Method Based on Moments and Fractals" (2006), the researchers first calculate the second-order moment of the image to generate the moment feature image, then estimate the fractal dimension of the original image block and the moment feature image, and finally The fractal dimensions of the original image block and the six moment feature images form a feature vector, which is used as the input of the support vector machine for fabric texture classification.

Sobel算子是图像处理中的算子之一,主要用作边缘检测。在技术上,它是一离散性差分算子,用来运算图像亮度函数的梯度之近似值。在图像的任何一点使用此算子,将会产生对应的梯度矢量。Sobel算子有两个,一个检测水平边缘,另一个检测垂直边缘。Sobel算子在图像空间利用两个3×3的方向模板或者说卷积核与图像中每个点进行邻域卷积来完成边缘检测,这两个方向模板其中一个通过近似垂直方向梯度而增强图像的水平方向边缘,另一个则通过近似水平方向梯度而增强图像的垂直方向边缘。Sobel水平和垂直边缘增强模板分别为Sobel operator is one of the operators in image processing, mainly used for edge detection. Technically, it is a discrete difference operator, which is used to approximate the gradient of the image brightness function. Using this operator at any point in the image will generate a corresponding gradient vector. There are two Sobel operators, one to detect horizontal edges and the other to detect vertical edges. The Sobel operator uses two 3×3 direction templates or convolution kernels to perform neighborhood convolution with each point in the image in the image space to complete edge detection. One of the two direction templates is enhanced by approximating the vertical direction gradient. The horizontal edge of the image, and the other enhances the vertical edge of the image by approximating the horizontal gradient. Sobel horizontal and vertical edge enhancement templates are

TT xx == 11 22 11 00 00 00 -- 11 -- 22 -- 11

T y = 1 0 - 1 2 0 - 2 1 0 - 1 and T the y = 1 0 - 1 2 0 - 2 1 0 - 1

在织物纹理的Sobel算子表征领域,尚未见到有关的国内文章或专利报道。为了检测织物缺纬瑕疵,美国的Jasper和Potapalli采用Sobel水平滤波算子对织物图像进行了滤波处理,但仅仅提取了Sobel滤波后的边缘图像剖面图,未进行更深入的纹理表征分析,且只涉及一个Sobel滤波算子。为了检测织物瑕疵,Lane在其申请的美国国家专利中提出了一种采用Sobel算子和数学形态学相结合的纹理表征方法,其方法为,首先对原图像进行Sobel水平和垂直滤波,然后对两个滤波图像进行融合,然后将该图像二值化处理,接着进行二值化图像的数学形态学处理,最后以边界点作为表征纹理的特征。该报道没有考虑以纹理周期基本循环长度作为特征提取的依据,没有说明二值化阈值的选取方法,所提取的单一特征也仅仅涉及边界点像素数量,并且未明确定义边界点的含义,未考虑边界点在图像中的分布情况。In the field of Sobel operator characterization of fabric texture, no relevant domestic articles or patent reports have been seen. In order to detect fabric weft defects, Jasper and Potapalli in the United States used the Sobel horizontal filter operator to filter the fabric image, but only extracted the edge image profile after Sobel filtering, without further texture representation analysis, and only A Sobel filter operator is involved. In order to detect fabric defects, Lane proposed a texture representation method that combines Sobel operator and mathematical morphology in his national patent application. The method is to first perform Sobel horizontal and vertical filtering on the original image, and then The two filtered images are fused, and then the image is binarized, followed by the mathematical morphology of the binarized image, and finally the boundary points are used as the characteristics of the texture. The report did not consider the basic cycle length of the texture period as the basis for feature extraction, did not explain the selection method of the binarization threshold, and the single feature extracted only involved the number of border point pixels, and did not clearly define the meaning of the border points The distribution of boundary points in the image.

上述已有文献或专利涉及的织物纹理表征方法对织物纹理信息的表征都是局限在全局特征的提取,未能兼顾织物纹理的概貌和细节信息,因而不能全面和细致地表征织物纹理的本质特点。此外,上述Sobel算子纹理表征方法主要特点在于,纹理图像经Sobel算子滤波处理后,必须选取一定的阈值以实现图像的二值化。这样有两个主要缺点:一是针对不同纹理选取最优阈值是一件困难的事情;二是图像经二值化处理后,大量的灰度过渡信息被损失掉,只剩下全黑和全白的二值信息,而待处理的纹理图像通常具有256个灰度级。因此,上述处理方法较为繁琐且在此基础上提取的特征不能实现对纹理更充分更贴切的表征。而上述文献或专利在织物纹理的分形特征表征中,存在如下缺点:1、特征直接在二维图像基础上提取,计算量大;2、所提取的分形特征仅能刻画纹理的全局信息,不能细致深刻地表征织物纹理的细节信息;3、特征提取时未充分利用织物纹理固有的经纬取向特点以提高特征的稳定性;4、特征的提取未充分利用织物经纬纱固有的规则循环的特点以提高特征的准确性和稳定性。The fabric texture characterization methods involved in the above-mentioned existing literature or patents are limited to the extraction of global features for the characterization of fabric texture information, and fail to take into account both the general appearance and detailed information of fabric texture, so they cannot comprehensively and meticulously characterize the essential characteristics of fabric texture . In addition, the main feature of the above-mentioned Sobel operator texture representation method is that after the texture image is filtered by the Sobel operator, a certain threshold must be selected to realize the binarization of the image. This has two main disadvantages: one is that it is difficult to select the optimal threshold for different textures; the other is that after the image is binarized, a large amount of grayscale transition information is lost, leaving only black and full White binary information, and the texture image to be processed usually has 256 gray levels. Therefore, the above-mentioned processing method is relatively cumbersome and the features extracted on this basis cannot achieve a more adequate and appropriate representation of the texture. However, the above-mentioned documents or patents have the following disadvantages in the fractal feature representation of fabric texture: 1. The feature is directly extracted on the basis of a two-dimensional image, which requires a large amount of calculation; 2. The extracted fractal feature can only describe the global information of the texture, and cannot The detailed information of the fabric texture is meticulously and deeply represented; 3. The inherent warp and weft orientation characteristics of the fabric texture are not fully utilized in feature extraction to improve the stability of the feature; 4. The feature extraction does not fully utilize the inherent regular cycle characteristics of the fabric warp and weft yarns. Improve feature accuracy and stability.

发明内容Contents of the invention

本发明属于数字图像处理和模式识别领域,特别涉及一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法。首先在对原织物图像分别进行水平和垂直Sobel算子滤波处理的基础上,从两种相应滤波图像中各自计算方式一致的一组灰度统计量作为概貌特征;同时依据遍历法原理计算原图像中每一个包含一个横向基本循环周期的子窗口的分形维数和每一个包含一个纵向基本循环周期的子窗口的分形维数,最后从中选取两个反映横向细节信息的分形维数极值和两个反映纵向细节信息的分形维数极值作为表征织物纹理的细节特征;将上述两个Sobel算子滤波概貌特征与四个分形细节特征组成混合特征向量。这种混合特征向量各特征间具有高度的互补性,兼顾纹理的概貌信息和细节信息,也兼顾纹理的横向信息和纵向信息,能够全面和细致地刻画织物纹理特点。The invention belongs to the field of digital image processing and pattern recognition, in particular to a method for extracting feature vectors mixed with Sobel operator filtering overview and fractal details for characterizing fabric texture. Firstly, on the basis of horizontal and vertical Sobel filter processing on the original fabric image respectively, a set of gray-scale statistics with the same calculation method from the two corresponding filtered images is used as the profile feature; at the same time, the original image is calculated according to the principle of traversal method The fractal dimension of each sub-window containing a horizontal basic cycle period and the fractal dimension of each sub-window containing a vertical basic cycle cycle, and finally select two extreme values of fractal dimension and two A fractal dimension extremum reflecting the vertical detail information is used as the detail feature to characterize the fabric texture; the above two Sobel operator filtering profile features and four fractal detail features form a mixed feature vector. The features of this mixed feature vector are highly complementary, taking into account the general information and detail information of the texture, as well as the horizontal and vertical information of the texture, and can comprehensively and meticulously describe the characteristics of the fabric texture.

本发明的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,在概貌特征提取方面,织物原图像首先同步分别经Sobel算子水平滤波和垂直滤波处理,得到两幅对应的滤波图像,然后分别从中提取计算方式一致的各一个灰度统计量组成表征织物纹理概貌信息的特征向量,一组共两个;在细节特征提取方面,首先采用一维快速傅里叶变换求出织物纹理图像的基本横向和纵向循环周期大小,然后依据遍历法原理计算图像中每一个包含一个横向基本循环周期的子窗口的分形维数和每一个包含一个纵向基本循环周期的子窗口的分形维数,最后从中选取两个反映横向细节信息的分形维数极值即横向最大分形维数和横向最小分形维数,和两个反映纵向细节信息的分形维数极值即纵向最大分形维数和纵向最小分形维数,作为表征织物纹理的细节特征。两个Sobel算子滤波概貌特征和四个分形细节特征共同组成本发明的混合特征向量。A Sobel operator filtering general appearance and fractal details mixed feature vector extraction method for characterizing fabric texture of the present invention, in terms of general appearance feature extraction, the original fabric image is first synchronously processed by Sobel operator horizontal filtering and vertical filtering respectively to obtain two A corresponding filter image, and then extract a gray-level statistic with the same calculation method to form a feature vector representing the general appearance information of the fabric texture, a group of two; in terms of detail feature extraction, first use one-dimensional fast Fourier Transform to obtain the basic horizontal and vertical cycle size of the fabric texture image, and then calculate the fractal dimension of each sub-window containing a horizontal basic cycle in the image and each sub-window containing a vertical basic cycle in the image according to the principle of traversal method Finally, select two extreme values of fractal dimension that reflect horizontal detail information, that is, horizontal maximum fractal dimension and horizontal minimum fractal dimension, and two extreme values of fractal dimension that reflect vertical detail information, that is, vertical maximum fractal dimension Dimension and longitudinal minimum fractal dimension, as the detailed features of fabric texture. Two Sobel operator filter profile features and four fractal detail features together form the mixed feature vector of the present invention.

其中所述的包含一个横向基本循环周期的子窗口是以一个横向基本循环周期为长和织物纹理图像的宽为宽的矩形窗口,所述的每一个横向基本循环周期的子窗口的分形维数是在该子窗口中的图像像素灰度值沿横向累加而成的相应一维时间序列基础上计算得到的。Wherein said sub-window comprising a horizontal basic cycle is a rectangular window whose length is long and the width of the fabric texture image is wide, and the fractal dimension of the sub-window of each horizontal basic cycle is It is calculated on the basis of the corresponding one-dimensional time series obtained by accumulating the gray value of the image pixel in the sub-window along the horizontal direction.

所述的包含一个纵向基本循环周期的子窗口是以一个织物纹理图像的长为长和纵向基本循环周期为宽的矩形窗口,所述的每一个纵向基本循环周期的子窗口的分形维数是在该子窗口中的图像像素灰度值沿纵向累加而成的相应一维时间序列基础上计算得到的。The described sub-window comprising a vertical basic cycle is a rectangular window whose length is long and the vertical basic cycle is wide, and the fractal dimension of the sub-window of each vertical basic cycle is It is calculated on the basis of the corresponding one-dimensional time series obtained by accumulating the gray value of the image pixel in the sub-window along the longitudinal direction.

所述的用于表征织物纹理的由Sobel算子滤波概貌特征和分形细节特征组成的混合特征向量的提取过程如下:The extraction process of the mixed feature vector composed of Sobel operator filter overview feature and fractal detail feature for characterizing fabric texture is as follows:

首先采集数字化织物纹理图像,记为W,W为矩形,其尺寸长×宽为L1×L2,即横向和纵向长度分别为L1和L2,而其沿横向的基本周期即列周期为P1个像素,沿纵向的基本周期即行周期为P2,行周期和列周期均指取整后的像素数,P1通过计算W的任一行图像像素灰度值集合的基本循环周期得到,P2通过计算W的任一列图像像素灰度值集合的基本循环周期得到。First collect the digitized fabric texture image, denoted as W, W is a rectangle, its size length × width is L 1 ×L 2 , that is, the horizontal and vertical lengths are L 1 and L 2 respectively, and its basic cycle along the horizontal direction is the column cycle is P 1 pixels, and the basic cycle along the vertical direction, that is, the row cycle is P 2 . Both the row cycle and the column cycle refer to the number of pixels after rounding, and P 1 is obtained by calculating the basic cycle cycle of any row image pixel gray value set of W , P 2 is obtained by calculating the basic cycle period of any set of image pixel gray values of W.

对原图像同步分别实施索贝尔算子水平滤波和垂直滤波处理,记经索贝尔算子水平滤波后的图像为Wh,经索贝尔算子垂直滤波后的图像为WvThe original image is synchronously implemented with Sobel operator horizontal filtering and vertical filtering respectively, record the image after horizontal filtering of Sobel operator as W h , and the image after vertical filtering of Sobel operator as W v ;

选择一种灰度统计量,然后直接计算出Wh的该灰度统计量,作为水平边缘纹理概貌灰度统计量特征,记为ShSelect a grayscale statistic, and then directly calculate the grayscale statistic of W h , as the grayscale statistic feature of the horizontal edge texture profile, denoted as Sh ;

选择与计算Wh时一致的灰度统计量,直接计算出Wv的灰度统计量,作为垂直边缘纹理概貌灰度统计量特征,记为SvSelect the grayscale statistics consistent with the calculation of Wh , and directly calculate the grayscale statistics of Wv , as the grayscale statistics feature of the vertical edge texture profile, denoted as Sv ;

在织物纹理图像W中,选取一个横向基本循环周期P1为长和织物纹理图像的宽L2为宽的矩形窗口作为包含一个横向基本循环周期的子窗口,记为W1;选取一个织物纹理图像的长L1为长、纵向基本循环周期P2为宽的矩形窗口作为包含一个纵向基本循环周期的子窗口,记为W2In the fabric texture image W, select a horizontal basic cycle period P 1 as long and the width L 2 of the fabric texture image as a wide rectangular window as a sub-window containing a horizontal basic cycle period, denoted as W 1 ; choose a fabric texture The length L of the image is long, and the longitudinal basic cycle period P2 is a wide rectangular window as a sub-window containing a vertical basic cycle period, denoted as W 2 ;

对于某一W1,计算其沿行方向的图像像素灰度投影,即将该子窗口各行的图像像素灰度值沿横向叠加,得到一个一维时间序列,从该时间序列中可计算得到一个分形维数,然后将W1以固定步长水平地滑移以遍历整个W,共有L1-P1+1个W1,从而可相应求得L1-P1+1个分形维数,分别记其中的最小者和最大者为E1和E2,即为横向最小分形维数和横向最大分形维数,此两者反映纹理的横向极端细节信息;For a certain W 1 , calculate its image pixel grayscale projection along the row direction, that is, superimpose the image pixel grayscale values of each row of the sub-window along the horizontal direction to obtain a one-dimensional time series, from which a fractal can be calculated dimension, and then slide W 1 horizontally with a fixed step to traverse the entire W, there are a total of L 1 -P 1 +1 W 1 , so that L 1 -P 1 +1 fractal dimensions can be obtained accordingly, respectively Note that the smallest and largest ones are E 1 and E 2 , which are the minimum horizontal fractal dimension and the maximum horizontal fractal dimension, which reflect the horizontal extreme detail information of the texture;

对于某一W2,计算其沿列方向的图像像素灰度值投影,即将该子窗口各列的图像像素灰度值沿纵向叠加,得到一个一维时间序列,从该时间序列中可计算得到一个分形维数,然后将W2以固定步长垂直地滑移以遍历整个W,共有L2-P2+1个W2,从而可相应求得L2-P2+1个分形维数,分别记其中的最小者和最大者为E3和E4,即为纵向最小分形维数和纵向最大分形维数,此两者反映纹理的纵向极端细节信息;For a certain W 2 , calculate its image pixel gray value projection along the column direction, that is, superimpose the image pixel gray value of each column of the sub-window along the vertical direction to obtain a one-dimensional time series, from which it can be calculated A fractal dimension, and then slide W 2 vertically with a fixed step to traverse the entire W, there are a total of L 2 -P 2 +1 W 2 , so that L 2 -P 2 +1 fractal dimensions can be obtained accordingly , record the minimum and maximum among them as E 3 and E 4 , which are the minimum vertical fractal dimension and the maximum vertical fractal dimension, which reflect the vertical extreme detail information of the texture;

最终得到表征织物纹理的混合特征向量[ShSvE1E2E3E4]。Finally, the mixed feature vector [S h S v E 1 E 2 E 3 E 4 ] representing the fabric texture is obtained.

其中,如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的织物为机织物。Wherein, the above-mentioned method for extracting feature vectors by combining Sobel filter overview and fractal details for characterizing fabric texture, the fabric is woven fabric.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述织物的图像的横向与纬纱方向一致,所述织物的图像的纵向与经纱方向一致。As described above, a Sobel operator filter overview and fractal details mixed feature vector extraction method for characterizing fabric texture, the horizontal direction of the image of the fabric is consistent with the weft direction, and the vertical direction of the image of the fabric is consistent with the warp direction.

如上所述的Sobel算子滤波概貌特征,所述的灰度统计量可以为仙农熵、灰度均值或灰度标准差。As described above, the Sobel operator filters the profile feature, and the gray level statistic can be Shannon entropy, gray level mean or gray level standard deviation.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的分形维数是指盒维数,其具体计算方法参见背景技术中的有关介绍。As mentioned above, a method for extracting feature vectors using Sobel operator filtering overview and fractal details for characterizing fabric texture, the fractal dimension refers to the box dimension, and its specific calculation method refers to the relevant introduction in the background technology.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的盒维数估算时所用的δ尺寸序列为2~6像素。According to the above-mentioned method for extracting feature vectors by combining Sobel filter overview and fractal details for characterizing fabric texture, the δ size sequence used for box dimension estimation is 2 to 6 pixels.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的固定步长指1~3个像素。As mentioned above, a method for extracting feature vectors by combining Sobel filter overview and fractal details for characterizing fabric texture, the fixed step size refers to 1 to 3 pixels.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的矩形子窗口W1每次的水平滑移固定步长与W2每次的垂直滑移固定步长不必相同。As mentioned above, a Sobel operator filter overview and fractal details mixed feature vector extraction method for characterizing fabric texture , the horizontal sliding fixed step of the rectangular sub-window W 1 each time is the same as the vertical The sliding fixed steps do not have to be the same.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,其中上述基本循环周期P1和P2的计算借助一维快速傅里叶变换(FFT)实现。对于N点序列x(n),其FFT变换对定义为A kind of Sobel operator filtering overview and fractal details mixed feature vector extraction method for characterizing fabric texture as above, wherein the calculation of above-mentioned basic cycle period P 1 and P 2 is realized by means of one-dimensional fast Fourier transform (FFT) . For an N-point sequence x(n), its FFT transform pair is defined as

Xx (( kk )) == ΣΣ nno == 00 NN -- 11 xx (( nno )) ωω NN nknk ,, kk == 0,10,1 ,, LL ,, NN -- 11

xx (( nno )) == 11 NN ΣΣ kk == 00 NN -- 11 Xx (( kk )) ωω NN -- nknk ,, nno == 0,10,1 ,, LL ,, NN -- 11

其中,

Figure BSA00000338879500063
称为旋转因子。in,
Figure BSA00000338879500063
called the twiddle factor.

实数序列x(n)经FFT处理后得到的X(k)序列为复数序列,该复数序列的第一个值对应频率为0,没有实际意义,直接将其去除,剩下的序列为一个结构对称序列,进行谱分析时只需取其前N/2的数据即可。X(k)的模称为幅度,幅度的平方称为功率,记为W。最大功率所对应的频率为序列x(n)的主频,主频的倒数即为该序列的基本周期。设序列x(n)的采样频率为fs(Hz),则第k点即X(k)所对应的实际频率

Figure BSA00000338879500064
一般情况下,规定fs=1,因此,从而第k点对应的实际周期
Figure BSA00000338879500066
The X(k) sequence obtained after the real number sequence x(n) is processed by FFT is a complex number sequence. The first value of the complex number sequence corresponds to a frequency of 0, which has no practical meaning. It is directly removed, and the remaining sequence is a structure For a symmetrical sequence, you only need to take the first N/2 data for spectrum analysis. The modulus of X(k) is called the magnitude, and the square of the magnitude is called the power, denoted as W. The frequency corresponding to the maximum power is the main frequency of the sequence x(n), and the reciprocal of the main frequency is the basic period of the sequence. Suppose the sampling frequency of the sequence x(n) is f s (Hz), then the kth point is the actual frequency corresponding to X(k)
Figure BSA00000338879500064
Generally, it is stipulated that f s =1, therefore, Thus the actual period corresponding to the kth point
Figure BSA00000338879500066

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的灰度统计量首选仙农熵。仙农熵是信号的不确定性程度的一个重要度量。对图像而言,其信息量越大,灰度分布越规则,相应的仙农熵就越小,反之仙农熵就越大。仙农熵定义如下:As mentioned above, a Sobel operator filter general appearance and fractal details mixed feature vector extraction method for characterizing fabric texture, Shannon entropy is the first choice for the gray level statistics. Shannon entropy is an important measure of the degree of uncertainty of a signal. For an image, the larger the amount of information and the more regular the gray distribution, the smaller the corresponding Shannon entropy, and vice versa. Shannon entropy is defined as follows:

Xx (( sthe s )) == -- ΣΣ ii sthe s ii 22 loglog 22 (( sthe s ii 22 ))

其中按惯例约定0log2(0)=0,si为图像像素灰度值。可以直接使用其它种类的统计量取代上述仙农熵统计量。It is conventionally agreed that 0log 2 (0)=0, and si is the gray value of the image pixel. Instead of the Shannon entropy statistic described above, other kinds of statistic can be used directly.

有益效果Beneficial effect

本发明的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法所提取的用于表征织物纹理的混合特征向量:A mixed feature vector for characterizing fabric texture extracted by a Sobel operator filter overview and fractal details mixed feature vector extraction method for characterizing fabric texture:

(1)各特征间具有高度的互补性,兼顾纹理的概貌信息和细节信息,也兼顾纹理的横向信息和纵向信息,能够全面和细致地刻画织物纹理特点;(1) Each feature has a high degree of complementarity, taking into account the general information and detail information of the texture, as well as the horizontal and vertical information of the texture, and can comprehensively and meticulously describe the characteristics of the fabric texture;

(2)除概貌信息与细节信息之间的互补外,分形特征与Sobel算子滤波特征本身属两种不同的纹理表征方法,各有侧重,因而它们之间还存在因方法差异而导致的特征效果互补效应;(2) In addition to the complementarity between overview information and detail information, fractal features and Sobel operator filter features are two different texture representation methods, each with its own emphasis, so there are still features caused by method differences. effect complementary effect;

(3)Sobel算子滤波概貌特征的计算由于不需要对滤波图像实施二值化处理,因此滤波图像中保留了更多有用的过渡信息,而不仅仅是简单的二值信息,且因此而无需花费工夫优选二值化阈值,使得计算过程变得简便快捷;(3) The calculation of Sobel operator filtering profile features does not need to implement binarization processing on the filtered image, so more useful transition information is retained in the filtered image, not just simple binary information, and therefore no need Spending effort to optimize the binarization threshold makes the calculation process easier and faster;

(4)在分形细节特征提取过程中充分利用了织物纹理具有经向和纬向取向从而其主要信息集中于经向和纬向的特点,在图像子窗口的纵向或横向一维投影序列的基础上而非二维图像基础上计算得到,既保留了多数有用的信息,又大幅度降低了计算量;(4) In the process of extracting fractal detail features, the fabric texture has the characteristics of warp and weft orientations, so that its main information is concentrated in the warp and weft. The basis of the vertical or horizontal one-dimensional projection sequence of the image sub-window It is calculated based on the above rather than two-dimensional images, which not only retains most of the useful information, but also greatly reduces the amount of calculation;

(5)分形细节特征的计算充分利用了织物纹理特有的循环规则特点,因而计算得到的特征更加稳定和贴近真实。(5) The calculation of fractal detail features makes full use of the unique cycle rules of fabric texture, so the calculated features are more stable and close to reality.

以往的相关研究则不具备上述五个优点。Previous related research does not have the above five advantages.

附图说明Description of drawings

图1是本发明的织物纹理混合特征向量提取示意图Fig. 1 is a schematic diagram of fabric texture mixed feature vector extraction of the present invention

图2是实施例1的一幅64*64像素大小的织物图像Fig. 2 is the fabric image of a 64*64 pixel size of embodiment 1

图3是实施例1原图经Sobel算子水平滤波后的图像Fig. 3 is the image after the original image of embodiment 1 is filtered horizontally by the Sobel operator

图4是实施例1原图经Sobel算子垂直滤波后的图像Fig. 4 is the image after the original image of embodiment 1 is vertically filtered by Sobel operator

图5是实施例2的一幅64*64像素大小的织物图像Fig. 5 is the fabric image of a 64*64 pixel size of embodiment 2

图6是实施例2原图经Sobel算子水平滤波后的图像Fig. 6 is the image after the horizontal filtering of the original image by the Sobel operator in embodiment 2

图7是实施例2原图经Sobel算子垂直滤波后的图像Fig. 7 is the image after the original image of embodiment 2 is vertically filtered by the Sobel operator

图8是实施例3的一幅64*64像素大小的织物图像Fig. 8 is the fabric image of a 64*64 pixel size of embodiment 3

图9是实施例3原图经Sobel算子水平滤波后的图像Fig. 9 is the image after the horizontal filtering of the original image by the Sobel operator in embodiment 3

图10是实施例3原图经Sobel算子垂直滤波后的图像Fig. 10 is the image after the original image of embodiment 3 is vertically filtered by the Sobel operator

具体实施方式Detailed ways

下面结合具体实施方式,进一步阐述本发明。应理解,这些实施例仅用于说明本发明而不用于限制本发明的范围。此外应理解,在阅读了本发明讲授的内容之后,本领域技术人员可以对本发明作各种改动或修改,这些等价形式同样落于本申请所附权利要求书所限定的范围。The present invention will be further described below in combination with specific embodiments. It should be understood that these examples are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the teachings of the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms also fall within the scope defined by the appended claims of the present application.

本发明的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,在概貌特征提取方面,织物原图像首先同步分别经Sobel算子水平滤波和垂直滤波处理,得到两幅对应的滤波图像,然后分别从中提取计算方式一致的各一个灰度统计量组成表征织物纹理概貌信息的特征向量,一组共两个;在细节特征提取方面,首先采用一维快速傅里叶变换求出织物纹理图像的基本横向和纵向循环周期大小,然后依据遍历法原理计算图像中每一个包含一个横向基本循环周期的子窗口的分形维数和每一个包含一个纵向基本循环周期的子窗口的分形维数,最后从中选取两个反映横向细节信息的分形维数极值(即横向最大分形维数和横向最小分形维数)和两个反映纵向细节信息的分形维数极值(即纵向最大分形维数和纵向最小分形维数)作为表征织物纹理的细节特征。两个Sobel算子滤波概貌特征和四个分形细节特征共同组成本发明的混合特征向量。A Sobel operator filtering general appearance and fractal details mixed feature vector extraction method for characterizing fabric texture of the present invention, in terms of general appearance feature extraction, the original fabric image is first synchronously processed by Sobel operator horizontal filtering and vertical filtering respectively to obtain two A corresponding filter image, and then extract a gray-level statistic with the same calculation method to form a feature vector representing the general appearance information of the fabric texture, a group of two; in terms of detail feature extraction, first use one-dimensional fast Fourier Transform to obtain the basic horizontal and vertical cycle size of the fabric texture image, and then calculate the fractal dimension of each sub-window containing a horizontal basic cycle in the image and each sub-window containing a vertical basic cycle in the image according to the principle of traversal method Finally, two fractal dimension extremums reflecting the horizontal detail information (that is, the horizontal maximum fractal dimension and the horizontal minimum fractal dimension) and two fractal dimension extreme values reflecting the vertical detail information (that is, the vertical fractal dimension The maximum fractal dimension and the longitudinal minimum fractal dimension) are used as the detailed features to characterize the fabric texture. Two Sobel operator filter profile features and four fractal detail features together form the mixed feature vector of the present invention.

其中所述的包含一个横向基本循环周期的子窗口是以一个横向基本循环周期为长和织物纹理图像的宽为宽的矩形窗口,所述的每一个横向基本循环周期的子窗口的分形维数是在该子窗口中的图像像素灰度值沿横向累加而成的相应一维时间序列基础上计算得到的。Wherein said sub-window comprising a horizontal basic cycle is a rectangular window whose length is long and the width of the fabric texture image is wide, and the fractal dimension of the sub-window of each horizontal basic cycle is It is calculated on the basis of the corresponding one-dimensional time series obtained by accumulating the gray value of the image pixel in the sub-window along the horizontal direction.

所述的包含一个纵向基本循环周期的子窗口是以一个织物纹理图像的长为长和纵向基本循环周期为宽的矩形窗口,所述的每一个纵向基本循环周期的子窗口的分形维数是在该子窗口中的图像像素灰度值沿纵向累加而成的相应一维时间序列基础上计算得到的。The described sub-window comprising a vertical basic cycle is a rectangular window whose length is long and the vertical basic cycle is wide, and the fractal dimension of the sub-window of each vertical basic cycle is It is calculated on the basis of the corresponding one-dimensional time series obtained by accumulating the gray value of the image pixel in the sub-window along the longitudinal direction.

所述的用于表征织物纹理的由Sobel算子滤波概貌特征和分形细节特征组成的混合特征向量的提取过程如下:The extraction process of the mixed feature vector composed of Sobel operator filter overview feature and fractal detail feature for characterizing fabric texture is as follows:

首先采集数字化织物纹理图像,记为W,W为矩形,其尺寸长×宽为L1×L2,即横向和纵向长度分别为L1和L2,而其沿横向的基本周期即列周期为P1个像素,沿纵向的基本周期即行周期为P2,行周期和列周期均指取整后的像素数,P1通过计算W的任一行图像像素灰度值集合的基本循环周期得到,P2通过计算W的任一列图像像素灰度值集合的基本循环周期得到。First collect the digitized fabric texture image, denoted as W, W is a rectangle, its size length × width is L 1 ×L 2 , that is, the horizontal and vertical lengths are L 1 and L 2 respectively, and its basic cycle along the horizontal direction is the column cycle is P 1 pixels, and the basic cycle along the vertical direction, that is, the row cycle is P 2 . Both the row cycle and the column cycle refer to the number of pixels after rounding, and P 1 is obtained by calculating the basic cycle cycle of any row image pixel gray value set of W , P 2 is obtained by calculating the basic cycle period of any set of image pixel gray values of W.

对原图像同步分别实施索贝尔算子水平滤波和垂直滤波处理,记经索贝尔算子水平滤波后的图像为Wh,经索贝尔算子垂直滤波后的图像为WvThe original image is synchronously implemented with Sobel operator horizontal filtering and vertical filtering respectively, record the image after horizontal filtering of Sobel operator as W h , and the image after vertical filtering of Sobel operator as W v ;

选择一种灰度统计量,然后直接计算出Wh的该灰度统计量,作为水平边缘纹理概貌灰度统计量特征,记为ShSelect a grayscale statistic, and then directly calculate the grayscale statistic of W h , as the grayscale statistic feature of the horizontal edge texture profile, denoted as Sh ;

选择与计算Wh时一致的灰度统计量,直接计算出Wv的灰度统计量,作为垂直边缘纹理概貌灰度统计量特征,记为SvSelect the grayscale statistics consistent with the calculation of Wh , and directly calculate the grayscale statistics of Wv , as the grayscale statistics feature of the vertical edge texture profile, denoted as Sv ;

在织物纹理图像W中,选取一个横向基本循环周期P1为长和织物纹理图像的宽L2为宽的矩形窗口作为包含一个横向基本循环周期的子窗口,记为W1;选取一个织物纹理图像的长L1为长、纵向基本循环周期P2为宽的矩形窗口作为包含一个纵向基本循环周期的子窗口,记为W2In the fabric texture image W, select a horizontal basic cycle period P 1 as long and the width L 2 of the fabric texture image as a wide rectangular window as a sub-window containing a horizontal basic cycle period, denoted as W 1 ; choose a fabric texture The length L of the image is long, and the longitudinal basic cycle period P2 is a wide rectangular window as a sub-window containing a vertical basic cycle period, denoted as W 2 ;

对于某一W1,计算其沿行方向的图像像素灰度投影,即将该子窗口各行的图像像素灰度值沿横向叠加,得到一个一维时间序列,从该时间序列中可计算得到一个分形维数,然后将W1以固定步长水平地滑移以遍历整个W,共有L1-P1+1个W1,从而可相应求得L1-P1+1个分形维数,分别记其中的最小者和最大者为E1和E2,即为横向最小分形维数和横向最大分形维数,此两者反映纹理的横向极端细节信息;For a certain W 1 , calculate its image pixel grayscale projection along the row direction, that is, superimpose the image pixel grayscale values of each row of the sub-window along the horizontal direction to obtain a one-dimensional time series, from which a fractal can be calculated dimension, and then slide W 1 horizontally with a fixed step to traverse the entire W, there are a total of L 1 -P 1 +1 W 1 , so that L 1 -P 1 +1 fractal dimensions can be obtained accordingly, respectively Note that the smallest and largest ones are E 1 and E 2 , which are the minimum horizontal fractal dimension and the maximum horizontal fractal dimension, which reflect the horizontal extreme detail information of the texture;

对于某一W2,计算其沿列方向的图像像素灰度值投影,即将该子窗口各列的图像像素灰度值沿纵向叠加,得到一个一维时间序列,从该时间序列中可计算得到一个分形维数,然后将W2以固定步长垂直地滑移以遍历整个W,共有L2-P2+1个W2,从而可相应求得L2-P2+1个分形维数,分别记其中的最小者和最大者为E3和E4,即为纵向最小分形维数和纵向最大分形维数,此两者反映纹理的纵向极端细节信息;For a certain W 2 , calculate its image pixel gray value projection along the column direction, that is, superimpose the image pixel gray value of each column of the sub-window along the vertical direction to obtain a one-dimensional time series, from which it can be calculated A fractal dimension, and then slide W 2 vertically with a fixed step to traverse the entire W, there are a total of L 2 -P 2 +1 W 2 , so that L 2 -P 2 +1 fractal dimensions can be obtained accordingly , record the minimum and maximum among them as E 3 and E 4 , which are the minimum vertical fractal dimension and the maximum vertical fractal dimension, which reflect the vertical extreme detail information of the texture;

最终得到表征织物纹理的混合特征向量[ShSvE1E2E3E4]。Finally, the mixed feature vector [S h S v E 1 E 2 E 3 E 4 ] representing the fabric texture is obtained.

其中如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的织物为机织物。Wherein the above-mentioned one is used for characterizing fabric texture and is used for characterizing fabric texture, and described fabric is woven fabric.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述织物的图像的横向与纬纱方向一致,所述织物的图像的纵向与经纱方向一致。As described above, a Sobel operator filter overview and fractal details mixed feature vector extraction method for characterizing fabric texture, the horizontal direction of the image of the fabric is consistent with the weft direction, and the vertical direction of the image of the fabric is consistent with the warp direction.

如上所述的Sobel算子滤波概貌特征,所述的灰度统计量可以为仙农熵、灰度均值或灰度标准差。As described above, the Sobel operator filters the profile feature, and the gray level statistic can be Shannon entropy, gray level mean or gray level standard deviation.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的分形维数是指盒维数,其具体计算方法参见背景技术中的有关介绍。As mentioned above, a method for extracting feature vectors using Sobel operator filtering overview and fractal details for characterizing fabric texture, the fractal dimension refers to the box dimension, and its specific calculation method refers to the relevant introduction in the background technology.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的盒维数估算时所用的δ尺寸序列为2~6像素。According to the above-mentioned method for extracting feature vectors by combining Sobel filter overview and fractal details for characterizing fabric texture, the δ size sequence used for box dimension estimation is 2 to 6 pixels.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的固定步长指1~3个像素。As mentioned above, a method for extracting feature vectors by combining Sobel filter overview and fractal details for characterizing fabric texture, the fixed step size refers to 1 to 3 pixels.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的矩形子窗口W1每次的水平滑移步长与W2每次的垂直滑移步长不必相同。As mentioned above, a Sobel operator filter overview and fractal details mixed feature vector extraction method for characterizing fabric texture, the horizontal sliding step of the rectangular sub-window W 1 each time and the vertical sliding step of W 2 each time The step lengths do not have to be the same.

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,其中上述基本循环周期P1和P2的计算借助一维快速傅里叶变换(FFT)实现。A kind of Sobel operator filtering overview and fractal details mixed feature vector extraction method for characterizing fabric texture as above, wherein the calculation of above-mentioned basic cycle period P 1 and P 2 is realized by means of one-dimensional fast Fourier transform (FFT) .

如上所述的一种用于表征织物纹理的Sobel算子滤波概貌与分形细节混合特征向量提取方法,所述的灰度统计量首选仙农熵。As mentioned above, a Sobel operator filter general appearance and fractal details mixed feature vector extraction method for characterizing fabric texture, Shannon entropy is the first choice for the gray level statistics.

可以直接使用其它种类的统计量取代上述仙农熵统计量。Instead of the Shannon entropy statistic described above, other kinds of statistic can be used directly.

下面结合附图作进一步的说明:Further explanation is made below in conjunction with accompanying drawing:

(1)采集数字化织物纹理图像,记为W,如图1中的矩形ABCD所示,其尺寸为L1×L2像素,即横向(AD)和纵向(AB)长度分别为L1像素和L2像素;(1) Acquire digitized fabric texture image, denoted as W, as shown in the rectangle ABCD in Fig. 1, its size is L 1 × L 2 pixels, that is, the horizontal (AD) and vertical (AB) lengths are L 1 pixels and L 2 pixels;

(2)对原图像同步分别实施索贝尔算子水平滤波和垂直滤波处理,记经索贝尔算子水平滤波后的图像为Wh,经索贝尔算子垂直滤波后的图像为Wv(2) Carry out the Sobel operator horizontal filtering and vertical filtering processing on the original image synchronously, record the image after the Sobel operator horizontal filtering as W h , and the image after the Sobel operator vertical filtering as W v ;

(3)从仙农熵、灰度均值、灰度方差中选择一种灰度统计量,首选仙农熵,然后直接计算出Wh的该灰度统计量,作为水平边缘纹理概貌灰度统计量特征,记为Sh(3) Select a grayscale statistic from Shannon entropy, gray mean value, and grayscale variance, Shannon entropy is preferred, and then directly calculate the grayscale statistic of W h as the grayscale statistics of the horizontal edge texture profile Quantitative characteristics, denoted as Sh ;

(4)选择与计算Wh时一致的灰度统计量,直接计算出Wv的灰度统计量,作为垂直边缘纹理概貌灰度统计量特征,记为Sv(4) Select the same grayscale statistic as when calculating Wh , directly calculate the grayscale statistic of Wv , as the grayscale statistic feature of the vertical edge texture profile, denoted as Sv ;

(5)抽取待分析的织物纹理图像的任一行像素灰度值集合,借助一维快速傅里叶变换求得其沿横向的基本周期即列基本周期P1(5) Extract any row of pixel gray value sets of the fabric texture image to be analyzed, and obtain its basic period along the horizontal direction, namely the column basic period P 1 , by means of one-dimensional fast Fourier transform;

(6)抽取待分析的织物纹理图像的任一列像素灰度值集合,借助一维快速傅里叶变换求得其沿纵向的基本周期即行基本周期P2(6) extract any column pixel gray value set of the fabric texture image to be analyzed, and obtain its basic period along the longitudinal direction, that is, the row basic period P 2 by means of one-dimensional fast Fourier transform;

(7)在W中任取一个如矩形A1B1C1D1所示的子窗口,简记为记为W1,该子窗口横向长度为P1而纵向长度为L2,对于该W1,计算其沿行方向的图像像素灰度值投影,即将该子窗口各行的图像像素灰度值沿横向叠加,得到一个一维时间序列,在δ尺寸序列为2~6像素的前提下,从该时间序列中可计算得到一个盒维数特征,然后将W1以每次1~3像素的固定步长水平地滑移以遍历整个W,共有L1-P1+1个W1,从而可相应求得L1-P1+1个盒维数特征,分别记其中的最小者和最大者为E1和E2(7) Choose any sub-window in W as shown in the rectangle A 1 B 1 C 1 D 1 , abbreviated as W 1 , the sub-window has a horizontal length of P 1 and a vertical length of L 2 , for this W 1 , calculate the gray value projection of the image pixel along the row direction, that is, superimpose the gray value of the image pixel in each row of the sub-window along the horizontal direction to obtain a one-dimensional time series, under the premise that the δ size sequence is 2 to 6 pixels , a box dimension feature can be calculated from the time series, and then W 1 is horizontally slid at a fixed step size of 1 to 3 pixels each time to traverse the entire W, and there are a total of L 1 -P 1 +1 W 1 , so that L 1 -P 1 +1 box dimension features can be obtained correspondingly, and the smallest and largest among them are respectively recorded as E 1 and E 2 ;

(8)在W中任取一个如矩形A2B2C2D2所示的子窗口,简记为记为W2,该子窗口横向长度为L1而纵向长度为P2,对于该W2,计算其沿列方向的图像像素灰度值投影,即将该子窗口各列的图像像素灰度值沿纵向叠加,得到一个一维时间序列,在δ尺寸序列为2~6像素的前提下,从该时间序列中可计算得到一个盒维数特征,然后将W2以每次1~3像素的固定步长垂直地滑移以遍历整个W,共有L2-P2+1个W2,从而可相应求得L2-P2+1个盒维数特征,分别记其中的最小者和最大者为E3和E4(8) Choose any sub-window in W as shown by the rectangle A 2 B 2 C 2 D 2 , abbreviated as W 2 , the horizontal length of the sub-window is L 1 and the vertical length is P 2 , for this W 2 , calculate the projection of the gray value of the image pixel along the column direction, that is, superimpose the gray value of the image pixel of each column of the sub-window along the vertical direction to obtain a one-dimensional time series, on the premise that the δ size sequence is 2 to 6 pixels Next, a box dimension feature can be calculated from the time series, and then W 2 is vertically slid at a fixed step size of 1 to 3 pixels each time to traverse the entire W, and there are a total of L 2 -P 2 +1 W 2 , so that L 2 -P 2 +1 box dimension features can be obtained correspondingly, and the minimum and maximum among them are respectively recorded as E 3 and E 4 ;

(9)得到表征织物纹理的特征向量[ShSvE1E2E3E4]。(9) Obtain the feature vector [S h S v E 1 E 2 E 3 E 4 ] representing the fabric texture.

实施例1Example 1

(1)获取织物图像W,该图像大小为64×64像素,如图2所示。(1) Acquire the fabric image W, the size of which is 64×64 pixels, as shown in Figure 2.

(2)对W实施Sobel算子水平滤波,得到如图3所示的图像,记为Wh(2) Implement Sobel operator horizontal filtering on W to obtain the image shown in Figure 3, denoted as W h .

(3)对W实施Sobel算子垂直滤波,得到如图4所示的图像,记为Wv;。(3) Implement Sobel operator vertical filtering on W to obtain the image shown in Figure 4, which is denoted as W v ;.

(4)选择仙农熵作为灰度统计量,仙农熵计算公式如下:(4) Shannon entropy is selected as the gray scale statistic, and the calculation formula of Shannon entropy is as follows:

Xx (( sthe s )) == -- ΣΣ ii sthe s ii 22 loglog 22 (( sthe s ii 22 ))

(5)计算Wh的仙农熵即Sh,作为水平边缘纹理概貌灰度统计量特征,结果为-5.23×107(5) Calculate the Shannon entropy of W h , that is Sh , as the gray level statistical feature of the horizontal edge texture profile, and the result is -5.23×10 7 .

(6)计算Wv的仙农熵即Sv,作为垂直边缘纹理概貌灰度统计量特征,结果为-9.51×107(6) Calculate the Shannon entropy of W v , that is, S v , as the gray statistical feature of the vertical edge texture profile, and the result is -9.51×10 7 .

(7)采用一维FFT对原图的任一行灰度数据进行周期计算,得到列基本周期P1=6像素。(7) Use one-dimensional FFT to perform period calculation on any row of grayscale data in the original image, and obtain a column basic period P 1 =6 pixels.

(8)采用一维FFT对原图的任一列灰度数据进行周期计算,得到行基本周期P2=4像素。(8) Perform period calculation on any column of grayscale data in the original image by using one-dimensional FFT, and obtain a row basic period P 2 =4 pixels.

(9)在W中取如图1中矩形A1B1C1D1所示的子窗口W1,该子窗口横向长度为6像素而纵向长度为64像素,该子窗口各行图像像素灰度值沿横向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为1像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.42和1.48。(9) In W, take the sub-window W 1 shown in the rectangle A 1 B 1 C 1 D 1 in Fig. 1, the horizontal length of the sub-window is 6 pixels and the vertical length is 64 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the horizontal direction to obtain a one-dimensional time series with a length of 64 pixels. Then, according to the principle of the traversal method, when the sub-window sliding fixed step is selected as 1 pixel and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.42 and 1.48, respectively.

(10)在W中取如图1中矩形A2B2C2D2所示的子窗口W2,该子窗口横向长度为64像素而纵向长度为4像素,该子窗口各行图像像素灰度值沿纵向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为1像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.44和1.47。(10) In W, take the sub-window W 2 shown in the rectangle A 2 B 2 C 2 D 2 in Figure 1, the horizontal length of the sub-window is 64 pixels and the vertical length is 4 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the longitudinal direction to obtain a one-dimensional time series with a length of 64 pixels, and then according to the principle of the traversal method, when the sub-window sliding fixed step is selected as 1 pixel and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.44 and 1.47, respectively.

(11)最终得到表征织物纹理的混合特征向量[-5.23×107-9.51×1071.421.481.441.47]。(11) Finally, the mixed feature vector [-5.23×10 7 -9.51×10 7 1.421.481.441.47] representing the fabric texture is obtained.

实施例2Example 2

(1)获取织物图像W,该图像大小为64×64像素,如图5所示。(1) Acquire the fabric image W, the size of which is 64×64 pixels, as shown in Figure 5.

(2)对W实施Sobel算子水平滤波,得到如图6所示的图像,记为Wh(2) Implement Sobel operator horizontal filtering on W to obtain the image shown in Fig. 6, denoted as W h .

(3)对W实施Sobel算子垂直滤波,得到如图7所示的图像,记为Wv;。(3) Implement Sobel operator vertical filtering on W to obtain the image shown in Figure 7, which is denoted as W v ;.

(4)选择灰度均值作为灰度统计量,灰度均值计算公式如下:(4) Select the gray-scale mean as the gray-scale statistic, and the calculation formula of the gray-scale mean is as follows:

Xx (( sthe s )) == 11 nno ΣΣ ii == 11 nno sthe s ii

(5)计算Wh的灰度均值即Sh,作为水平边缘纹理概貌灰度统计量特征,结果为86.84。(5) Calculate the mean value of the gray value of W h , that is Sh , as the gray statistical feature of the horizontal edge texture profile, and the result is 86.84.

(6)计算Wv的灰度均值即Sv,作为垂直边缘纹理概貌灰度统计量特征,结果为88.69。(6) Calculate the mean gray value of W v , namely S v , as the gray statistical feature of the vertical edge texture profile, and the result is 88.69.

(7)采用一维FFT对原图的任一行灰度数据进行周期计算,得到列基本周期P1=20像素。(7) Perform period calculation on any row of grayscale data in the original image by using one-dimensional FFT to obtain a column basic period P 1 =20 pixels.

(8)采用一维FFT对原图的任一列灰度数据进行周期计算,得到行基本周期P2=11像素。(8) Perform cycle calculation on any column of grayscale data in the original image by using one-dimensional FFT, and obtain a row basic cycle P 2 =11 pixels.

(9)在W中取如图1中矩形A1B1C1D1所示的子窗口W1,该子窗口横向长度为20像素而纵向长度为64像素,该子窗口各行图像像素灰度值沿横向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为2像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.33和1.45。(9) In W, take the sub-window W 1 shown in the rectangle A 1 B 1 C 1 D 1 in Figure 1, the horizontal length of the sub-window is 20 pixels and the vertical length is 64 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the horizontal direction to obtain a one-dimensional time series with a length of 64 pixels. Then, according to the principle of the traversal method, when the sub-window sliding fixed step is selected as 2 pixels and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.33 and 1.45, respectively.

(10)在W中取如图1中矩形A2B2C2D2所示的子窗口W2,该子窗口横向长度为64像素而纵向长度为11像素,该子窗口各行图像像素灰度值沿纵向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为1像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.30和1.47。(10) In W, take the sub-window W 2 shown in the rectangle A 2 B 2 C 2 D 2 in Figure 1, the horizontal length of the sub-window is 64 pixels and the vertical length is 11 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the longitudinal direction to obtain a one-dimensional time series with a length of 64 pixels, and then according to the principle of the traversal method, when the sub-window sliding fixed step is selected as 1 pixel and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.30 and 1.47, respectively.

(11)最终得到表征织物纹理的混合特征向量[86.8488.691.331.451.301.47]。(11) Finally, the mixed feature vector [86.8488.691.331.451.301.47] representing the fabric texture is obtained.

实施例3Example 3

(1)获取织物图像W,该图像大小为64×64像素,如图8所示。(1) Acquire the fabric image W, the size of which is 64×64 pixels, as shown in Figure 8.

(2)对W实施Sobel算子水平滤波,得到如图9所示的图像,记为Wh(2) Implement Sobel operator horizontal filtering on W to obtain the image shown in Fig. 9, denoted as W h .

(3)对W实施Sobel算子垂直滤波,得到如图10所示的图像,记为Wv;。(3) Implement Sobel operator vertical filtering on W to obtain the image shown in Figure 10, which is denoted as W v ;.

(4)选择灰度标准差作为灰度统计量,灰度标准差计算公式如下:(4) Select the grayscale standard deviation as the grayscale statistic, and the formula for calculating the grayscale standard deviation is as follows:

标准差 X ( s ) = 1 n - 1 Σ i = 1 n ( s i - s ‾ ) 2 , 其中, s ‾ = 1 n Σ i = 1 n s i standard deviation x ( the s ) = 1 no - 1 Σ i = 1 no ( the s i - the s ‾ ) 2 , in, the s ‾ = 1 no Σ i = 1 no the s i

(5)计算Wh的灰度标准差即Sh,作为水平边缘纹理概貌灰度统计量特征,结果为110.8。(5) Calculate the gray standard deviation of W h , that is Sh , as the gray statistical feature of the horizontal edge texture profile, and the result is 110.8.

(6)计算Wv的灰度标准差即Sv,作为垂直边缘纹理概貌灰度统计量特征,结果为115.9。(6) Calculate the gray standard deviation of W v , namely S v , as the gray statistical feature of the vertical edge texture profile, and the result is 115.9.

(7)采用一维FFT对原图的任一行灰度数据进行周期计算,得到列基本周期P1=8像素。(7) Using one-dimensional FFT to calculate the period of any row of grayscale data in the original image, and obtain the column basic period P 1 =8 pixels.

(8)采用一维FFT对原图的任一列灰度数据进行周期计算,得到行基本周期P2=15像素。(8) Perform period calculation on any column of grayscale data in the original image by using one-dimensional FFT, and obtain a row basic period P 2 =15 pixels.

(9)在W中取如图1中矩形A1B1C1D1所示的子窗口W1,该子窗口横向长度为8像素而纵向长度为64像素,该子窗口各行图像像素灰度值沿横向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为2像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.21和1.29。(9) In W, take the sub-window W 1 shown in the rectangle A 1 B 1 C 1 D 1 in Fig. 1, the horizontal length of the sub-window is 8 pixels and the vertical length is 64 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the horizontal direction to obtain a one-dimensional time series with a length of 64 pixels. Then, according to the principle of the traversal method, when the sub-window sliding fixed step is selected as 2 pixels and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.21 and 1.29, respectively.

(10)在W中取如图1中矩形A2B2C2D2所示的子窗口W2,该子窗口横向长度为64像素而纵向长度为15像素,该子窗口各行图像像素灰度值沿纵向投影可得到一个长度为64像素的一维时间序列,然后按照遍历法原理,在子窗口滑移固定步长选为3像素和δ尺寸序列为2~6像素的情况下,可在一系列的一维时间序列基础上求得一系列相应的盒维数,其中的最小者和最大者分别为1.25和1.33。(10) In W, take the sub-window W 2 shown in the rectangle A 2 B 2 C 2 D 2 in Figure 1, the horizontal length of the sub-window is 64 pixels and the vertical length is 15 pixels, and the image pixels of each row of the sub-window are gray The degree value can be projected along the longitudinal direction to obtain a one-dimensional time series with a length of 64 pixels. Then, according to the principle of traversal method, when the sub-window sliding fixed step is selected as 3 pixels and the δ size sequence is 2 to 6 pixels, it can be Based on a series of one-dimensional time series, a series of corresponding box dimensions are obtained, and the minimum and maximum are 1.25 and 1.33, respectively.

(11)最终得到表征织物纹理的混合特征向量[110.8115.91.211.291.251.33]。(11) Finally, the mixed feature vector [110.8115.91.211.291.251.33] representing the fabric texture is obtained.

Claims (10)

1. A Sobel operator filtering general picture and fractal detail mixed feature vector extraction method for representing fabric texture is characterized in that: the mixed feature vector is composed of two Sobel operator filtering profile features and four fractal detail features;
profile feature extraction: the method comprises the steps that an original fabric image is firstly subjected to Sobel operator horizontal filtering and vertical filtering synchronously and respectively to obtain two corresponding filtering images, and then a characteristic vector representing fabric texture profile information is formed by extracting one gray scale statistic with a consistent calculation mode from the two corresponding filtering images;
extracting detail features: firstly, the basic transverse and longitudinal cycle period sizes of a fabric texture image are solved by adopting one-dimensional fast Fourier transform, then the fractal dimension of each sub-window containing one transverse basic cycle period and the fractal dimension of each sub-window containing one longitudinal basic cycle period in the image are calculated according to the traversing method principle, and finally two fractal dimension extrema which reflect transverse detail information, namely transverse maximum fractal dimension and transverse minimum fractal dimension, and two fractal dimension extrema which reflect longitudinal detail information, namely longitudinal maximum fractal dimension and longitudinal minimum fractal dimension are selected from the image and are used as detail characteristics for representing fabric textures;
wherein
The sub-window containing one transverse basic cycle period is a rectangular window which takes one transverse basic cycle period as a length and takes the width of the fabric texture image as a width, and the fractal dimension of the sub-window of each transverse basic cycle period is calculated on the basis of a corresponding one-dimensional time sequence formed by transversely accumulating the gray values of the image pixels in the sub-window;
the sub-window containing a longitudinal basic cycle period is a rectangular window which is long in the length of a fabric texture image and wide in the longitudinal basic cycle period, and the fractal dimension of the sub-window of each longitudinal basic cycle period is calculated on the basis of a corresponding one-dimensional time sequence formed by longitudinally accumulating the gray values of image pixels in the sub-window;
the extraction process of the mixed feature vector for representing the fabric texture and composed of the Sobel operator filtering profile features and the fractal detail features is as follows:
firstly, acquiring a digital fabric texture image, wherein the image is marked as W, the W is a rectangle, and the length and the width of the size are L1×L2I.e. having transverse and longitudinal lengths L, respectively1And L2And its basic period in the lateral direction, i.e., column period, is P1A pixel having a fundamental period in the longitudinal direction, i.e., a line period, of P2The individual pixel, row period and column period all refer to the number of pixels, P, after rounding1Basic cycle of any line image pixel gray value set by calculating WIs obtained in phase P2The method is obtained by calculating the basic cycle period of any column of image pixel gray value set of W;
synchronously and respectively carrying out horizontal filtering and vertical filtering processing of a Sobel operator on the original image, and recording the image subjected to the horizontal filtering of the Sobel operator as WhThe image after vertical filtering by the Sobel operator is Wv
Selecting a gray scale statistic, and directly calculating WhThe gray scale statistic of (2) is taken as the gray scale statistic characteristic of the horizontal edge texture profile and is marked as Sh
Selecting and calculating WhThe time-consistent gray scale statistic amount, directly calculates WvThe gray scale statistic of (2) is taken as the gray scale statistic characteristic of the vertical edge texture profile and is marked as Sv
In the fabric texture image W, a transverse basic cycle period P is selected1Is the length and width L of the fabric texture image2The wide rectangular window is taken as a sub-window containing one transverse basic cycle period and is marked as W1(ii) a Selecting a length L of a fabric texture image1Is a long and longitudinal basic cycle period P2The wide rectangular window is taken as a sub-window containing one longitudinal basic cycle period and is marked as W2
For a certain W1Calculating the gray projection of the image pixels along the row direction, namely superposing the gray values of the image pixels of the rows of the sub-window along the transverse direction to obtain a one-dimensional time sequence, calculating a fractal dimension from the time sequence, and then calculating the W1Horizontally sliding in fixed steps to traverse the entire W, with a total of L1-P1+ 1W1Thus, L can be obtained accordingly1-P1+1 fractal dimensions, respectively noting the minimum and maximum as E1And E2The minimum fractal dimension and the maximum fractal dimension reflect the transverse extreme detail information of the texture;
for a certain W2Calculating the projection of the gray value of the image pixel along the column direction, i.e. superposing the gray value of the image pixel of each column of the sub-window along the longitudinal direction to obtain a one-dimensional imageTime series from which a fractal dimension can be calculated and then W2Slipping vertically with a fixed step size to traverse the entire W, for a total of L2-P2+ 1W2Thus, L can be obtained accordingly2-P2+1 fractal dimensions, respectively noting the minimum and maximum as E3And E4The minimum fractal dimension and the maximum fractal dimension in the longitudinal direction are obtained, and the minimum fractal dimension and the maximum fractal dimension in the longitudinal direction reflect the extreme detail information in the longitudinal direction of the texture;
finally, a Sobel operator filtering general picture and fractal detail mixed characteristic vector [ S ] for representing fabric texture is obtainedhSvE1E2E3E4]。
2. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 1, wherein the fabric is woven fabric.
3. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 1, wherein the transverse direction of the image of the fabric is consistent with the weft direction, and the longitudinal direction of the image of the fabric is consistent with the warp direction.
4. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 1, wherein the gray scale statistic is the Shannon entropy, the gray scale mean or the gray scale standard deviation.
5. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 1 or 4, wherein the gray scale statistic is preferably the Xiannon entropy.
6. The method as claimed in claim 1, wherein the fractal dimension is a box dimension for extracting feature vectors of hybrid Sobel operator filtered profiles and fractal details for characterizing fabric texture.
7. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 6, wherein the delta size sequence used for the box-dimension estimation is 2-6 pixels.
8. The method for extracting the hybrid eigenvector of the Sobel operator filtering profile and the fractal detail for representing the fabric texture as claimed in claim 1, wherein the fixed step length refers to 1-3 pixels.
9. The method for extracting Sobel operator filtering profile and fractal detail mixed feature vector for characterizing fabric texture as claimed in claim 1, wherein the rectangular sub-window W1Each time of horizontal slip fixed step length and W2The vertical slip fixed step size need not be the same for each pass.
10. The method for extracting the hybrid feature vector of the Sobel operator filtering profile and the fractal detail for characterizing the fabric texture as claimed in claim 1, wherein the basic cycle period P is1And P2The calculation of (c) is performed by means of a one-dimensional fast fourier transform.
CN201010536900XA 2010-11-09 2010-11-09 Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector Expired - Fee Related CN101976441B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010536900XA CN101976441B (en) 2010-11-09 2010-11-09 Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010536900XA CN101976441B (en) 2010-11-09 2010-11-09 Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector

Publications (2)

Publication Number Publication Date
CN101976441A true CN101976441A (en) 2011-02-16
CN101976441B CN101976441B (en) 2012-07-18

Family

ID=43576323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010536900XA Expired - Fee Related CN101976441B (en) 2010-11-09 2010-11-09 Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector

Country Status (1)

Country Link
CN (1) CN101976441B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108470338A (en) * 2018-02-12 2018-08-31 南京邮电大学 A kind of water level monitoring method
CN110084827A (en) * 2019-04-17 2019-08-02 江阴芗菲服饰有限公司 A kind of Fabric Texture Classification method based on frequency domain character
US10872429B2 (en) 2016-11-24 2020-12-22 Université D'aix-Marseille Method for characterising the anisotropy of the texture of a digital image
CN112347421A (en) * 2020-10-16 2021-02-09 中国地质调查局沈阳地质调查中心 Method and system for highlighting and enhancing broken-line-shaped gravity anomaly information
CN117132593A (en) * 2023-10-25 2023-11-28 济宁华晟服装股份有限公司 Cloth roughness detection method for resisting periodic texture influence

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192150B1 (en) * 1998-11-16 2001-02-20 National University Of Singapore Invariant texture matching method for image retrieval
CN101216435A (en) * 2008-01-03 2008-07-09 东华大学 An automatic detection method for fabric defects based on multi-fractal feature parameters

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6192150B1 (en) * 1998-11-16 2001-02-20 National University Of Singapore Invariant texture matching method for image retrieval
CN101216435A (en) * 2008-01-03 2008-07-09 东华大学 An automatic detection method for fabric defects based on multi-fractal feature parameters

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
《Advances in Computational Research》 20091231 Mahajan P.M,et al. A review of automatic fabric defect detection techniques 第18~29页 1-10 第1卷, 第2期 2 *
《Computer Networks and ISDN Systems》 19981112 Aura Conci,et al. A fractal image analysis system for fabric inspection based on a box-counting method 第1887~1895页 1-10 第30卷, 第20-21期 2 *
《计算机工程与应用》 20071231 步红刚, 黄秀宝, 汪军 基于多分形特征参数的织物瑕疵检测 第233~237页 1-10 , 第36期 2 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10872429B2 (en) 2016-11-24 2020-12-22 Université D'aix-Marseille Method for characterising the anisotropy of the texture of a digital image
CN108470338A (en) * 2018-02-12 2018-08-31 南京邮电大学 A kind of water level monitoring method
CN110084827A (en) * 2019-04-17 2019-08-02 江阴芗菲服饰有限公司 A kind of Fabric Texture Classification method based on frequency domain character
CN112347421A (en) * 2020-10-16 2021-02-09 中国地质调查局沈阳地质调查中心 Method and system for highlighting and enhancing broken-line-shaped gravity anomaly information
CN117132593A (en) * 2023-10-25 2023-11-28 济宁华晟服装股份有限公司 Cloth roughness detection method for resisting periodic texture influence
CN117132593B (en) * 2023-10-25 2024-03-26 济宁华晟服装股份有限公司 Cloth roughness detection method for resisting periodic texture influence

Also Published As

Publication number Publication date
CN101976441B (en) 2012-07-18

Similar Documents

Publication Publication Date Title
CN101976442B (en) Fractal profile and Sobel operator filtering detail mixed feature vector extraction method for representing fabric texture
CN101976440B (en) Sobel operator-based extraction method of profile and detail composite characteristic vector used for representing fabric texture
CN103413288B (en) A kind of LCD general detects defect method
CN106339998B (en) Multi-focus image fusion method based on contrast pyramid transformation
Zhang et al. Edge strength similarity for image quality assessment
CN107194919A (en) The mobile phone screen defect inspection method rebuild based on rule grain background
CN105675625B (en) A kind of fruit surface defect detection method of Gradient Iteration Threshold segmentation
CN108090894A (en) Based on the fabric defect detection method apart from adaptation function and perception hash algorithm
CN109410228A (en) Internal wave of ocean detection algorithm based on Method Based on Multi-Scale Mathematical Morphology Fusion Features
CN104458766B (en) A kind of cloth surface flaw detection method based on structural texture method
CN101976441B (en) Method for extracting Sobel operator filtering profile for representing fabric texture and fractal detail mixed characteristic vector
CN103108586A (en) A method of generating nuclear magnetic resonance images using susceptibility weighted imaging and susceptibility mapping (swim)
CN101996322B (en) Method for extracting fractal detail feature for representing fabric texture
CN103454282A (en) Gray-gradient-based measurement method of mottle of printed product
CN103440654A (en) LCD foreign body defect detection method
CN101329402B (en) Multi-dimension SAR image edge detection method based on improved Wedgelet
CN106327451A (en) Image restorative method of ancient animal fossils
CN104318545B (en) A kind of quality evaluating method for greasy weather polarization image
CN104021523A (en) Novel method for image super-resolution amplification based on edge classification
CN107240086B (en) A kind of fabric defects detection method based on integral nomography
CN105184777A (en) Painted design fabric defect detection method based on image decomposition
CN106651792A (en) Method and device for removing strip noise of satellite image
CN105261006A (en) Medical image segmentation algorithm based on Fourier transform
Shao et al. Generative image inpainting with salient prior and relative total variation
CN104809735B (en) The system and method for image haze evaluation is realized based on Fourier transformation

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120718

Termination date: 20191109