旋转骨架法在二值图像分形维数计算中的应用
Application of skeleton rotating method in fractal dimension calculate of binary image
- 2020年25卷第9期 页码:1894-1903
收稿:2020-02-07,
修回:2020-3-21,
录用:2020-3-28,
纸质出版:2020-09-16
DOI: 10.11834/jig.200015
移动端阅览

浏览全部资源
扫码关注微信
收稿:2020-02-07,
修回:2020-3-21,
录用:2020-3-28,
纸质出版:2020-09-16
移动端阅览
目的
2
计盒法是一种计算二值图像分形维数的常用方法,传统方法如BCM(box-counting method)对无旋转的图像结构具有较理想的计算结果,但是对具有旋转的图像结构的拟合结果偏差较大,导致同一物体在不同旋转角度下的图像的计算结果存在较大差异。为了减小图像旋转对盒维数的影响,本文提出了一种计算二值位图分形维数的新方法——旋转骨架法。
方法
2
将二值图像提取骨架,使位图转换为矢量图,利用遗传算法计算图像中物体的最小包容矩形和旋转角度,然后将矢量图进行旋转使其变为一个无旋转的图形,接下来采用多尺度的盒子覆盖矢量图形得到多个拟合点,最后按最小二乘法对拟合点进行拟合得到盒维数。与BCM方法相比,其核心工作与关键改进为骨架的提取、最小包容体的计算、矢量图的分形维数计算等过程。
结果
2
对3种类型的图像进行了分析,在自相似的分形图像中,相比BCM方法,3幅图的平均误差分别降低了0.725 2%、3.060 5%和2.298 5%,变化幅度分别降低了0.057 3、0.088 3和0.085 9;在文字扫描图像中,相比BCM方法,变化幅度降低了0.012 75,平均拟合误差降低了0.001 28;在植物图像中,与BCM方法相比,分形维数的变化幅度降低了0.017 04,平均拟合误差降低了0.000 5。
结论
2
该方法充分利用了位图易旋转、无厚度的特点,减小了图像旋转对盒维数的影响,评价结果优于BCM方法。
Objective
2
Fractals have been widely used in image processing
signal processing
physics
biology
system science
medicine
geography
material science
and architecture. Fractals have also become an important tool to describe and study complex and irregular geometric features quantitatively. Fractal dimensions are formally defined as the Hausdorff-Besicovitch dimension. However
estimating fractal dimensions can be conducted in several ways
each of which uses a slightly different definition of the dimension. A few of these methods include the box-counting method (BCM)
wavelet transform
power spectrum (using the Fourier transform)
Hurst coefficient
Bouligand-Minkowski
variation
and capacity dimension methods. Given its high efficiency and easy implementation
BCM has become a widely used method to calculate the fractal dimension of binary images. However
BCM is influenced by many factors
such as range of box sizes
selection of fitting points for calculation
method of box covering
and rotation angle of the image
which lead to the instability of the box-counting dimension. Among the factors that affect the box dimension
the box-counting dimension of binary images change greatly due to image rotation and then leads to the deviation of the box-counting dimension. When the image has rotation
the box dimension calculated by the BCM method is usually smaller than the theoretical fractal dimension. The traditional method (BCM) only has a good estimation of nonrotating images. The estimation of rotating images deviates greatly when the traditional method is used and leads to the large difference in the box-counting dimension of the binary image with different rotating angles of the same object. The average deviation of the box-counting dimension caused by rotation is 3%~5%
and the maximum deviation can reach approximately 8%. To reduce the influence of the image's rotation on the box-counting dimension
the rotation angle of the image must become 0. If the binary image is directly rotated
then the new binary image generated after rotation is inevitably accompanied by interpolation. Although the rotation of the image is corrected
it also causes image deformation and deviation of the box-counting dimension. To avoid rotating the binary images directly
this study proposes a new method to calculate the fractal dimension of binary images.
Method
2
BCM is mostly used to calculate the box-counting dimension of bitmap because the bitmap is relatively easy to obtain
and the box-counting method of vector graphs is rarely studied. Vector graphics have more advantages compared with bitmaps because binary images cannot avoid the thickness problem caused by the pixel size and the interpolation problem caused by the bitmap image rotation. On the contrary
vector images are characterized by no thickness and easy rotation without interpolation. Based on these characteristics
this study proposes a new method called skeleton rotating method to calculate the box-counting dimension. The innovation of this method is the conversion of the binary image into a vector graph and the calculation of the box-counting dimension on the basis of the vector graph. This method mainly includes the following steps: First
the central point of the pixel point of the binary image is regarded as a series of points on the plane. Lines are used to connect the adjacent points on the plane to form a skeleton (vector graph) of the binary image. Then
the minimum containing the rectangle and rotation angle
θ
of the skeleton are calculated using the genetic algorithm. To ensure the accuracy of the calculation results
the genetic algorithm parameters are set as follows: initial number of population
100; mutation probability of offspring
0.1; total generations of reproduction
10 000. Next
the skeleton is rotated by the angle
θ
to obtain a nonrotating vector graph
and the skeleton is covered with boxes of different sizes in a suitable range of box sizes. Simultaneously
we need to record the number of boxes covered with different sizes and the size of the boxes when covering the skeleton to obtain multiple fitting points (-ln
r
ln
N
r
). Lastly
the fitting points are fitted in accordance with the least squares method to obtain the box-counting dimension.
Result
2
In order to compare skeleton rotating method more comprehensively
this paper analyzes and verifies the self-similar image
character scanning image and plant image. In the self-similar image
three different types of self-similar fractal image are calculated (each type contains 45 images with different rotation angles). Compared with the BCM method
the average fitting error (least square fitting error) of the skeleton rotating method was reduced by 0.725 2%
3.060 5% and 2.298 5% respectively
while the variation range (the difference between the maximum and minimum calculated value) decreased by 0.057 3
0.088 3 and 0.085 9
respectively. In the character scanning image
compared with the BCM
the change range of the box dimension of the character scanning image is reduced by 0.012 75 and the average fitting error is reduced by 0.001 28. In the plant image
compared with the BCM
the change of box dimension is reduced by 0.017 04 and the average fitting error is reduced by 0.000 5.
Conclusion
2
The skeleton rotating method converts the binary image into a vector graph on which the estimation of the box-counting dimension is based. The vector graph is used as a basis because it is convenient to rotate and has no thickness. When the vector graph is used for estimating the box-counting dimension
the interpolation problem caused by the rotation of the binary image is avoided
and the influence of the rotation of the binary image on the box-counting dimension is reduced. The results of the skeleton rotating method are better than that of the BCM.
Ai T, Zhang R, Zhou H W and Pei J L. 2014. Box-counting methods to directly estimate the fractal dimension of a rock surface. Applied Surface Science, 314:610-621[DOI:10.1016/j.apsusc.2014.06.152]
Buczkowski S, Kyriacos S, Nekka F and Cartilier L. 1998. The modified box-counting method:analysis of some characteristic parameters. Pattern Recognition, 31(4):411-418[DOI:10.1016/S0031-3203(97)00054-X]
Cai J C, Lin D L, Singh H, Wei W and Zhou S W. 2018. Shale gas transport model in 3D fractal porous media with variable pore sizes. Marine and Petroleum Geology, 98:437-447[DOI:10.1016/j.marpetgeo.2018.08.040]
Cai J C. 2014. A fractal approach to low velocity non-Darcy flow in a low permeability porous medium. Chinese Physics B, 23(4):#044701[DOI:10.1088/1674-1056/23/4/044701]
Chen W S, Yuan S Y and Hsieh C M. 2003. Two algorithms to estimate fractal dimension of gray-level images. Optical Engineering, 42(8):2452-2464[DOI:10.1117/1.1585061]
Foroutan-pour K, Dutilleul P and Smith D L. 1999. Advances in the implementation of the box-counting method of fractal dimension estimation. Applied Mathematics and Computation, 105(2/3):195-210[DOI:10.1016/S0096-3003(98)10096-6]
Fortin C S, Kumaresan R, Ohley W J and Hoefer S. 1992. Fractal dimension in the analysis of medical images. IEEE Engineering in Medicine and Biology Magazine, 11(2):65-71[DOI:10.1109/51.139039]
Gagnepain J J and Roques-Carmes C. 1986. Fractal approach to two-dimensional and three-dimensional surface roughness. Wear, 109(1/4):119-126[DOI:10.1016/0043-1648(86)90257-7]
Jiang J F, Zhu W L, Shi F, Zhang Y C, Lin L and Jiang T Z. 2008. A robust and accurate algorithm for estimating the complexity of the cortical surface. Journal of Neuroscience Methods, 172(1):122-130[DOI:10.1016/j.jneumeth.2008.04.018]
Jin X C, Ong S H and Jayasooriah. 1995. A practical method for estimating fractal dimension. Pattern Recognition Letters, 16(5):457-464[DOI:10.1016/0167-8655(94)00119-N]
Kaewaramsri Y and Woraratpanya K. 2015. Improved triangle box-counting method for fractal dimension estimation. Recent Advances in Information and Communication Technology, 361:53-61[DOI:10.1007/978-3-319-19024-2]
Keller J M, Chen S S and Crownover R M. 1989. Texture description and segmentation through fractal geometry. Computer Vision, Graphics, and Image Processing, 45(2):150-166[DOI:10.1016/0734-189X(89)90130-8]
Lai K X, Li C C, He T, Chen L, Yu K and Zhou W S. 2016. Study on an improved differential box-counting approach for gray-level variation of images//Proceedings of the 10th International Conference on Sensing Technology (ICST). Nanjing: IEEE: 1-6[ DOI:10.1109/ICSensT.2016.7796217 http://dx.doi.org/10.1109/ICSensT.2016.7796217 ]
Li J, Du Q and Sun C X. 2009. An improved box-counting method for image fractal dimension estimation. Pattern Recognition, 42(11):2460-2469[DOI:10.1016/j.patcog.2009.03.001]
Liu Y, Chen L Y, Wang H M, Jiang L L, Zhang Y, Zhao J F, Wang P Y, Zhao Y C and Song Y C. 2014. An improved differential box-counting method to estimate fractal dimensions of gray-level images. Journal of Visual Communication and Image Representation, 25(5):1102-1111[DOI:10.1016/j.jvcir.2014.03.008]
Mandelbrot B B and Wheeler J A. 1983. The fractal geometry of nature. American Journal of Physics, 51(3):286-287[DOI:10.1119/1.13295]
Mandelbrot B B. 1977. Fractals: Form, Chance and Dimension. San Francisco: Freeman
Marchette D J, Lorey R A and Priebe C E. 1997. An analysis of local feature extraction in digital mammography. Pattern Recognition, 30(9):1547-1554[DOI:10.1016/S0031-3203(96)00173-2]
Novianto S, Suzuki Y and Maeda J. 2003. Near optimum estimation of local fractal dimension for image segmentation. Pattern Recognition Letters, 24(1/3):365-374[DOI:10.1016/S0167-8655(02)00261-1]
Panigrahy C, Seal A and Mahato N K. 2019. Quantitative texture measurement of gray-scale images:fractal dimension using an improved differential box counting method. Measurement, 147:#106859[DOI:10.1016/j.measurement.2019.106859]
Sandau K and Kurz H. 1997. Measuring fractal dimension and complexity-an alternative approach with an application. Journal of Microscopy, 186(2):164-176[DOI:10.1046/j.1365-2818.1997.1270685.x]
Sarkar N and Chaudhuri B B. 1994. An efficient differential box-counting approach to compute fractal dimension of image. IEEE Transactions on Systems, Man, and Cybernetics, 24(1):115-120[DOI:10.1109/21.259692]
Tolle C R, McJunkin T R and Gorsich D J. 2003. Suboptimal minimum cluster volume cover-based method for measuring fractal dimension. IEEE Transactions on Pattern Analysis and Machine Intelligence, 25(1):32-41[DOI:10.1109/TPAMI.2003.1159944]
VossR F. 1986. Characterization and measurement of random fractals. Physica Scripta, 1986(T13):27-32[DOI:10.1088/0031-8949/1986/T13/004]
Zborovský I. 2018. A conservation law, entropy principle and quantization of fractal dimensions in hadron interactions. International Journal of Modern Physics A, 33(10):#1850057[DOI:10.1142/S0217751X18500574]
相关作者
相关机构
京公网安备11010802024621