Next Article in Journal
Bowen Lemma in the Countable Symbolic Space
Next Article in Special Issue
The Application of Dual-Tree Complex Wavelet Transform (DTCWT) Energy Entropy in Misalignment Fault Diagnosis of Doubly-Fed Wind Turbine (DFWT)
Previous Article in Journal
Informative Nature and Nonlinearity of Lagged Poincaré Plots Indices in Analysis of Heart Rate Variability
Previous Article in Special Issue
Evaluation of Uncertainties in the Design Process of Complex Mechanical Systems
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Approximated Box Height for Differential-Box-Counting Method to Estimate Fractal Dimensions of Gray-Scale Images

by
Chinmaya Panigrahy
1,
Angel Garcia-Pedrero
2,
Ayan Seal
1,
Dionisio Rodríguez-Esparragón
3,
Nihar Kumar Mahato
1 and
Consuelo Gonzalo-Martín
2,*
1
PDPM Indian Institute of Information Technology, Design and Manufacturing, Jabalpur 482005, India
2
Center for Biomedical Technology, Universidad Politécnica de Madrid, Campus de Montegancedo, 28233 Pozuelo de Alarcón, Spain
3
Instituto de Oceanografía y Cambio Global, IOCAG, Campus de Tafira, Edificios de Telecomunicaciones, 35017 Las Palmas, Spain
*
Author to whom correspondence should be addressed.
Entropy 2017, 19(10), 534; https://doi.org/10.3390/e19100534
Submission received: 7 June 2017 / Revised: 30 August 2017 / Accepted: 30 September 2017 / Published: 10 October 2017
(This article belongs to the Special Issue Wavelets, Fractals and Information Theory III)

Abstract

:
The Fractal Dimension (FD) of an image defines the roughness using a real number which is highly associated with the human perception of surface roughness. It has been applied successfully for many computer vision applications such as texture analysis, segmentation and classification. Several techniques can be found in literature to estimate FD. One such technique is Differential Box Counting (DBC). Its performance is influenced by many parameters. In particular, the box height is directly related to the gray-level variations over image grid, which badly affects the performance of DBC. In this work, a new method for estimating box height is proposed without changing the other parameters of DBC. The proposed box height has been determined empirically and depends only on the image size. All the experiments have been performed on simulated Fractal Brownian Motion (FBM) Database and Brodatz Database. It has been proved experimentally that the proposed box height allow to improve the performance of DBC, Shifting DBC, Improved DBC and Improved Triangle DBC, which are closer to actual FD values of the simulated FBM images.

1. Introduction

A natural scene could be treated as complex objects that could be represented using Fractal Geometry, which was introduced by Mandelbrot [1] in 1983. Fractal Geometry is used to define self-similar elements independent of scale, known as fractal set. FD is a measure to quantify the roughness or irregularities present in that set. Nowadays, researchers have been using FD in various computer vision applications such as texture, image segmentation [2], shape identification [3], palm print recognition [4], time series analysis [5], classification [6] and spatial variability analysis [7]. Interested readers can find more application areas in [8].
Mandelbrot [1] first gave an idea to compute FD which was further advanced by Peleg et al. [9], Pentland [10], Keller et al. [11], Gagnepain et al. [12] etc. In [13], Sarkar et al. proposed a method known as DBC to compute FD using box counting (BC) technique, which became popular in research community because it is simple, easy to interpret and implement. However, it suffers from various drawbacks like over-counting of boxes along z-direction (quantization-computation), over-counting of boxes along xy-direction, lack of a proper box height, inappropriate use of grid sizes. Several modifications of DBC have been done to yield accurate FD values. Jin et al. [14] restricted the allowed range of grid sizes to avoid distortions occurred during line fitting to compute FD. Chen et al. [15] noticed that DBC suffers from over-counting of boxes along z-direction and proposed a new formula to compute the number of boxes required to cover rough surface over a grid ( n r ) , but authors used cubes to represent boxes. In [16,17], Li et al. used a new x y -plane partitioning mechanism to consider the gray-level variations between two adjacent grids that overlaps two adjacent grids by one row and one column. Authors also proposed a new formula to compute n r and two finer box heights. However, these box heights are too small, which increase the number of box counts significantly. As a result, more memory is required to store the large number of boxes. Liu et al. in [18] proposed a novel x y -plane shifting mechanism to solve the problem of under-counting. Authors used the grid sizes as only the divisors of the image size. In [19], Kaewaramsri et al. partitioned the square grid into two triangular grids to obtain better precision of box count. Interested readers can find various modifications of DBC in [20,21,22,23].
Out of different parameters of DBC, box height, which is directly related to computing the number of boxes required to represent the gray-level variations over a grid and badly affects the estimation of FD values. Larger box height incurs high error. While lower box heights require more computation. Some box heights depend only on the grid size on the contrary some depend on the image characteristics, whose values change according to the degree of roughness present in an image. It was observed that the box height is always directly proportional to grid size in order to preserve the scale of boxes. Different box heights used by different authors are defined in Section 2.4. Box height used by DBC method is directly proportional to number of gray-levels and inversely proportional to image size [13]. Authors in [15] used cubes to represent a box. It means that the height is directly proportional to grid size. Some of the authors used maximum and minimum gray-level of an image as box height in their works [16,23] respectively. Authors in [17] used standard deviation ( σ ) of an image as box height. Box heights proposed in [16,17] are very small and accurate in estimating FD but are not dependent on image size. The impact of box heights have been studied thoroughly and proposed a new box height as a function of image size based using Brodatz Database [24], which is also validated using simulated FBM Database. Results show that the new box height allows to better estimate FD value with a less Distance Error (DE) than the box height used by DBC method. Rest of the paper is organized as follows: Section 2 discusses the traditional DBC method and its variants. Section 3 depicts experimental results, which help to propose a new box height as a function of image size. The validation of the proposed box height has been done on gray-scale images from simulated FBM Database and Brodatz Database in Section 3. The conclusion has been drawn in Section 4.

