Next Article in Journal
Low Entropy Future Boundary Conditions
Previous Article in Journal
Estimating the Individual Treatment Effect on Survival Time Based on Prior Knowledge and Counterfactual Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Problems of the Grid Size Selection in Differential Box-Counting (DBC) Methods and an Improvement Strategy

1
School of Naval Architecture and Ocean Engineering, Dalian University of Technology, No. 2 Linggong Road, Ganjingzi District, Dalian 116024, China
2
Collaborative Innovation Centre for Advanced Ship and Deep-Sea Exploration, Shanghai Jiaotong University, No. 800 Dongchuan Road, Minhang District, Shanghai 200240, China
3
State Key Laboratory of Structural Analysis for Industrial Equipment, Dalian 116024, China
4
School of Foreign Languages, Dalian University of Technolog, No. 2 Linggong Road, Ganjingzi District, Dalian 116024, China
*
Author to whom correspondence should be addressed.
Entropy 2022, 24(7), 977; https://doi.org/10.3390/e24070977
Submission received: 6 June 2022 / Revised: 7 July 2022 / Accepted: 13 July 2022 / Published: 14 July 2022

Abstract

:
The differential box-counting (DBC) method is useful for determining the fractal dimension of grayscale images. It is simple to learn and implement and has been extensively utilized. However, this approach has several problems, such as over- or undercounting the number of boxes due to inappropriate parameter choices, limiting the calculation accuracy. Many studies have been conducted to increase the algorithm’s computational accuracy by improving the calculating parameters of the differential box-counting method. The grid size is a crucial parameter for the DBC method. Generally, there are two typical ways for selecting the grid size in relevant studies: consecutive integer and divisors of image size. However, both methods for grid size selection are problematic. The consecutive integer method cannot partition the image entirely and will result in the undercounting of boxes; the divisors of image size can partition the image completely. However, this method uses fewer grid sizes to compute fractal dimensions and has a relatively huge distance error (DE). To address the shortcomings of the above-mentioned two approaches, this research presents an improved grid size selection strategy. The improved method enhances computational accuracy by computing the discarded image edge areas in the consecutive integer method, allowing the original image information to be used as thoroughly as the divisor strategy. Based on fractional Brownian motion (FBM), Brodatz, and Aerials image sets, the accuracy of the three grid size selection techniques (consecutive integer method, divisors of image size method, and the improved algorithm) to compute the fractal dimension is then compared. The results reveal that, compared to the two prior techniques, the revised algorithm described in this study minimizes the distance error and increases the accuracy of the fractal dimension computation.

1. Introduction

An image captured by a camera is a projection of an actual three-dimensional shape on a plane. The image textures can reflect the morphological features of the physical object. As a result, objects can be identified by evaluating the grayscale variations of an image. Textured surfaces, on the other hand, are inherently complex in natural scenes. Irregular and complex objects cannot be described using Euclidean geometry. Mandelbrot proposed utilizing fractal geometry to describe this type of phenomenon in 1983 [1]. Fractal geometry is used to define self-similar scale-independent elements known as fractal sets. The irregularity of a fractal set can be computed using the fractal dimension. The fractal dimension is now widely utilized in computer vision applications such as texture analysis [2], image segmentation [3], shape recognition [4], pattern recognition [5], time series analysis [6], complex network analysis [7], landslide susceptibility assessment [8], topography analysis of thin films [9], cement-based materials analysis [10], and description of urban morphology [11].
Researchers have proposed many calculating methods to precisely estimate the fractal dimension. Mandelbrot first proposed calculating the fractal dimension when determining the length of the British coastline [1]. Then, based on Mandelbrot’s idea, Pentland [12], Peleg et al. [13], Clarke et al. [14], Dubuc et al. [15], Keller et al. [16], and Gagnepain et al. [17] proposed various methods for determining fractal dimension.
In 1994, Sarkar et al. [18] proposed the differential box-counting (DBC) method to compute the fractal dimension by counting the number of boxes. This method is extensively utilized since it is simple to understand and implement. However, the DBC approach has numerous flaws, including excessive counting of z-direction boxes, inappropriate box heights, inaccurate box-counting in the xy-direction, and inappropriate box sizes. These weaknesses frequently result in incorrect fractal dimensions, severe distance errors (DEs), and other problems.
For the DBC method, the fractal dimension is calculated by fitting a series of points (log1/r, logNr) in a log–log plot. The parameter associated with r is the grid size s, while the Nr value is influenced by many parameters, such as the box side length s and height h, the number of boxes nr of each gird, and the partitioning method of the xy plane. The calculation methods of these parameters directly impact the calculating accuracy of the DBC method. Many studies have been undertaken to increase the computational accuracy by improving each parameter of the DBC method to tackle the shortcomings of the original DBC approach.
Jin et al. [19] discovered that, during the DBC calculation, the log–log plot presents “steps” under large s values. The central portion of the curve had a relatively constant gradient, while the plot started to level off for smaller values of s. This phenomenon decreased the accuracy of the calculation. Thus, the authors proposed the RDBC approach to lower the DE by optimizing the range of grid size s. Although this study indicates that the trend at both ends of the curve influences the calculation results, it does not give a complete examination of the origins of its phenomenon and does not fix the underlying problems.
Chen et al. [20] presented the SDBC method to overcome the problem of overcounting boxes in the z-direction, by introducing a box-shifting mechanism in the z-direction to optimize the calculation of nr. Li et al. proposed a new nr strategy in 2006 [21] and 2009 [22] to overcome the problem of overcounting boxes in the z-direction. They also proposed an overlapping grid partitioning approach to address box over- and undercounting problems along the xy-axis, where two nearby grids overlap by one row and one column. However, several shortcomings in this method have been identified in previous literature [23].
Long et al. [24] proposed the integer ratio DBC (IRDBC) to estimate the FD of rectangular images. IRDBC avoided the overcounting of boxes along the xy-axis by employing a new nr formula that does not use the ceiling function. As a result, IRDBC generates authentic values for nr. However, IRDBC employs only integer values for 1/r, resulting in very few grid sizes being used to compute the fractal dimension.
Liu et al. [25] optimized the formula to compute nr and introduced a grid-shifting mechanism to solve the undercounting of boxes along the xy-direction; for non-trivial plane partitioning, the image size divisors were employed as the grid size s. Compared to DBC, they indicated that the improved method enhanced accuracy by 24.1%. Based on Liu’s work, Lai et al. [26] improved the computation of box h. Panigrahy et al. have put in much effort to improve the DBC method. In 2017 [27], they investigated the effect of box height on the accuracy of DBC computation and presented a new method of calculating box height, which considerably enhanced the accuracy of fractal dimension calculation. In 2020 [28], they proposed three new DBC algorithms based on weighted least squares regression. These methods also use a new xy-plane shifting mechanism and a modified formula for computing nr. However, their method utilized the divisors of image size as the grid size, resulting in a larger DE. In 2021, Liu et al. [29] proposed the IMDBC method, which improved the box-shifting mechanism. The proposed method not only solved the undercounting problem along the xy-direction but also had superior stability for image rotation. Compared to DBC and its state-of-the-art methods, the IMDBC method has higher computational accuracy.
According to the studies mentioned above, each algorithm overcomes the shortcomings of the original DBC method by optimizing the calculation parameters to enhance the computing accuracy and minimize distance error. Various parameters affect the computation of the fractal dimension; different approaches have different optimization focuses. Nevertheless, they all achieved better results than the DBC method under their corresponding validation method. However, some studies failed to provide more persuasive evidence on the enhanced accuracy because their validations were not performed using images with known theoretical fractal dimensions, such as synthesized FBM Database [25,29].
Among the various parameters utilized in DBC calculations, the grid size s is crucial. The choice of grid size for a square image impacts how the plane is partitioned during computing. The original DBC approach was based on consecutive integer partitioning, which discards areas that cannot be partitioned in an integer manner [23]. Currently, this strategy is frequently used in studies of state-of-the-art DBC methods [22,26,30,31]. However, in other works, such as those of Liu et al. [25] and Panigrahy et al. [28], the authors utilized a similar approach to that used in Biswas’ study [32], employing divisors of the image size as the grid size s to partition the square image fully.
These two approaches for calculating s values are frequently used in DBC algorithms. Both strategies, however, have limitations. The consecutive integer partitioning method discards the boundary region; hence, the original image is not fully utilized, which will lead to the problem of undercounting boxes. Moreover, as noted previously, the curve of the consecutive integer method is shaped like “steps” at large s values in the log–log plots, which will also affect the calculation accuracy [19]. Although the divisor method can partition the entire image, it omits a significant amount of information at other s values, which leads to result distortion and high DE values [33].
The weight approach has been utilized to compute nr in some methods [23,24,30]. The weight technique is used to calculate nr in a grid whose area is less than s × s and to assign weights based on the actual area of the grid. Long et al. [24] were the first to propose the weight method for calculating the nr values of the boundary grids. Nunsong et al. [30] and Panigrahy et al. [23] then applied the weight technique to the modified triangle box-counting (TBC) methods. In the work of Long et al., the grid partitioning approach is an integer multiple of r values. This strategy would result in fewer s values utilized for calculation and, sometimes, the same s for varied r values [33]. In the studies of Nunsong and Panigrahy, on the other hand, the weight technique was utilized to calculate triangular grids. However, most current DBC algorithms are based on square grids, where the weight method is rarely used. Hence, we propose an improved continuous integer technique for square grid calculation based on the weight method to tackle the problems of the typical divisor method and consecutive integer method.
In order to further investigate the impact of the grid size selection on fractal dimension calculation, this study first introduces the principles of two typical grid size selection methods and assesses their advantages and disadvantages. Then, by processing the discarded edge regions of an image with the weight method, an improved strategy is proposed to tackle the undercounting problem of the original consecutive integer approach and the result distortion problem of the divisor method. Subsequently, based on three image sets (synthesized FBM database, Brodatz database, and Aerials database), the impacts of the three grid size selection methods (original consecutive integer, divisors of image size, and the improved method) were then analyzed, evaluated, and compared. The results reveal that, compared with the original consecutive integer method and the divisor method, the DBC technique based on the improved grid size selection strategy can better estimate fractal dimension values, produce lower DE values, and obtain more consistent goodness of fit values. The various notations and abbreviated terms used in this work are summarized in Abbreviations.
The remaining parts of the paper are as follows: Section 2 describes the classic DBC method, the typical grid size selection strategies, and the drawbacks of each strategy. In the third section, an improved grid size selection strategy based on the consecutive integer method is proposed. Section 4 discusses the three image databases (FBM, Brodatz, Aerials) utilized for validation and evaluation metrics. Section 5 describes and discusses the results of the two typical grid size selection strategies and the improved one based on three image databases. Section 6 presents the conclusions.

2. Materials and Methods

2.1. The DBC Method

In 1994, Sarkar et al. [18] proposed a differential box-counting (DBC) technique to compute the fractal dimension of a grayscale image. A square grayscale image with a resolution of M × M can be mapped in 3D space, as illustrated in Figure 1, where the x- and y-directions denote the image length and width. The grayscale values are represented along the z-direction. The xy plane is divided into non-overlapping grids of size s × s. The values of s vary from 2 to M/2. Non-square grids are formed at the borders if s is not a divisor of M. In this situation, the computation disregards these non-square grids near the boundary. Thus, grids of size s × s partition the plane fully. The grid ratio, r, is calculated using s/M. To represent the gray level variation, nr boxes of size s × s × h are required for each grid, where h is the box height. The following equations are used to compute h and nr (Equations (1) and (2)):
  G h = s M
n r i , j = g max h g min h + 1
G is the total number of grayscale orders in the 8-bit grayscale image, which is 256; gmax and gmin are the maximum and minimum grayscale values in the (i, j)th grid. Then, the total number of boxes Nr corresponding to the ratio r can be calculated using the following formula:
N r = i , j n r i , j
Finally, the fractal dimension D is computed by fitting the points (log1/r, logNr) ∀r with linear least squares regression (LLS). LLS can produce the fitting line y = px + q for these points. The slope and intercept of the fitted line are denoted by p and q, respectively. Here, the slope p is the fractal dimension D that we need.
Figure 1. Sketch of determination of the number of boxes (nr) by DBC method (here M = 12, s = 3, nr is 3 for the grid).
Figure 1. Sketch of determination of the number of boxes (nr) by DBC method (here M = 12, s = 3, nr is 3 for the grid).
Entropy 24 00977 g001

2.2. Two Typical Methods for Determining Grid Size and Their Shortcomings

Many modified DBC methods have emerged based on Sarkar’s DBC method. The grid size s is an essential parameter in these methods. It determines how to partition the xy plane. In general, there are two types of grid size selection methods: consecutive integer and divisors of image size. However, each of these solutions has its shortcomings.

2.2.1. Consecutive Integer Method

The original DBC method uses all successive integers between smin and smax as grid sizes. The same partitioning strategy was used in other state-of-the-art methods such as RDBC [19], SDBC [20], Li’2006 DBC [21], Liu’2008 DBC [31], Li’2009 DBC [22], Lai’2016 DBC [26], and Liu’2021 DBC [29]. Most improved algorithms employ this partitioning strategy. Using consecutive integers as grid size can obtain more fitting points for calculating fractal dimensions. However, this method suffers from some limitations. The primary problem with the consecutive integer method is that for large grid size s, several s values correspond to the same Nr value, and the relevant curve would be shaped like a “step” in the log–log plot [28].
We take a 512 × 512 image as an example. For the consecutive integer method, smax can be up to 256. At this point, the grids have partitioned the image into four regions (Figure 2e). Several circumstances occur when s is between 128 and 256, as illustrated in Figure 2. When s gradually decreases from 256, the entire image cannot be partitioned completely, and the discarded region (blue) appears, as shown in Figure 2d. Then, s continues to decrease, and the area of the discarded region increases (Figure 2c). Finally, when s is reduced to a value less than 170, as shown in Figure 2b, the number of grids becomes nine, but the plane is still not fully partitioned, even though the discarded area is smaller. When s decreases to 128, as indicated in Figure 2a, the image can be fully partitioned once more.
The results in Figure 3 can then be obtained based on the above analysis. The relationship between the actual area for calculation (percentage of the image area) and the gird size s is depicted in Figure 3. The amplitude of the curve increases with increasing s, as shown in the figure. The minimum value of the curve is even less than 50%. When consecutive integers are used as s values, the area used for calculation differs significantly from the actual image area. This deviation becomes more pronounced as the s value increases. Because of the discarded areas, the number of boxes is undercounted, resulting in distorted results.
In theory, a smaller s value should result in a larger Nr value. However, due to the vast number of undercounted boxes in this method, especially at large s values, the curve is shaped like a “step”, which is a visual representation of the box undercounting problem.

2.2.2. Divisors of Image Size

Biswas [32] first proposed using 2 i | Z + , where i 1 , log 2 M 1 and log 2 M Z + . Such methods identify the divisors of M to determine s values. This results in grids that partition the entire image without the issue of discarding edge regions, as shown in Figure 2a,e. Some s values, as illustrated in Figure 3, correlate to a calculated area/image area percentage that can reach 100%. In the divisor method, such s values are selected for calculation. This approach is relatively fast since the number of calculated s values is significantly lower than that in the consecutive integer method. All of the s values can completely partition the image, and the corresponding Nr values can better capture the properties of the entire image.
However, the reduced number of s values introduces other issues. Images of natural settings are frequently not ideal fractal objects [23] but rather approximate fractals. As a result, fewer computed points may not necessarily represent the image features and cause the results to deviate from the actual fractal dimensions. Moreover, for a 512 × 512 image, the highest s value of the method is 256, with the second biggest grid size being 128. This significant interval between s values at large scales tends to ignore plenty of grayscale information. Furthermore, the distance error of the divisor method is likewise fairly large [33].