2. Materials and Methods

2.1. Databases

All the experiments have been performed on one publicly available Brodatz Database [24] and one generated FBM Database using random mid-point displacement algorithm [25]. The Brodatz Database contains 112 textured images of size 640 × 640 pixels. This database is used to propose a novel box height for calculating FD values because this database is very much popular and used by most of the researchers in this context. Some of the textured images from Brodatz Database and generated FBM images with their actual FD values that could be generated using Hurst component (H) by 3-H are shown in Figure 1 and Figure 2 respectively. The H varies from 0 to 1 with step size 0.1 and it is used to validate the proposed method in this work.

2.2. Fractal Dimension

Standard formula for computing FD of an ideal bounded fractal set, B, using BC method is expressed by Equation (1) [1].
F D B = log ( N r ) log 1 r , r 1
where, N r is the number of distinct boxes of scale r that are required to cover the B. If the B is not an ideal fractal set then Equation (1) will give different FD values for different values of r. In that case the slope of the line obtained by fitting the points ( log N r , log 1 r ) r is known as the FD of the non-ideal fractal set. The detail description of the DBC method is given in Section 2.3.

2.3. The DBC Method

In 1992 Sarkar et al. [13] proposed an straightforward approach to estimate FD of a gray-scale image. Their methodology is as follows: a square image (I) of size M × M pixels is partitioned into non-overlapping grids of size s × s pixels where s is an integer and s varies from 2 to M 2 . The related scale (r) of a grid with size s × s pixels with respect to an image size M is denoted by an expression, r = s M . If s is not a divisor of M then non-image pixels of the grids on the boundary are treated as zero.
On each grid, there are a number of boxes of size s × s × h , to cover the rough gray-level image intensity surface over that grid and these boxes are assigned with a number as shown in Figure 3, where, . denotes the floor function and
G h = M s h = s × G M
The G is the total number of gray-levels in a gray-scale image i.e., 256. The total number of boxes of size s × s × h , required to represent the rough surface over a (i, j)th grid of size s × s pixels, n r (i,j) is
n r ( i , j ) = g m a x h g m i n h + 1
where, . denotes the ceiling function. The g m a x and g m i n are the maximum and minimum gray-levels present on (i, j)th grid respectively. The g m a x h represents the box number, which contains g m a x . On the other hand, g m i n located in a box, which is denoted by box number g m i n h .
The total number of boxes, N r , at scale r is required to cover the rough intensity surface of an image can be computed by Equation (4).
N r = i , j n r ( i , j ) where , 2 M r 1 2
Then the FD of an image or the slope of a line is computed by fitting all the points ( 1 r , N r ) using Linear Least Squares as shown in Figure 4.
The corresponding Distance Error (DE) incurred while computing FD can be estimated using Equation (5) defined as follows:
D E = 1 N i = 1 N ( m x i + b y i ) 2 1 + m 2
where, m is slope of the line i.e., FD, b is the y-intercept and N is the total number of points used in fitting.
Box height is directly related to an image gray-level intensity variations which is characterized by z-axis in a 3D plane. It is clear that a larger value of box height is unable to compute accurate number of boxes. Whereas a lower value of box height is capable of finding out FD of an image accurately. However, it requires more memory to store box counts. Therefore, extensive study on the impact of different box heights have been done in this work to compute FD values.

2.4. Box Height

Box height is directly proportional to grid size s. It means that the ratio of box height and grid size is equal to a constant value. The box height should not exceed the size of a grid otherwise, it leads to an inaccurate FD. Moreover, box height should not be constant because in that case the scale of boxes (r) on different grids will not be maintained. Let us assume that 23 gray-levels are required to represent the rough surface over a particular grid. If the box height is 11 then 3 boxes are required to represent the rough surface. Out of these three boxes, first two boxes are completely filled up by 11 gray-levels and the third box contains only one gray-level. But, if the box height is 2 then 12 boxes are required with 11 full boxes and 1 box is added for one gray-level count. Again if the box height is 0.5 then a total of 46 full boxes are required to cover the rough image intensity surface. Therefore, h = 0.5 is more accurate and h = 11 is less accurate. Hence, a smaller box height is preferable and we have proposed a method to compute box height in Section 3.2. Different existing definitions for computing box heights are as follows:
  • A: In [13,14,18,19,20,21,22], authors used a box height, h = s × G M , for their work. When M G then this box height becomes very large hence fails in providing accurate FD.
  • B: Chen et al. considered h = s in their work [15] to compute FD. Sometimes it may happen that the box height is greater than the number of gray-levels in an image ( h G ); in that case only one box is required to represent the rough surface of a particular grid. Consequently, it leads to an inaccurate FD.
  • C: Li et al. proposed h = s 0.5 × ( I m a x I m i n ) to be their box height in [16], where I m a x , I m i n are the maximum and minimum gray-level intensities present in an image respectively. The box height will be very small when an image is having a large texture variation. On the other hand, when gray-level differences ( I m a x I m i n ) will be small then the box height will be high as a result inaccurate FD value will be produced.
  • D: Same authors proposed another formula for box height, h = s 1 + 2 a σ , where σ is the standard deviation of an image and a = 3 is a constant in [17]. But, the proposed box height is too small and it requires more memory space for storage. The value of this box height is almost same to the box height used in [16] and like C this box height is dependent on image gray-levels.
  • E: In [23], Lai et al. used h = s × ( I m a x I m i n + 1 ) M as box height. Sometimes ( I m a x I m i n + 1 ) G , which is almost same to the box height used in [13,14,18,19,20,21,22].