3. Improved Consecutive Integer Method

As mentioned above, the divisor method can thoroughly partition the image, but the number of s values is minimal, which can easily lead to distorted results. Although more s values are used in the consecutive integer technique, most of the s values, which cannot entirely partition the image, are prone to the undercounting problem of boxes, especially at large grid size s. Thus, we expect an improved method that can entirely partition the image like the divisor method, but also has numerous s values involved in FD calculation like the consecutive integer method.
To achieve this, we can improve the consecutive integer method by supplementing it with the undercounting boxes. If a given value of s does not completely partition the image, a zone with a width less than s is generated at the boundaries. This is depicted in the blue region of Figure 4. Although the area of each grid in the blue region is less than s × s, it also corresponds to a part of a two-dimensional surface with grayscale variations inside, and the nr value can be computed using Equation (2). However, because the area is less than s × s, the nr value cannot be determined directly as other grids. Thus, the weight approach is introduced here.
The weight method would assign the corresponding weights according to the actual area of the grids [24]. The number of boxes and the area weights need to be considered simultaneously in calculating the nr value of grid (i, j)th. The weight factor F is calculated as shown in Equation (4). A(i, j) is the actual area of the (i, j)th square, and S stands for s × s, which is the area of a grid. F is the ratio of the actual grid area to the theoretical grid area. The corresponding nr value calculation can be obtained from Equation (5).
F = A i , j S
n r i , j = F × [ g max h g min h + 1 ]
The code of the DBC method based on two consecutive integer methods is shown in Figure 5. The improved method’s specifics are as follows:
Partition an M × M image into tiny square grids with size s. The number of grids is Size × Size . If M is not divisible by s at this point, non-square regions will form at the margins. As shown in Figure 4, grids 1, 2, 4, and 5 are square regions while grids 3, 6, 7, 8, and 9 are irregular edge regions.
Figure 5. Algorithm code of the DBC method with different consecutive integer methods (Left: the original one; Right: the improved one).
Figure 5. Algorithm code of the DBC method with different consecutive integer methods (Left: the original one; Right: the improved one).
Entropy 24 00977 g005
By replacing Equation (2) with Equation (5), the nr value for each grid of the image can be calculated. Subsequently, summing the nr values for each grid gives Nr (Equation (6)).
N r = i , j n r i , j
Finally, linear least squares regression (LLS) is used to fit the obtained points (log1/r, logNr) ∀r to calculate the fractal dimension D. Section 5 of the study will further investigate the validity of the method.

4. The Experimental Methodology and Evaluation Metrics

4.1. Databases for Validation

To compare the performance of the consecutive integer technique, the divisor method, and the improved method, we validate these three approaches using the synthesized FBM images, Brodatz database, and Aerials database. The FBM images can be synthesized based on the theoretical fractal dimension, and the produced grayscale images can be used to validate the accuracy of the three algorithms. The Brodatz and the Aerials databases are typical for validating the fractal dimension algorithm, both obtained in natural scenes. With the help of the Brodatz and the Aerials databases, the algorithms’ performance for texture images and aerial photographs could be evaluated, respectively.

4.1.1. Synthesized FBM Images

In this research, FBM images are synthesized based on the random midpoint displacement (RMD) method. [34] Table 1 tab displays the computational parameters of RMD. The “maxlevel” is used to limit the size of the synthesized image, which is 2 maxlevel + 1 ; “sigma” is the initial standard deviation; H is the Hurst parameter to determine the actual fractal dimension D = 3 − H. The Boolean parameter “addition” is used to turn on and off the random additions. The “seed” is the seed value for the random number generator.
Nine images with a resolution of 513 × 513 are created using the RMD method with varied Hurst parameters. To obtain images with a resolution of 512 × 512 , the last row and last column of the image are removed. Figure 6 depicts the synthesized images and their theoretical fractal dimension values.

4.1.2. Brodatz Database

The Brodatz database [35] contains 112 grayscale texture images and is one of the most extensively used image databases. Each image in the database has an unknown theoretical fractal dimension. Sixteen images (shown in Figure 7) were chosen from the database for calculation. Because the images in the Brodatz database are all 640 × 640 resolution, the bicubic algorithm was employed to resize the chosen images to 512 × 512 resolution.

4.1.3. Aerials Database

As illustrated in Figure 8, twelve satellite images from the SIPI image database [36] were chosen to validate the algorithms’ performance. Because the original photos are not grayscale, they need to be converted into grayscale images before calculation using rgb2gray function in Matlab software. The rgb2gray algorithm used in Matlab is a weighted average of the R, G, and B channels’ values, as shown in Equation (7):
Gaylevel = 0.2989R + 0.5870G + 0.1140B

4.2. Evaluation Metrics

Generally, LLS fit to a set of points in a log–log plot is required to calculate the fractal dimension. The goodness of fit (R2) measures how well the fitting line matches the scattered points, whereas the distance error (DE) measures the average error between the fitted and actual values. All three databases are calculated using these two assessment measures. The correlation coefficient and slope   b ^ are introduced to the calculation of synthetic FBM images. These two metrics can evaluate whether the estimated fractal dimensions correlate well with the theoretical fractal dimensions.

4.2.1. Goodness of Fit (R2)

The goodness of fit is used to evaluate the fit of the regression line to the observed values. The maximum value of R2 is 1. R2 close to 1 indicates the excellent fit of the regression line to the observed values; conversely, R2 close to 0 indicates the poor fit of the regression line to the observed values. For m samples, (x1, y1), (x2, y2),…, (xm, ym), the estimates corresponding to the model are (x1, y 1 ^ ), (x2, y 2 ^ ),…, (xm, y m ^ ).
Then, calculate the total sum of squares (TSS):
TSS = i = 1 m y i   y ¯ 2
Calculate the residual sum of squares (RSS):
RSS = i = 1 m y i ^ y i 2
Then, we can get:
R 2 = 1 RSS / TSS

4.2.2. Distance Error (DE)

The fractal dimension is calculated using LLS fitting in the various DBC techniques. The distance error (DE) is defined as the root-mean-square distance between the scatter points and the fitted line in a log–log plot. DE is a crucial metric for evaluating DBC methods and has been utilized in many studies [23,29,33]. Various optimizations of the DBC method are also aimed at smaller DE. The calculation equation is shown below.
DE = 1 m i = 1 m px i + q y i 2 1 + p 2

4.2.3. Correlation Coefficient γ

Correlation coefficients are used to show the linear relationship between two sets of data. The algorithms provide a number between −1 and 1, where 1 represents a strong positive relationship, −1 represents a strong negative association, and zero represents no relationship at all. For two sets of variables, X(x1,x2,…,xm) and Y(y1,y2,…,ym), the correlation coefficient γ can be calculated by the following equation:
γ = Correl X , Y = x i   x ¯ y i   y ¯ ( x i   x ¯ ) 2 ( y i   y ¯ ) 2

4.2.4. Slope   b ^

  b ^ is the slope of LLS fitting line for m sets of samples (x1, y1), (x2, y2),…, (xm, ym). Corresponding to the model estimates (x1, y 1 ^ ), (x2, y 2 ^ ),…, (xm, y m ^ ), the slope b is determined as shown in Equation (13). This metric is utilized in the FBM database calculation to assess how well the fractal dimension calculated by DBC methods matches the theoretical values.
  b ^ = i = 1 m x i   x ¯ y i   y ¯ i = 1 m x i   x ¯ 2 = i = 1 m x i y i n   x ¯   y ¯ i = 1 m x i 2 n   x ¯ 2

4.3. Flow Chart of the Experiment

Combining the above content, we can get the experimental process of this study, as shown in Figure 9. The experimental results in the fifth section are obtained according to this procedure.

5. Results and Discussions

5.1. The Effect of Grid Size Selection on the Fractal Dimension Calculation for Synthesized FBM Images