3. Experimental Results and Discussion

3.1. Impact of Box Heights

Firstly, three box heights namely, A: s × G M , B: h = s and D: s 1 + 2 a σ (B>A>D) are selected for further experiment from A, B, C, D and E described in Section 2.4 because box height A is almost same to E for texture images and box height C is nearly equal to D. These box heights have been considered separately with DBC method by keeping other parameters same. The FD values along with DE values are then computed on Brodatz Database and they have been depicted in Figure 5 and Figure 6. However, all the images are scaled down to standard 512 × 512 pixels before computation. Because for M = 256 , A = B, hence these two box heights cannot be distinguished and simultaneously M = 640 is not selected since it is not a standard image size i.e., not a power of 2. The list of parameters of DBC method are reported in Table 1. It is clear from both Figure 5 and Figure 6 that FD value increases when box height decreases. On the other hand, DE values increases while box height increases.

3.2. A Novel Method to Estimate Box Height

We can conclude from Section 2.4 that the standard expression for box height is as follows:
h = s R
where, R is any real number ( R R ) and R must be greater than or equal to one ( R 1 ) because if the value of R is less than one and the value of s is large then h will be more than G in that case the obtained value of FD will be inaccurate. Most of the authors have considered R as a positive natural number for their works. Thus, a series of natural numbers 1 to 100 have been chosen for the value of R to compute FD value in order to find out a R value for an image, which satisfies Equation (7) in this work. Bicubic interpolation method is applied on each of these images of size 640 × 640 pixels to resize them into 128 × 128 , 256 × 256 , 512 × 512 and 1024 × 1024 pixels for further experiments. FD of ideal fractal sets are invariant to size of the set i.e., for any value of s in Equation (1), the value of F D s will remain same. Since texture images are not ideal fractals, their FD value changes with the size of the image though the difference in FD values are less but not equal to zero. Hence we have used different image sizes in-order to relate their FD value and using their relation a new box height is proposed in this paper.
The Equation (6) is applied as box height with other parameters of DBC described in Table 1 on 112 textured images from Brodatz Database at different image sizes 128 × 128 , 256 × 256 , 512 × 512 , 640 × 640 and 1024 × 1024 pixels. Figure 7 and Figure 8 show different FD values and DE values for different values of R respectively, which has started from 1 to 100 with step size 1. Figure 7 contains the FD values of images, which are shown in Figure 2. The similar experiments have been performed on 112 images with different image sizes 128 × 128 , 256 × 256 , 640 × 640 and 1024 × 1024 pixels. It is observed that the same trend persist between these experiments as shown in Figure 7. Moreover, it is clear from Figure 7 that for all images when box height decreases i.e., R in Equation (6) increases then the computed FD value increases, but after some higher value of R the estimated FD value almost remains the same as R increases. Similarly Figure 8 shows that as box height decreases, incurred error i.e., DE, decreases. Though decreasing of DE values are not fully monotonic but eventually after some lower box height, i.e., for higher R values, the DE values remain almost the same. So, we have to find out a proper value of R for a particular image size in such a way that there is no significant change in the difference of two successive FD values for two successive values of R.

Approximating R

Let, F D R p M be a FD value of an image numbered as p from Brodatz Database having M × M pixels with a particular value of R where, R starts from one and M [ 128 , 256 , 512 , 640 , 1024 ] . Now, smallest integer value, R, has to be found that satisfies Equation (7) for each image p at a particular image size M × M .
| F D R p M F D ( R + 1 ) p M | 0.0001
It is observed from the experiments that the value of FD up-to four decimal places is enough to distinguish textures. Moreover, floating point arithmetic is very expensive. So, a threshold value 0.0001 is chosen for our work. Table 2 shows the number of images having the same R value for different image size that satisfy Equation (7). Here, R m a x M is marked using red color in Table 2, which represents the smallest R value for an M, after which FD value does not change significantly for all the images.
Then all the points ( M , R m a x M ) are plotted into a 2D plane to get a line using linear least square, where x-axis represents M i.e., image size and y-axis denotes R m a x M of a particular image size M. Here, ( M , R m a x M ) corresponds to ( 128 , 28 ) , ( 256 , 32 ) , ( 512 , 49 ) , ( 640 , 62 ) and ( 1024 , 78 ) that have been obtained from Table 2. The expression of the plotted line is represented by Equation (8).
R = 0.0589 M + 19.667
Now, this line is validated by putting different values of M (128, 256, 512, 640 and 1024) and the obtained R values are shown in Table 3. It is clear from Table 3 that the obtained R value is not always greater than or equal to R m a x M . So, the next task is to find out an exact equation, which can replace Equation (8). In other words, an exact equation is expected in this work, which can find out R after putting M, where the value of R will be always greater than or equal to R m a x M without performing the above analysis. However, this analysis helps us to propose a novel box height, which depends on image size. The expression of R in Equation (8) is approximated by log 2 ( M ) , which is shown in Equation (9). Initially we started with R = log 2 M × ( log 2 ( M ) 3 ) because it is the nearest multiple of log 2 ( M ) to satisfy for least image size M = 128 and its R m a x 128 = 28 .
R = log 2 M × ( log 2 ( M ) 3 )
This expression is again validated using different values of M (128, 256, 512, 640 and 1024). Unfortunately, it fails for image size 640 and 1024 as shown in Table 3. Equation (9) has two parts and 1 has been added to the second part, ( log 2 ( M ) 3 ) . New formula is shown in Equation (10).
R = f ( M ) = log 2 ( M ) × ( log 2 ( M ) 2 )
Again, Equation (10) has been validated for all image size M (128, 256, 512, 640 and 1024) and this time Equation (10) works fine for all image sizes M. The ceil function, . is used to deal with the image sizes, M which are not a power of 2 like when M = 640 i.e., to obtain an integer value. Hence, Equation (10) is used to fix the value of R. Therefore using Equations (6) and (10), the new box height proposed in this paper for DBC [13] is as follows:
h = s log 2 ( M ) × ( log 2 ( M ) 2 )
In Equation (11):
  • If log 2 ( M ) < 2 R < 0 h < 0 .
  • If log 2 ( M ) = 2 R = 0 h = .
  • If 2 < log 2 ( M ) < 3 R < log 2 ( M ) h becomes relatively higher.