The RMD method was used to generate FBM images with theoretical fractal dimensions ranging from 2.1 to 2.9. The following methods were used to calculate grid size: divisor of image size (ER), original consecutive integer method (CI), and optimized consecutive integer method (OCI). Table 2 displays the fractal dimension calculation, the goodness of fit, and the distance error corresponding to the three methods. Figure 10, Figure 11 and Figure 12 illustrate the data in Table 2. The correlation coefficients and slope   b ^ between the theoretical fractal dimensions and the calculated fractal dimensions are shown in Table 3. Theoretically, the estimated fractal dimensions should be identical to the theoretical values, but this does not happen due to methodology error. When the correlation coefficient and slope are near 1, we can conclude that the corresponding method performs well.
Figure 10 shows that the fractal dimension value calculated by the three methods rises as the TFD value increases. The consecutive integer method achieves the largest value from the fractal dimension value calculation, the divisor method produces the smallest value, and the computed value of the enhanced consecutive integer method is between the two. According to the data in Table 3, the improved approach has the largest correlation coefficient, the original consecutive integer method has the smallest, and the divisor method has a correlation coefficient between the two. This demonstrates that the fractal dimension values calculated by the improved consecutive integer method correlate better with TFD values than those of the other two methods. In terms of slope, the improved consecutive integer method has a somewhat lower slope than the original method. However, both have higher slope values than the divisor method. The above results demonstrated that, compared to the consecutive integer methods, the computed fractal dimensions derived by the divisor method have a relatively good correlation with the TFD values but the trend deviation is large. The calculated results of the original consecutive integer method can better match the trend of the TFD values, but the correlation is the worst. The improved method outperforms the other two in terms of linear correlation between calculated FD and TFD values, although it has slightly lower slope values than the original consecutive integer method.
When comparing the goodness of fit results in Table 2 and Figure 11, it can be observed that the improved method has the highest goodness of fit, followed by the divisor method, and the original consecutive integer method has the lowest goodness of fit. When the DE values are compared (Figure 12), the divisor method has the largest distance error; the consecutive integer method has a relatively moderate distance error, and the enhanced method has the smallest distance error.
To investigate the causes of this phenomenon, we generated Figure 13 based on the calculation of the FBM image with a theoretical fractal dimension of 2.9. Figure 13a–c depict the log–log plot curves of the three approaches, respectively. We produced Figure 13d to compare the difference in the number of boxes between the improved consecutive integer method and the original method.
In this work, eight s values are employed for the divisor method and 255 for the consecutive integer method. These 255 s values contain the divisor method’s eight s values. This is equivalent to the consecutive integer technique having 247 more data points than the divisor method for LLS fitting. The absence of these 247 points is also responsible for the distinction between the divisor method and the consecutive integer method.
According to Figure 13c, the divisor method requires fewer scatter points for the calculation, which is related to the lower number of s values needed for the calculation. Fewer points reduce the computing work accordingly. However, the relatively small number of grid size values leads to the insufficient utilization of the original image, which can easily distort the fractal dimension result. As a result, although the divisor method has a higher R2 value and the obtained fractal dimension value has a higher correlation with the TFD value, the calculated fractal dimensions are smaller than those of the two consecutive integer methods, the distance errors are larger, and the trend deviation of the calculated result from the TFD value is relatively large.
For the consecutive integer methods, more s values are used, and more corresponding Nr values are acquired. Even though the calculation amount is substantially larger than that of the divisor method, the grayscale information offered by the original image can be fully utilized. As a result, consecutive integer methods produce higher FD and lower distance error compared to the divisor method, and the computed fractal dimensions trend is closer to the TFD values. However, because the edge region is discarded in the original consecutive integer technique, the undercounting of boxes emerges at most s values. The “steps” in the curve, as seen in Figure 13a, best represent this problem. The improved method reconsiders the discarded boxes and produces a smoother curve, as seen in Figure 13b.
The improved method considerably improves the number of computed boxes compared to the original consecutive integer method, as shown in Figure 13d. The higher the s value, the greater the percentage of improvement. This curve resembles the trend in Figure 3. It can be interpreted as the improved approach compensating exactly for the original method’s discarded boxes, and the larger the s value, the larger the percentage of compensation. Compared to the original consecutive integer method, the improved method makes better use of the image’s grayscale information. The compensating for the discarded boxes, on the one hand, raises the Nr values under large s values, which results in a reduction in the slope of the LLS line (i.e., the fractal dimension value) in Figure 13a. As a result, the fractal dimension of the improved method appears to be less than that of the original consecutive integer methods, as illustrated in Figure 10.
On the other hand, the “steps” in the curve of the original consecutive integer method are deleted, the incorrect box-counting is revised, and the computational accuracy is enhanced. Thus, compared to the original consecutive integer method, the improved method achieves larger goodness of fit and a smaller distance error, and the computed fractal dimension has a better correlation with the TFD value.
In summary, the improved consecutive integer method outperforms the divisor method and the original consecutive integer method in computing accuracy for the fractal dimension calculation of FBM images.

5.2. The Effect of Grid Size Selection on the Fractal Dimension Calculation for Brodatz Images

The Brodatz texture database, a commonly used database in DBC investigations, is utilized for validation to examine the three methods’ performance in fractal dimension calculation of texture images. This database is composed of grayscale images with various textures. The calculation in this section is based on the consecutive integer method, the divisor method, and the improved consecutive integer method for 16 images from the Brodatz database. Table 4 displays the acquired results for fractal dimension, the goodness of fit, and distance error, and Figure 14, Figure 15 and Figure 16 illustrate the data in the table.
Figure 14 shows that the three methods for calculating the fractal dimension have a similar variation trend. The trend depicted in Figure 14 is generally consistent with the prior study [33]. The fractal dimensions acquired by the consecutive integer method are large, while the fractal dimensions produced by the divisor method are small; the fractal dimension result of the improved method is between the two. The improved consecutive integer method has a much higher goodness of fit than the original consecutive integer method, according to the goodness of fit curve in Figure 15; the goodness of fit achieved by the divisor method is between the two. Figure 16 illustrates that the distance error values of the divisor method are higher than those of the two consecutive integer methods, and the improved consecutive integer method obtains the smallest distance errors.
The Brodatz texture database, unlike the FBM images, is derived from the natural scene. As discussed in Section 2.2.2, images of natural scenes are not always ideal fractal patterns [23]. This is where the Brodatz database images differ from the FBM-generated images. It also emphasizes the significance of validating with the Brodatz database. Based on the analysis of the previous section, in the calculation of Brodatz images, the improved consecutive integer method considers edge regions and calculates more boxes than the original consecutive integer method. It is equivalent to raising the value of Nr under certain s values, particularly when s is large. Compared to the original consecutive integer approach, the improved method decreases the slope of the fitted line, i.e., the fractal dimension value. For calculating the fractal dimension of texture images, the improved method obtains larger goodness of fit and a smaller distance error compared to the original method. It demonstrates that the conclusions obtained in the previous section are still applicable to texture image calculation.
The preceding section mentioned that using fewer s values can result in distorted computing results for the divisor method. For the Brodatz database, the distortion of the divisor method results in small fractal dimensions and large distance errors. This result agrees with the FBM-based study described above.
In summary, the improved consecutive integer method outperforms the original method for texture image calculation. Because of distortion, the divisor method does not produce satisfactory results when calculating texture images. In 2021, Liu et al. [29] compared their method to the algorithms proposed by Panigrahy et al. in 2020 [28] and Li et al. in 2014 [25]. For the Brodatz database, the mean value of DE calculated by these methods is more than 0.0025. In this study, the Brodatz database’s mean DE value determined by using the DBC algorithm only modified with the improved consecutive integer method is 0.024. Furthermore, only the grid size selection method is optimized in this study compared to the original DBC approach; no box-shifting mechanism or box height change is utilized. This also emphasizes the significance of grid size selection.

5.3. The Effect of Grid Size Selection on the Fractal Dimension Calculation for Aerials Images

To compare the performance of the three methods, twelve images from the Aerials database with a resolution of 512 × 512 were chosen. As these are high-altitude aerial images, they are suitable for remote sensing applications. Figure 17, Figure 18 and Figure 19 and Table 5 illustrate the fractal dimension, goodness of fit, and DE values obtained by three different methods.
According to Figure 17, the estimated fractal dimensions are identical to those of Brodatz and FBM. The original consecutive integer method produces the highest fractal dimension, the divisor method produces the smallest fractal dimension, and the improved consecutive integer method produces values in between. In terms of goodness of fit, the improved method outperforms the original consecutive integer method. Unlike Brodatz and FBM, the divisor technique’s goodness of fit for Aerials images is almost equivalent to that of the improved consecutive integer approach. The distance error results are similar to the FBM and Brodatz results, with the divisor method generating the highest error, followed by the original consecutive integer method; the improved consecutive integer method produces the lowest error.
The Aerials images are pictures of natural scenes, which are also not ideal fractals. Compared to Figure 14 and Figure 16 in the preceding section, the fractal dimension and distance error results of the Aerials images (Figure 17 and Figure 19) are extremely similar to the computed results of Brodatz images. This also validates the conclusion of the previous section. It indicates that, for Aerials images, the improved method still achieves lower distance errors than the divisor method and the original consecutive integer method.
However, unlike the results for Brodatz images, the goodness of fit values obtained by the divisor method are not intermediate between the two consecutive integer methods. We indicated in Section 5.1 that the divisor method requires eight points to fit an LLS line, whereas the consecutive integer method takes 255 points, including the 8 points of the divisor method and the other 247 data points. The absence of 247 points in the divisor method makes the calculation results “distorted”. The effect of the “distortion” varies depending on the image type. Comparing Figure 7 and Figure 8, it can be seen that the aerial image has different characteristics from the texture image. The Brodatz texture image is more homogeneous and has basically the same features in all image regions, but the Aerials image usually appears with some conspicuous objects.
Because there are fewer s values in the divisor technique, the fitting results will be considerably influenced if the image’s conspicuous objects influence certain s values. Because the consecutive integer method uses a large number of s values, some abnormal scatter points do not affect the results. As a result, in Figure 18, the divisor method’s goodness of fit curve seems to oscillate around the curve of the improved consecutive integer method. Of course, further research is required to confirm this. In summary, the improved consecutive integer method outperforms the divisor method and the original continuous integer method for computing the fractal dimension of Aerials images.

5.4. Applying Improved Grid Selection Strategies to Other DBC Methods

From the above analysis based on the original DBC method, it is found that the improved grid selection strategy, i.e., the improved consecutive integer method, can obtain better accuracy of fractal dimension calculation. For further validation, we tested the effectiveness of the improved strategy based on the three methods of Long’2013DBC [24], Lai’2016DBC [26], and Liu’2021DBC [29]. The image database used for the calculation is the same as that described in Section 5.1. The results of the three methods (with/without the improved strategy) are calculated separately based on the FBM images. The obtained results of fractal dimension, goodness of fit, and distance error are shown in Table 6, Table 7 and Table 8.
From the fractal dimension results in Table 6, we can find that the Long’2013 method with the improved strategy obtains a higher fractal dimension than the original method. FDs of Lai’2016 and Liu’2021 methods show a fractal dimension decrease after applying the improved strategy. From the results in Table 7 and Table 8, it can be found that for all three methods, the improved strategy improves the goodness of fit and reduces the distance error compared to the original methods.
The strategy of integer r used in the Long’2013 method leads to fewer values of s involved in the calculation. This is very similar to the divisor method. Therefore, it is easy to produce the problem of small fractal dimension, large goodness of fit, and large distance error. However, because the weight method is used in Long’s method, the distance error obtained is not much different from that of the consecutive integer method even though the above problems exist. After applying the “consecutive integer method + weighting method” strategy, Long’s method could involve more s values and fully use the grayscale variation of the original image, resulting in a larger fractal dimension, higher goodness of fit, and smaller distance error.
In both Lai’2016 and Liu’2021 methods, the original consecutive integer method is used as the grid selection strategy. Thus, even though various optimizations have been performed in their methods, the problems caused by the original consecutive integer method still exist. Based on the analysis of previous sections, the original consecutive integer method has the problem of undercounting boxes. The larger the value of s, the higher the percentage of undercounting boxes. After applying the improved strategy, it is equivalent to raising the vertical coordinates of the points corresponding to large s values. This change reduces the excessive fractal dimension while increasing the goodness of fit and reducing the distance error. The fractal dimension, goodness of fit, and distance error results for Lai’2016 and Liu’2021 (Table 6, Table 7 and Table 8) confirm this conclusion.
In summary, the grid selection strategy based on the “consecutive integer method + weight method” can improve the goodness of fit, reduce the distance error, and obtain more accurate fractal dimension results for DBC methods. However, from the results in this section, although the grid selection strategy improves the computational accuracy compared to the original method, the calculated results of the three methods are very different. This is because many parameters affect the fractal dimension, and each method uses different optimization strategies for other parameters, resulting in many deviations in the results.

6. Conclusions

This study proposes an improved consecutive integer method to address the current difficulties of distorted calculation results and huge distance errors caused by the inappropriate choice of grid size s in the differential box-counting method. The synthetic FBM images, Brodatz database, and Aerials database are then used to evaluate and compare the effects of three grid size selection methods, namely the consecutive integer method, the divisor method, and the improved consecutive integer method, on the accuracy of fractal dimension calculation. Except for the different grid selections, all other parameters are identical to the DBC approaches. The results indicate that the original consecutive integer method ignores the boxes along the edges, resulting in fewer boxes to calculate. This reduces the goodness of fit and increases the distance error, distorting the estimated fractal dimension.
Although the divisor method has a small computation and can partition the whole image completely, the number of s values is too small. Then, a large amount of effective information is ignored compared with the consecutive integer method, resulting in a severe distortion of fractal dimension results and more significant distance error, and the fitting goodness is not stable. The improved strategy solves the undercounting problem of the original consecutive integer method by retaining the edge regions of images. Furthermore, the method can partition the image completely like the divisor method. Thus, the improved consecutive integer method obtains a smaller distance error than the original consecutive integer method and the divisor method, improving the accuracy of fractal dimension calculation.

Author Contributions

Conceptualization, W.J., Y.L. and J.W.; data curation, W.J.; formal analysis, W.J.; funding acquisition, W.J. and J.W.; investigation, W.J., Y.L. and J.W.; methodology, W.J., Y.L. and X.L.; resources, X.L. and J.Z.; software, R.L.; supervision, R.L., X.L. and J.Z.; validation, W.J.; visualization, W.J.; writing—original draft, W.J.; writing—review and editing, R.L. and J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (Grant No. 51479030).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors would also like to acknowledge the receipt of a research grant award as principal investigators from the National Natural Science Foundation of China under Grant No. 51479030.

Conflicts of Interest

The authors declare no conflict of interest.

Abbreviations

SymbolDescription
sSize of a square grid
sminThe minimum value of s
smaxThe maximum value of s
MImage size for a square image
GTotal number of gray levels in an image
gmaxMaximum gray level over a grid
gminMinimum gray level over a grid
nrTotal number of boxes at scale r, required to cover the rough surface over (i, j)th grid
NrTotal number of boxes at scale r, required to cover the rough surface of an image
rThe scale of a square grid for an image
hHeight of a box
γCorrelation coefficient
R2Goodness of fit
b ^ The slope of LLS fitted line (for evaluation of FBM images)
EREqual ratio. Indicates that s is a divisor of the image size
CIConsecutive integer. Indicates that the value of s is all integer from smin to smax.
CWThe “consecutive integer + weight method” strategy
OCIOptimized consecutive integer. Indicates that the division of the xy plane is based on the improved consecutive integer method.
TFDTheoretical fractal dimension refers to the fractal dimension used to generate FBM images
FDFractal dimension
DEDistance error
FBMFractional Brownian motion