Hence when log 2 ( M ) < 3 , we need to restrict R. Hence if log 2 ( M ) < 3 then R = log 2 ( M ) . Therefore the final proposed formula to compute box height is as follows:
h = s log 2 ( M ) × ( log 2 ( M ) 2 ) if log 2 ( M ) 3 s log 2 ( M ) Otherwise
Eleven generated FBM images as shown in Figure 2 have been used for the first set of experiment to validate the proposed box height as denoted in Equation (12). The FBM images are generated using random mid-point displacement algorithm with different Hurst components. The value of Hurst component varies from 0 to 1 with step size 0.1 in this work. So, we have altogether 11 Hurst values, which help to create eleven FBM images. Moreover, Hurst component defines the actual FD value of an image. The different Hurst values and their acutal FD values are shown in 1st column and 2nd column of Table 4 respectively. The 3rd column of Table 4 depicts the FD values obtained using original DBC method. Table 1 shows different parameters of DBC, SDBC [15], IDBC [18] and ITDBC [22]. Now, the proposed box height have been used and the achieved FD values for all the above mentioned images are shown in column number 4 of Table 4. The 5th and 6th columns of Table 4 show the difference of the FD values obtained by DBC method and new box height from actual FD values respectively. The DE values using both the methods are also reported in Table 4. It is clear from the columns 5th and 6th of Table 4 that the proposed box height allows to better estimate FD values, which are closer to actual FD values with less DE values. The same set of experiments using both the methods have been done on sixteen textured images from Brodatz Database as shown in Figure 1 and the results are shown in Table 5. We do not have actual FD values for these textured images. So, the actual FD values are missing in Table 5. However, the obtained FD values using the proposed box height of DBC are larger than the achieved FD values by the original DBC method. Thus, we can conclude that new box height of DBC estimates better FD values than the original DBC method.
In the next set of experiment, original SDBC [15] and SDBC with proposed box height have been considered on eleven generated FBM images and sixteen textured images from Brodatz Database and the obtained results are shown in Table 6 and Table 7 respectively.
Then IDBC [18] method and the proposed box height have been used for the next set of experiments on eleven generated FBM images and sixteen textured images from Brodatz Database and the achieved results are shown in Table 8 and Table 9 respectively.
Again, similar experiments using ITDBC method [22] and proposed box height have been considered on both set of images i.e., on generated FBM, textured images and the gained results are reported in Table 10 and Table 11 respectively.
To know the impact of the new box height for different methods such as DBC, SDBC, IDBC and ITDBC, we have also plotted the results of these methods obtained using their original parameters and the results obtained with the proposed box height as shown in Figure 9. While plotting, the actual FD values are represented in x-axis and the corresponding computed FD values in y-axis. It is clear from Figure 9 that for all the cases the proposed box height allows the four existing methods to compute better FD values compare to their original methods. Moreover, we can conclude from Figure 9 that the proposed box height together with ITDBC estimate better FD values for maximum set of experiments.
We have also plotted a similar graph for Brodatz Database in Figure 10. In x-axis of Figure 10 represents image number and y-axis denotes computed FD values using all the above mentioned methods. We can easily determine that the proposed box height along with ITDBC outperforms than other methods shown in Figure 10.
FD is the main factor that indicates image roughness. DE is merely a secondary component of FD values and if less DE is generated than it is good but slightly high DE is acceptable and that does not mean that the method is entirely bad. The main priority lies in better estimating FD values, Hence we relaxed DE value while defining proposed box height i.e., not all DE values generated by proposed box height for DBC, SDBC, IDBC and ITDBC are less when compared with their original box heights as shown in last columns of Table 8, Table 9, Table 10 and Table 11.

4. Conclusions

In this work, the impact of box height in estimating FD values using DBC method has been studied thoroughly. It is clear from the literature that a larger box height is unable to compute FD value correctly. In other words, a lower box height produces better FD value with relatively less error. Thus, an equation for a new box height is proposed in this work based on 112 textured images of Brodatz Database. However, the new box height depends on image size and it generates relatively smaller box height compare to some of the existing methods in literature. The new box height is also validated on generated FBM images, which have been created using random mid-point displacement algorithm.
Several experiments have been performed on generated FBM images and images from Brodatz Database using DBC, SDBC, IDBC and ITDBC along with proposed box height. It was observed from the obtained results that the proposed box height allows to estimate better FD values with less errors in most of the cases with DBC, SDBC, IDBC and ITDBC methods. Moreover, it was observed that the proposed box height with ITDBC method outperforms other methods for all but only two FBM tested images. There are still some aspects of different parameters of DBC method that deserve further study. We have tested our proposed algorithm on gray-scale images only. So, we would like to work on color images. In future works, the behavior of the proposed method will be studied. We would also like to focus in the application areas of FD such as image segmentation, object recognition.

Acknowledgments

Chinmaya Panigrahy would like to thank Erasmus+ Programme (KA107) for financial support through project 2015-1-ES01-KA107-015460, which makes this paper possible. This work has been partially funded by the Agencia Estatal de Investigación (AEI) of Spain and the European Regional Development Fund (ERDF) through the project ARTeMISat-2: Advanced Processing of Remote Sensing Data for Monitoring and Sustainable Management of Marine and Terrestrial Resources in Vulnerable Ecosystems (CTM2016-77733-R). Ayan Seal is grateful to Media Lab Asia, Ministry of Electronics and Information Technology, Government of India for providing him young faculty research fellowship. Finally. the authors would like to thank the anonymous reviewers for their constructive advice.

Author Contributions

Authors make substantial contributions such as data collection, conception, design, analysis and interpretation of data to the work reported in this manuscript. Authors participate in initial drafting of article and revising it critically for important intellectual content. Authors also give final approval of the version to be submitted.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mandelbrot, B.B. The Fractal Geometry of Nature/Revised and Enlarged Edition; WH Freeman and Co.: New York, NY, USA, 1983; Volume 495, p. 1. [Google Scholar]
  2. Chaudhuri, B.B.; Sarkar, N. Texture segmentation using fractal dimension. IEEE Trans. Pattern Anal. Mach. Intell. 1995, 17, 72–77. [Google Scholar] [CrossRef]
  3. Neil, G.; Curtis, K.M. Shape recognition using fractal geometry. Pattern Recognit. 1997, 30, 1957–1969. [Google Scholar] [CrossRef]
  4. Hong, D.; Pan, Z.; Wu, X. Improved differential box counting with multi-scale and multi-direction: A new palmprint recognition method. Opt. Int. J. Light Electron Opt. 2014, 125, 4154–4160. [Google Scholar] [CrossRef]
  5. Cervantes-De la Torre, F.; González-Trejo, J.; Real-Ramírez, C.; Hoyos-Reyes, L. Fractal dimension algorithms and their application to time series associated with natural phenomena. J. Phys. 2013, 475, 012002. [Google Scholar]
  6. Yu, L.; Zhang, D.; Wang, K.; Yang, W. Coarse iris classification using box-counting to estimate fractal dimensions. Pattern Recognit. 2005, 38, 1791–1798. [Google Scholar] [CrossRef]
  7. Lillo-Saavedra, M.; Gonzalo, C.; Lagos, O. Toward reduction of artifacts in fused images. Int. J. Appl. Earth Obs. Geoinf. 2011, 13, 368–375. [Google Scholar] [CrossRef] [Green Version]
  8. Edrees, M. Application of fractal dimension. Iraqi J. Stat. Sci. 2006, 10, 54–73. [Google Scholar]
  9. Peleg, S.; Naor, J.; Hartley, R.; Avnir, D. Multiple resolution texture analysis and classification. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 6, 518–523. [Google Scholar] [CrossRef] [PubMed]
  10. Pentland, A.P. Fractal-based description of natural scenes. IEEE Trans. Pattern Anal. Mach. Intell. 1984, 6, 661–674. [Google Scholar] [CrossRef] [PubMed]
  11. 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]
  12. Gagnepain, J.; Roques-Carmes, C. Fractal approach to two-dimensional and three-dimensional surface roughness. Wear 1986, 109, 119–126. [Google Scholar] [CrossRef]
  13. 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]
  14. Jin, X.; Ong, S.; Jayasooriah. A practical method for estimating fractal dimension. Pattern Recognit. Lett. 1995, 16, 457–464. [Google Scholar] [CrossRef]
  15. 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]
  16. Li, J.; Sun, C.; Du, Q. A new box-counting method for estimation of image fractal dimension. In Proceedings of the 2006 IEEE International Conference on Image, Atlanta, GA, USA, 8–11 October 2006; pp. 3029–3032. [Google Scholar]
  17. 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]
  18. 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]
  19. Kaewaramsri, Y.; Woraratpanya, K. Improved Triangle Box-Counting Method for Fractal Dimension Estimation. In Recent Advances in Information and Communication Technology 2015; Springer: New York, NY, USA, 2015; pp. 53–61. [Google Scholar]
  20. Liu, S. An improved differential box-counting approach to compute fractal dimension of gray-level image. In Proceedings of the IEEE International Symposium on Information Science and Engineering (ISISE’08), Shanghai, China, 20–22 December 2008; Volume 1, pp. 303–306. [Google Scholar]
  21. 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]
  22. Nunsong, W.; Woraratpanya, K. Modified differential box-counting method using weighted triangle-box partition. In Proceedings of the IEEE 7th International Conference on Information Technology and Electrical Engineering (ICITEE), Chiang Mai, Thailand, 29–30 October 2015; pp. 221–226. [Google Scholar]
  23. 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 IEEE 10th International Conference on Sensing Technology (ICST), Nanjing, China, 11–13 November 2016; pp. 1–6. [Google Scholar]
  24. Original Brodatz Texture—Universite de Sherbrooke. Available online: http://multibandtexture.recherche.usherbrooke.ca/original_brodatz.html (accessed on 7 October 2017).
  25. Saupe, D. Algorithms for random fractals. In The Science of Fractal Images; Springer: New York, NY, USA, 1988; pp. 71–136. [Google Scholar]
Figure 1. Some of the sample textured images from Brodatz Database.
Figure 1. Some of the sample textured images from Brodatz Database.
Entropy 19 00534 g001
Figure 2. Generated FBM images with their actual FD values.
Figure 2. Generated FBM images with their actual FD values.
Entropy 19 00534 g002
Figure 3. Sketch for determining the number of boxes, n r , by DBC method.
Figure 3. Sketch for determining the number of boxes, n r , by DBC method.
Entropy 19 00534 g003
Figure 4. The log-log plot for the computation of FD.
Figure 4. The log-log plot for the computation of FD.
Entropy 19 00534 g004
Figure 5. Different FD values for images from Brodatz Database using DBC method together with box heights A, B and D while image size is 512 × 512 .
Figure 5. Different FD values for images from Brodatz Database using DBC method together with box heights A, B and D while image size is 512 × 512 .
Entropy 19 00534 g005
Figure 6. Different DE values for images from Brodatz Database using DBC method together with box heights A, B and D while image size is 512 × 512 .
Figure 6. Different DE values for images from Brodatz Database using DBC method together with box heights A, B and D while image size is 512 × 512 .
Entropy 19 00534 g006
Figure 7. Different FD values for images from Brodatz Database using DBC method along with box height, h ( = s R ) , while image size is 512 × 512 .
Figure 7. Different FD values for images from Brodatz Database using DBC method along with box height, h ( = s R ) , while image size is 512 × 512 .
Entropy 19 00534 g007
Figure 8. Different DE values for images from Brodatz Database using DBC method along with box height, h ( = s R ) , while image size is 512 × 512 .
Figure 8. Different DE values for images from Brodatz Database using DBC method along with box height, h ( = s R ) , while image size is 512 × 512 .
Entropy 19 00534 g008
Figure 9. Computed and actual FD values for generated FBM images using DBC, SDBC, IDBC, ITDBC along with the original and the proposed box height.
Figure 9. Computed and actual FD values for generated FBM images using DBC, SDBC, IDBC, ITDBC along with the original and the proposed box height.
Entropy 19 00534 g009
Figure 10. Computed FD values for images of Brodatz Database as shown in Figure 1 using DBC, SDBC, IDBC, ITDBC along with the original and the proposed box height.
Figure 10. Computed FD values for images of Brodatz Database as shown in Figure 1 using DBC, SDBC, IDBC, ITDBC along with the original and the proposed box height.
Entropy 19 00534 g010
Table 1. Different parameters of DBC, SDBC, IDBC and ITDBC methods.
Table 1. Different parameters of DBC, SDBC, IDBC and ITDBC methods.
DBC [13]SDBC [15]IDBC [18]ITDBC [22]
s m i n 2222
s m a x M 2 M 2 M 2 M 2
Allowed Grid sizes, s s m a x s s m a x s m a x s s m a x 2i i = 1, 2, .., log2 M − 1 s m a x s s m a x
Grid shifting mechanismNo shiftingNo shiftingEach grid is shifted by one pixel along South-East directionNo shifting
Grid partitioning mechanismNo grid partitioningNo grid partitioningNo grid partitioningEach grid is partitioned into unequal triangular grids in four different ways
n r g m a x h g m i n h + 1 g m a x g m i n + 1 h g m a x g m i n + 1 h , if g m a x g m i n 1 , if g m a x g m i n t g m a x h t g m i n h + 1 × A t s × s A t is the number of image pixels in the tth triangular partition
x y -plane partitioningPartition image plane into non overlapping square grids.Partition image plane into non overlapping square grids.Partition image plane into non overlapping square grids.Partition image plane into non overlapping square grids.
Box Height, h s × G M s s × G M s × G M
Table 2. Finding out the smallest values of R that satisfy Equation (7) for different image sizes of Brodatz Database.
Table 2. Finding out the smallest values of R that satisfy Equation (7) for different image sizes of Brodatz Database.
Entropy 19 00534 i001
Table 3. Approximating R for all image sizes.
Table 3. Approximating R for all image sizes.
Image Size (M) R max M R
0.0589 M + 19.667 log 2 M × ( log 2 ( M ) 3 ) log 2 M × ( log 2 ( M ) 2 )
1282827.21 (✕)28 (✓)35 (✓)
2563234.75 (✓)40 (✓)48 (✓)
5124949.82 (✓)54 (✓)63 (✓)
6406257.36 (✕)59 (✕)69 (✓)
10247879.98 (✓)70 (✕)80 (✓)
Table 4. Computed FD and DE values using DBC and the proposed box height for generated FBM images.
Table 4. Computed FD and DE values using DBC and the proposed box height for generated FBM images.
FBM Images withFractal Dimension (FD)Distance Error (DE)
Hurst Parameter (H)Actual FD (3-H) (P) DBC (Q)DBC + Proposed Box Height (R)Absolute Difference in FD ValuesChange in FD Values (R-Q)DBC (X)DBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
P Q P R
1.02.01.90981.98570.09020.01430.07590.00450.00470.0002
0.92.11.93742.02480.16260.07520.08740.00420.00420.0000
0.82.21.96902.07570.23100.12430.10670.00420.0039-0.0003
0.72.32.01412.13690.28590.16310.12280.00420.0036-0.0006
0.62.42.06662.20560.33340.19440.13900.00410.0034-0.0007
0.52.52.12372.27790.37630.22210.15420.00420.0033-0.0009
0.42.62.19172.35140.40830.24860.15970.00410.0032-0.0009
0.32.72.25752.41720.44250.28280.15970.00400.0032-0.0008
0.22.82.32052.47420.47950.32580.15370.00380.0032-0.0006
0.12.92.37852.52330.52150.37670.14480.00360.0032-0.0004
0.03.02.41922.56120.58080.43880.14200.00370.0032-0.0005
Table 5. Computed FD and DE values using DBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Table 5. Computed FD and DE values using DBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Images from Brodatz Database with Image NameFractal Dimension (FD)Distance Error (DE)
DBC (P)DBC + Proposed Box Height (Q)Difference in FD Values (Q-P)DBC (X)DBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
D12.52812.69030.16220.00460.0035−0.0011
D52.57402.73750.16350.00480.0036−0.0012
D152.61882.78230.16350.00490.0034−0.0015
D202.61542.77930.16390.00500.0035−0.0015
D312.48772.64860.16090.00450.0034−0.0011
D372.48822.65210.16390.00400.0031−0.0009
D482.33462.48740.15280.00450.0033−0.0012
D542.58392.74710.16320.00490.0035−0.0014
D592.34962.50280.15320.00370.0025−0.0012
D622.51642.67730.16090.00470.0034−0.0013
D672.61722.78100.16380.00500.0035−0.0015
D742.58782.75080.16300.00490.0036−0.0013
D862.58682.74960.16280.00480.0034−0.0014
D922.59292.75690.16400.00490.0034−0.0015
D1022.60902.77280.16380.00500.0035−0.0015
D1122.55542.71850.16310.00470.0035−0.0012
Table 6. Computed FD and DE values using SDBC and the proposed box height for generated FBM images.
Table 6. Computed FD and DE values using SDBC and the proposed box height for generated FBM images.
FBM Images withFractal Dimension (FD)Distance Error (DE)
Hurst Parameter (H)Actual FD (3-H) (P)SDBC (Q)SDBC + Proposed Box Height (R)Absolute Difference in FD ValuesChange in FD Values (R-Q)SDBC (X)SDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
P Q P R
1.02.01.93642.02720.06360.02720.09080.00380.00420.0004
0.92.11.95952.06050.14050.03950.10100.00380.00390.0001
0.82.22.00372.10560.19630.09440.10190.00390.0037−0.0002
0.72.32.06752.16110.23250.13890.09360.00410.0035−0.0006
0.62.42.13762.22510.26240.17490.08750.00400.0033−0.0007
0.52.52.20782.29350.29220.20650.08570.00380.0032−0.0006
0.42.62.27672.36400.32330.23600.08730.00360.0031−0.0005
0.32.72.34082.42730.35920.27270.08650.00370.0031−0.0006
0.22.82.39512.48280.40490.31720.08770.00370.0032−0.0005
0.12.92.43472.53060.46530.36940.09590.00370.0032−0.0005
0.03.02.46792.56780.53210.43220.09990.00340.0032−0.0002
Table 7. Computed FD and DE values using SDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Table 7. Computed FD and DE values using SDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Images from Brodatz Database with Image NameFractal Dimension (FD)Distance Error (DE)
SDBC (P)SDBC + Proposed Box Height (Q)Difference in FD Values (Q-P)SDBC (X)SDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
D12.62382.69580.07200.00460.0035−0.0011
D52.66932.74270.07340.00480.0035−0.0013
D152.71382.78710.07330.00470.0034−0.0013
D202.71002.78410.07410.00480.0034−0.0014
D312.58282.65440.07160.00460.0034−0.0012
D372.58962.65830.06870.00370.0031−0.0006
D482.42812.49440.06630.00430.0033−0.0010
D542.67902.75220.07320.00480.0035−0.0013
D592.44782.51010.06230.00330.0025−0.0008
D622.61022.68290.07270.00470.0034−0.0013
D672.71152.78590.07440.00480.0034−0.0014
D742.68222.75580.07360.00480.0036−0.0012
D862.68172.75470.07300.00470.0034−0.0013
D922.68802.76190.07390.00480.0034−0.0014
D1022.70342.77770.07430.00480.0035−0.0013
D1122.65162.72380.07220.00470.0035−0.0012
Table 8. Computed FD and DE values using IDBC and the proposed box height for generated FBM images.
Table 8. Computed FD and DE values using IDBC and the proposed box height for generated FBM images.
FBM Images withFractal Dimension (FD)Distance Error (DE)
Hurst Parameter (H)Actual FD (3-H) (P)IDBC (Q)IDBC + Proposed Box Height (R)Absolute Difference in FD ValuesChange in FD Values (R-Q)IDBC (X)IDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
P Q P R
1.02.02.09212.15430.09210.15430.06220.01140.0062−0.0052
0.92.12.12222.18910.02220.08910.06690.01550.0073−0.0082
0.82.22.17442.23520.02560.03520.06080.01630.0095−0.0068
0.72.32.24202.28960.05800.01040.04760.01740.0117−0.0057
0.62.42.27172.34960.12830.05040.07790.01110.01370.0026
0.52.52.34622.40990.15380.09010.06370.01340.01520.0018
0.42.62.39862.47110.20140.12890.07250.01330.01670.0034
0.32.72.46542.52320.23460.17680.05780.01470.01740.0027
0.22.82.51822.56990.28180.23010.05170.01510.01800.0029
0.12.92.57122.60800.32880.29200.03680.01650.01820.0017
0.03.02.60912.63920.39090.36080.03010.01710.01810.0010
Table 9. Computed FD and DE values using IDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Table 9. Computed FD and DE values using IDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Images from Brodatz Database with Image NameFractal Dimension (FD)Distance Error (DE)
IDBC (P)IDBC + Proposed Box Height (Q)Difference in FD Values (Q-P)IDBC (X)IDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
D12.70452.70510.00060.02900.0282−0.0008
D52.76182.76250.00070.03010.0295−0.0006
D152.84872.84950.00080.02350.0231−0.0004
D202.83592.83700.00110.02710.0267−0.0004
D312.65902.65940.00040.02850.0275−0.0010
D372.68982.71240.02260.02090.02090.0000
D482.56682.58820.02140.01710.0148−0.0023
D542.77972.78040.00070.02910.0285−0.0006
D592.60082.61210.01130.01220.0088−0.0034
D622.69732.69790.00060.02890.0280−0.0009
D672.83782.83890.00110.02640.0261−0.0003
D742.83782.83890.00110.02640.0261−0.0003
D862.83782.83890.00110.02640.0261−0.0003
D922.83782.83890.00110.02640.0261−0.0003
D1022.83782.83890.00110.02640.0261−0.0003
D1122.83782.83890.00110.02640.0261−0.0003
Table 10. Computed FD and DE values using ITDBC and the proposed box height for generated FBM images.
Table 10. Computed FD and DE values using ITDBC and the proposed box height for generated FBM images.
FBM Images withFractal Dimension (FD)Distance Error (DE)
Hurst Parameter (H)Actual FD (3-H) (P)ITDBC (Q)ITDBC + Proposed Box Height (R)Absolute Difference in FD ValuesChange in FD Values (R-Q)ITDBC (X)ITDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
P Q P R
1.02.02.08112.12860.08110.12860.04750.00270.0022−0.0005
0.92.12.12322.17860.02320.07860.05540.00270.0021−0.0006
0.82.22.16592.23950.03410.03950.07360.00210.0019−0.0002
0.72.32.20942.30630.09060.00630.09690.00180.00180.0000
0.62.42.24572.37590.15430.02410.13020.00140.00170.0003
0.52.52.29882.44460.20120.05540.14580.00120.00170.0005
0.42.62.35822.50970.24180.09030.15150.00140.00170.0003
0.32.72.42572.56720.27430.13280.14150.00150.00170.0002
0.22.82.48902.61590.31100.18410.12690.00150.00170.0002
0.12.92.54942.65700.35060.24300.10760.00160.00170.0001
0.03.02.59032.69040.40970.30960.10010.00160.00170.0001
Table 11. Computed FD and DE values using ITDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Table 11. Computed FD and DE values using ITDBC and the proposed box height for images from Brodatz Database as shown in Figure 1.
Images from Brodatz Database with Image NameFractal Dimension (FD)Distance Error (DE)
ITDBC (P)ITDBC + Proposed Box Height (Q)Difference in FD Values (Q-P)ITDBC (X)ITDBC + Proposed Box Height (Y)Difference in DE Values (Y-X)
D12.66182.82310.16130.00240.00300.0006
D52.70752.87050.16300.00230.00260.0003
D152.76002.92360.16360.00210.0020−0.0001
D202.76022.92320.16300.00220.00220.0000
D312.61762.77650.15890.00240.00320.0008
D372.61862.78080.16220.00150.00200.0005
D482.48612.62720.14110.00190.00250.0006
D542.71832.88120.16290.00230.00250.0002
D592.47262.62280.15020.00080.00140.0006
D622.65202.81180.15980.00230.00280.0005
D672.76032.92340.16310.00220.0021−0.0001
D742.76032.92340.16310.00220.0021−0.0001
D862.76032.92340.16310.00220.0021−0.0001
D922.76032.92340.16310.00220.0021−0.0001
D1022.76032.92340.16310.00220.0021−0.0001
D1122.76032.92340.16310.00220.0021−0.0001

Share and Cite

MDPI and ACS Style

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. https://doi.org/10.3390/e19100534

AMA Style

Panigrahy C, Garcia-Pedrero A, Seal A, Rodríguez-Esparragón D, Mahato NK, Gonzalo-Martín C. An Approximated Box Height for Differential-Box-Counting Method to Estimate Fractal Dimensions of Gray-Scale Images. Entropy. 2017; 19(10):534. https://doi.org/10.3390/e19100534

Chicago/Turabian Style

Panigrahy, Chinmaya, Angel Garcia-Pedrero, Ayan Seal, Dionisio Rodríguez-Esparragón, Nihar Kumar Mahato, and Consuelo Gonzalo-Martín. 2017. "An Approximated Box Height for Differential-Box-Counting Method to Estimate Fractal Dimensions of Gray-Scale Images" Entropy 19, no. 10: 534. https://doi.org/10.3390/e19100534

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