References

  1. Mandelbrot, B.B. The Fractal Geometry of Nature/Revised and Enlarged Edition; W.H. Freeman and Co: New York, NY, USA, 1983. [Google Scholar]
  2. Backes, A.R.; Bruno, O.M. Texture analysis using volume-radius fractal dimension. Appl. Math. Comput. 2013, 219, 5870–5875. [Google Scholar] [CrossRef] [Green Version]
  3. Zhang, L.; Dang, F.; Ding, W.; Zhu, L. Quantitative study of meso-damage process on concrete by CT technology and improved differential box counting method. Measurement 2020, 160, 107832. [Google Scholar] [CrossRef]
  4. Neil, G.; Curtis, K. Shape recognition using fractal geometry. Pattern Recognit. 1997, 30, 1957–1969. [Google Scholar] [CrossRef]
  5. Silva, P.M.; Florindo, J.B. Fractal measures of image local features: An application to texture recognition. Multimedia Tools Appl. 2021, 80, 14213–14229. [Google Scholar] [CrossRef]
  6. la Torre, F.C.-D.; González-Trejo, J.I.; Real-Ramírez, C.A.; Hoyos-Reyes, L.F. Fractal dimension algorithms and their application to time series associated with natural phenomena. J. Phys. Conf. Ser. 2013, 475, 012002. [Google Scholar] [CrossRef]
  7. de Sá, L.A.P.; Zielinski, K.M.; Rodrigues, O.; Backes, A.R.; Florindo, J.B.; Casanova, D. A novel approach to estimated Boulingand-Minkowski fractal dimension from complex networks. Chaos Solitons Fractals 2022, 157, 111894. [Google Scholar] [CrossRef]
  8. Zhang, T.; Han, L.; Han, J.; Li, X.; Zhang, H.; Wang, H. Assessment of Landslide Susceptibility Using Integrated Ensemble Fractal Dimension with Kernel Logistic Regression Model. Entropy 2019, 21, 218. [Google Scholar] [CrossRef] [Green Version]
  9. Zhou, W.; Cao, Y.; Zhao, H.; Li, Z.; Feng, P.; Feng, F. Fractal Analysis on Surface Topography of Thin Films: A Review. Fractal Fract. 2022, 6, 135. [Google Scholar] [CrossRef]
  10. Wang, L.; Zeng, X.; Yang, H.; Lv, X.; Guo, F.; Shi, Y.; Hanif, A. Investigation and Application of Fractal Theory in Cement-Based Materials: A Review. Fractal Fract. 2021, 5, 247. [Google Scholar] [CrossRef]
  11. Chen, Y. Fractal Modeling and Fractal Dimension Description of Urban Morphology. Entropy 2020, 22, 961. [Google Scholar] [CrossRef]
  12. Pentland, A.P. Fractal-Based Description of Natural Scenes. IEEE Trans. Pattern Anal. Mach. Intell. 1984, PAMI-6, 661–674. [Google Scholar] [CrossRef]
  13. Peleg, S.; Naor, J.; Hartley, R.; Avnir, D. Multiple Resolution Texture Analysis and Classification. IEEE Trans. Pattern Anal. Mach. Intell. 1984, PAMI-6, 518–523. [Google Scholar] [CrossRef] [Green Version]
  14. Clarke, K.C. Computation of the fractal dimension of topographic surfaces using the triangular prism surface area method. Comput. Geosci. 1986, 12, 713–722. [Google Scholar] [CrossRef]
  15. Dubuc, B.; Roques-Carmes, C.; Tricot, C.; Zucker, S.W. The Variation Method: A Technique to Estimate the Fractal Dimension of Surfaces. Proc. SPIE-Int. Soc. Opt. Eng. 1987, 845, 241–248. [Google Scholar] [CrossRef]
  16. Keller, J.M.; Chen, S.; Crownover, R.M. Texture description and segmentation through fractal geometry. Comput. Vis. Graph. Image Process. 1989, 45, 150–166. [Google Scholar] [CrossRef]
  17. Gagnepain, J.; Roques-Carmes, C. Fractal approach to two-dimensional and three-dimensional surface roughness. Wear 1986, 109, 119–126. [Google Scholar] [CrossRef]
  18. Sarkar, N.; Chaudhuri, B. An efficient differential box-counting approach to compute fractal dimension of image. IEEE Trans. Syst. Man Cybern. 1994, 24, 115–120. [Google Scholar] [CrossRef] [Green Version]
  19. Jin, X.; Ong, S.; Jayasooriah. A practical method for estimating fractal dimension. Pattern Recognit. Lett. 1995, 16, 457–464. [Google Scholar] [CrossRef]
  20. Chen, W.-S.; Yuan, S.-Y.; Hsieh, C.-M. Two algorithms to estimate fractal dimension of gray-level images. Opt. Eng. 2003, 42, 2452–2464. [Google Scholar] [CrossRef]
  21. Li, J.; Sun, C.; Du, Q. A New Box-Counting Method for Estimation of Image Fractal Dimension. In Proceedings of the 2006 International Conference on Image Processing, Atlanta, GA, USA, 8–11 October 2006; pp. 3029–3032. [Google Scholar] [CrossRef]
  22. Li, J.; Du, Q.; Sun, C. An improved box-counting method for image fractal dimension estimation. Pattern Recognit. 2009, 42, 2460–2469. [Google Scholar] [CrossRef]
  23. Panigrahy, C.; Seal, A.; Mahato, N.K. Quantitative texture measurement of gray-scale images: Fractal dimension using an improved differential box counting method. Measurement 2019, 147, 106859. [Google Scholar] [CrossRef]
  24. Long, M.; Peng, F. A Box-Counting Method with Adaptable Box Height for Measuring the Fractal Feature of Images. Radioengineering 2013, 22, 208–213. [Google Scholar]
  25. Liu, Y.; Chen, L.; Wang, H.; Jiang, L.; Zhang, Y.; Zhao, J.; Wang, D.; Zhao, Y.; Song, Y. An improved differential box-counting method to estimate fractal dimensions of gray-level images. J. Vis. Commun. Image Represent. 2014, 25, 1102–1111. [Google Scholar] [CrossRef]
  26. Lai, K.; Li, C.; He, T.; Chen, L.; Yu, K.; Zhou, W. Study on an Improved Differential Box-Counting Approach for Gray-Level Variation of Images. In Proceedings of the 2016 10th International Conference on Sensing Technology (icst), Nanjing, China, 11–13 November 2016. [Google Scholar] [CrossRef]
  27. Panigrahy, C.; Garcia-Pedrero, A.; Seal, A.; Rodríguez-Esparragón, D.; Mahato, N.K.; Gonzalo-Martín, C. An Approximated Box Height for Differential-Box-Counting Method to Estimate Fractal Dimensions of Gray-Scale Images. Entropy 2017, 19, 534. [Google Scholar] [CrossRef] [Green Version]
  28. Panigrahy, C.; Seal, A.; Mahato, N.K. Image texture surface analysis using an improved differential box counting based fractal dimension. Powder Technol. 2020, 364, 276–299. [Google Scholar] [CrossRef]
  29. Liu, C.; Zhan, Y.; Deng, Q.; Qiu, Y.; Zhang, A. An improved differential box counting method to measure fractal dimensions for pavement surface skid resistance evaluation. Measurement 2021, 178, 109376. [Google Scholar] [CrossRef]
  30. Nunsong, W.; Woraratpanya, K. Modified differential box-counting method using weighted triangle-box partition. In Proceedings of the 2015 7th International Conference on Information Technology and Electrical Engineering (ICITEE), Chiang Mai, Thailand, 29–30 October 2015; pp. 221–226. [Google Scholar] [CrossRef]
  31. Liu, S. An Improved Differential Box-Counting Approach to Compute Fractal Dimension of Gray-Level Image. In Proceedings of the 2008 International Symposium on Information Science and Engineering, Shanghai, China, 20–22 December 2008; pp. 303–306. [Google Scholar] [CrossRef]
  32. Biswas, M.K.; Ghose, T.; Guha, S.; Biswas, P.K. Fractal dimension estimation for texture images: A parallel approach. Pattern Recognit. Lett. 1998, 19, 309–313. [Google Scholar] [CrossRef]
  33. Panigrahy, C.; Seal, A.; Mahato, N.K.; Bhattacharjee, D. Differential box counting methods for estimating fractal dimension of gray-scale images: A survey. Chaos, Solitons Fractals 2019, 126, 178–202. [Google Scholar] [CrossRef]
  34. Saupe, D. Algorithms for Random Fractals. In The Science of Fractal Images; Barnsley, M.F., Devaney, R.L., Mandelbrot, B.B., Peitgen, H.-O., Saupe, D., Voss, R.F., Peitgen, H.-O., Saupe, D., Eds.; Springer: New York, NY, USA, 1988; pp. 71–136. ISBN 978-1-4612-3784-6. [Google Scholar]
  35. Original Brodatz Texture. Available online: http://multibandtexture.recherche.usherbrooke.ca/original_brodatz.html (accessed on 7 April 2022).
  36. Sipi Image Database-Aerials. Available online: http://sipi.usc.edu/database/database.php?volume=aerials (accessed on 7 April 2022).
Figure 2. The orange area is the calculated area, and the blue area is the ignored area. Image size is 512 × 512. (a) s = 128, (b) s = 160, (c) s = 220, (d) s = 240, (e) s = 256.
Figure 2. The orange area is the calculated area, and the blue area is the ignored area. Image size is 512 × 512. (a) s = 128, (b) s = 160, (c) s = 220, (d) s = 240, (e) s = 256.
Entropy 24 00977 g002
Figure 3. The relationship between the grid size and the percentage of the calculated area to the actual area of the image.
Figure 3. The relationship between the grid size and the percentage of the calculated area to the actual area of the image.
Entropy 24 00977 g003
Figure 4. A part of the M × M picture is partitioned by square grids (1, 2, 4, and 5), and the other part cannot be completely partitioned (3, 6, 7, 8, and 9).
Figure 4. A part of the M × M picture is partitioned by square grids (1, 2, 4, and 5), and the other part cannot be completely partitioned (3, 6, 7, 8, and 9).
Entropy 24 00977 g004
Figure 6. Nine synthesized FBM images with their TFD values.
Figure 6. Nine synthesized FBM images with their TFD values.
Entropy 24 00977 g006
Figure 7. Sixteen sample natural grayscale images of the Brodatz database. The numbering sequence starts from the first row, left to right, top to bottom: D1, D11, D21, D30, D41, D47, D53, D61, D65, D74, D81, D85, D91, D99, D104, D112.
Figure 7. Sixteen sample natural grayscale images of the Brodatz database. The numbering sequence starts from the first row, left to right, top to bottom: D1, D11, D21, D30, D41, D47, D53, D61, D65, D74, D81, D85, D91, D99, D104, D112.
Entropy 24 00977 g007
Figure 8. Twelve images of Aerials database. The numbering sequence starts from the first row, left to right, top to bottom: 2.1.01~2.1.12.
Figure 8. Twelve images of Aerials database. The numbering sequence starts from the first row, left to right, top to bottom: 2.1.01~2.1.12.
Entropy 24 00977 g008
Figure 9. Computational flow chart for experimental research.
Figure 9. Computational flow chart for experimental research.
Entropy 24 00977 g009
Figure 10. Calculated fractal dimension of images with different theoretical fractal dimension values (FBM).
Figure 10. Calculated fractal dimension of images with different theoretical fractal dimension values (FBM).
Entropy 24 00977 g010
Figure 11. Goodness of fit of images with different theoretical fractal dimension values (FBM).
Figure 11. Goodness of fit of images with different theoretical fractal dimension values (FBM).
Entropy 24 00977 g011
Figure 12. Distance error (DE) of images with different theoretical fractal dimension values (FBM).
Figure 12. Distance error (DE) of images with different theoretical fractal dimension values (FBM).
Entropy 24 00977 g012
Figure 13. LLS fitting lines of FBM images with a theoretical fractal dimension of 2.9 by three methods. (a) Consecutive integer; (b) improved consecutive integer method; (c) image size divisor; (d) compared with the original consecutive integer method, the improved method has an increase in the number of boxes under different s values.
Figure 13. LLS fitting lines of FBM images with a theoretical fractal dimension of 2.9 by three methods. (a) Consecutive integer; (b) improved consecutive integer method; (c) image size divisor; (d) compared with the original consecutive integer method, the improved method has an increase in the number of boxes under different s values.
Entropy 24 00977 g013
Figure 14. Calculated fractal dimension of different images (Brodatz).
Figure 14. Calculated fractal dimension of different images (Brodatz).
Entropy 24 00977 g014
Figure 15. Goodness of fit of different images (Brodatz).
Figure 15. Goodness of fit of different images (Brodatz).
Entropy 24 00977 g015
Figure 16. Distance error (DE) of different images (Brodatz).
Figure 16. Distance error (DE) of different images (Brodatz).
Entropy 24 00977 g016
Figure 17. Calculated fractal dimension of different images (Aerials).
Figure 17. Calculated fractal dimension of different images (Aerials).
Entropy 24 00977 g017
Figure 18. Goodness of fit of different images (Aerials).
Figure 18. Goodness of fit of different images (Aerials).
Entropy 24 00977 g018
Figure 19. Distance error (DE) of different images (Aerials).
Figure 19. Distance error (DE) of different images (Aerials).
Entropy 24 00977 g019
Table 1. Parameters for synthesizing FBM images.
Table 1. Parameters for synthesizing FBM images.
ItemValue
Maxlevel9
Sigma4
H0.1~0.9
Addition1
Seed1
Table 2. Fractal dimension, the goodness of fit, and distance error of three methods based on FBM images.
Table 2. Fractal dimension, the goodness of fit, and distance error of three methods based on FBM images.
TFDFDR2DE
ERCIOCIERCIOCIERCIOCI
2.12.0653 2.2097 2.1255 0.9979 0.9925 0.9992 0.0232 0.0045 0.0015
2.22.1116 2.2490 2.1654 0.9980 0.9928 0.9995 0.0230 0.0045 0.0012
2.32.1512 2.3030 2.2182 0.9986 0.9930 0.9995 0.0189 0.0044 0.0011
2.42.2171 2.3733 2.2857 0.9986 0.9931 0.9995 0.0192 0.0044 0.0011
2.52.2820 2.4490 2.3551 0.9985 0.9930 0.9995 0.0201 0.0045 0.0012
2.62.3489 2.5231 2.4243 0.9985 0.9925 0.9995 0.0203 0.0046 0.0012
2.72.4131 2.5939 2.4918 0.9984 0.9929 0.9995 0.0211 0.0045 0.0012
2.82.4727 2.6586 2.5575 0.9982 0.9940 0.9994 0.0220 0.0042 0.0013
2.92.5238 2.7169 2.6132 0.9980 0.9944 0.9994 0.0233 0.0040 0.0013
Table 3. The correlation coefficient between the calculated fractal dimension and the theoretical fractal dimension; the slope of the fitted line.
Table 3. The correlation coefficient between the calculated fractal dimension and the theoretical fractal dimension; the slope of the fitted line.
ERCIOCI
γ0.99810.99790.9983
b ^ 0.59550.66480.6355
Table 4. Fractal dimension, goodness of fit, and distance error of three methods based on Brodatz images.
Table 4. Fractal dimension, goodness of fit, and distance error of three methods based on Brodatz images.
No.ITEMFDR2DE
ERCIOCIERCIOCIERCIOCI
1D12.5490 2.8369 2.7290 0.9933 0.9915 0.9973 0.0429 0.0050 0.0028
2D112.7029 2.9103 2.8015 0.9963 0.9920 0.9988 0.0322 0.0049 0.0018
3D212.8238 2.9919 2.8823 0.9976 0.9933 0.9988 0.0262 0.0045 0.0018
4D302.4027 2.7106 2.6001 0.9907 0.9864 0.9954 0.0502 0.0063 0.0036
5D412.6880 2.9076 2.7982 0.9957 0.9912 0.9985 0.0345 0.0051 0.0021
6D472.5025 2.8229 2.7130 0.9926 0.9919 0.9962 0.0450 0.0049 0.0033
7D532.7945 2.9720 2.8624 0.9967 0.9935 0.9990 0.0305 0.0044 0.0017
8D612.5250 2.7589 2.6503 0.9949 0.9903 0.9982 0.0373 0.0053 0.0023
9D652.6220 2.8856 2.7758 0.9931 0.9901 0.9977 0.0436 0.0054 0.0026
10D742.6461 2.9308 2.8196 0.9928 0.9925 0.9975 0.0448 0.0047 0.0027
11D812.7382 2.9468 2.8397 0.9968 0.9943 0.9989 0.0298 0.0041 0.0018
12D852.7160 2.8882 2.7774 0.9978 0.9943 0.9993 0.0245 0.0041 0.0014
13D912.3144 2.5885 2.4793 0.9928 0.9879 0.9960 0.0439 0.0059 0.0034
14D992.4858 2.7552 2.6470 0.9931 0.9895 0.9974 0.0434 0.0056 0.0028
15D1042.8115 2.9987 2.8893 0.9966 0.9937 0.9986 0.0308 0.0043 0.0020
16D1122.6276 2.8853 2.7759 0.9948 0.9929 0.9982 0.0378 0.0046 0.0023
Table 5. Fractal dimension, goodness of fit, and distance error of three methods based on Aerials images.
Table 5. Fractal dimension, goodness of fit, and distance error of three methods based on Aerials images.
No.ITEMFDR2DE
ERCIOCIERCIOCIERCIOCI
12.1.012.56532.79982.69390.99730.99510.99830.02720.00380.0022
22.1.022.62742.84402.73510.99750.99510.99820.02630.00380.0023
32.1.032.38612.52212.42750.99920.99680.99850.01480.00310.0021
42.1.042.56642.78802.67700.99810.99520.99850.02260.00380.0021
52.1.052.49712.74612.63690.99620.99400.99770.03230.00420.0026
62.1.062.55382.74132.63380.99760.99520.99820.02540.00370.0023
72.1.072.45862.61972.50940.99930.99290.99850.01340.00450.0021
82.1.082.45642.71552.60680.99770.99330.99550.02480.00440.0036
92.1.092.38322.54492.44480.99940.99140.99820.01320.00500.0023
102.1.102.51252.70522.59960.99860.99210.99760.01970.00480.0026
112.1.112.42682.68702.57690.99660.99430.99750.03030.00410.0027
122.1.122.49792.72372.62040.99840.99200.99680.02110.00480.0030
Table 6. Fractal dimension of three methods (with/without the improved strategy) based on FBM images.
Table 6. Fractal dimension of three methods (with/without the improved strategy) based on FBM images.
TFDLong’2013DBCwith CWImprovementLai’2016DBCwith CWImprovementLiu’2021DBCwith CWImprovement
2.1 2.0501 2.0935 0.0434 2.2388 2.1521 −0.0867 2.2875 2.2003 −0.0872
2.2 2.0959 2.1361 0.0402 2.2900 2.2010 −0.0889 2.3376 2.2483 −0.0893
2.3 2.1522 2.1881 0.0360 2.3288 2.2383 −0.0905 2.3722 2.2821 −0.0901
2.4 2.2161 2.2485 0.0324 2.3866 2.2944 −0.0922 2.4295 2.3366 −0.0928
2.5 2.2831 2.3141 0.0309 2.4629 2.3664 −0.0964 2.5019 2.4061 −0.0958
2.6 2.3491 2.3807 0.0316 2.5373 2.4402 −0.0971 2.5721 2.4762 −0.0959
2.7 2.4113 2.4459 0.0346 2.6084 2.5099 −0.0984 2.6420 2.5441 −0.0979
2.8 2.4669 2.5056 0.0387 2.6726 2.5739 −0.0987 2.7063 2.6080 −0.0984
2.9 2.5148 2.5575 0.0426 2.7290 2.6284 −0.1006 2.7621 2.6608 −0.1013
Table 7. Goodness of fit of three methods (with/without the improved strategy) based on FBM images.
Table 7. Goodness of fit of three methods (with/without the improved strategy) based on FBM images.
TFDLong’2013DBCwith CWImprovementLai’2016DBCwith CWImprovementLiu’2021DBCwith CWImprovement
2.10.99942 0.99969 0.00027 0.99102 0.99915 0.00813 0.99192 0.99944 0.00752
2.20.99940 0.99971 0.00031 0.99150 0.99898 0.00748 0.99271 0.99934 0.00663
2.30.99939 0.99974 0.00035 0.99275 0.99921 0.00646 0.99343 0.99938 0.00595
2.40.99937 0.99975 0.00039 0.99308 0.99950 0.00642 0.99374 0.99967 0.00593
2.50.99933 0.99975 0.00042 0.99344 0.99960 0.00617 0.99428 0.99977 0.00550
2.60.99927 0.99974 0.00047 0.99367 0.99955 0.00588 0.99457 0.99980 0.00523
2.70.99919 0.99973 0.00053 0.99373 0.99948 0.00575 0.99461 0.99982 0.00521
2.80.99912 0.99971 0.00059 0.99410 0.99932 0.00523 0.99492 0.99972 0.00479
2.90.99904 0.99969 0.00065 0.99475 0.99909 0.00434 0.99553 0.99954 0.00401
Table 8. Distance error of three methods (with/without the improved strategy) based on FBM images.
Table 8. Distance error of three methods (with/without the improved strategy) based on FBM images.
TFDLong’2013DBCwith CWImprovementLai’2016DBCwith CWImprovementLiu’2021DBCwith CWImprovement
2.10.00350 0.00092 −0.00258 0.00500 0.00152 −0.00348 0.00475 0.00124 −0.00352
2.20.00355 0.00089 −0.00267 0.00488 0.00167 −0.00321 0.00453 0.00135 −0.00318
2.30.00360 0.00084 −0.00276 0.00451 0.00147 −0.00304 0.00431 0.00131 −0.00300
2.40.00369 0.00082 −0.00287 0.00443 0.00118 −0.00325 0.00422 0.00096 −0.00325
2.50.00383 0.00083 −0.00299 0.00433 0.00105 −0.00328 0.00405 0.00080 −0.00325
2.60.00401 0.00085 −0.00315 0.00427 0.00112 −0.00315 0.00396 0.00075 −0.00320
2.70.00422 0.00088 −0.00334 0.00426 0.00122 −0.00304 0.00396 0.00072 −0.00324
2.80.00443 0.00091 −0.00352 0.00415 0.00140 −0.00275 0.00385 0.00091 −0.00295
2.90.00463 0.00095 −0.00368 0.00392 0.00162 −0.00230 0.00362 0.00116 −0.00246
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Jiang, W.; Liu, Y.; Wang, J.; Li, R.; Liu, X.; Zhang, J. Problems of the Grid Size Selection in Differential Box-Counting (DBC) Methods and an Improvement Strategy. Entropy 2022, 24, 977. https://doi.org/10.3390/e24070977

AMA Style

Jiang W, Liu Y, Wang J, Li R, Liu X, Zhang J. Problems of the Grid Size Selection in Differential Box-Counting (DBC) Methods and an Improvement Strategy. Entropy. 2022; 24(7):977. https://doi.org/10.3390/e24070977

Chicago/Turabian Style

Jiang, Wenxuan, Yujun Liu, Ji Wang, Rui Li, Xiao Liu, and Jian Zhang. 2022. "Problems of the Grid Size Selection in Differential Box-Counting (DBC) Methods and an Improvement Strategy" Entropy 24, no. 7: 977. https://doi.org/10.3390/e24070977

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop