This is
A preliminary version of this program was described in my paper "A practical implementation of the box counting algorithm", Computers & Geosciences, 24, 1, 95-100, 1998. I realise a better title should have been "A memory-efficient implementation..."
This release of
http://vsbc.sourceforge.net/vsbc-1.6.1.tar.gz
Binaries for 32-bit Windows are also available:
http://vsbc.sourceforge.net/vsbc-1.6.1-win32.zip
Read the file src/Makefile and, if needed, change it following the indications contained therein. A very simple program to evaluate the fractal dimension, regr, is also provided, along with runs_test which evaluates the reliability of the resulting linear regression.
To compile the programs, just type:
$ cd src src$ make
Using
PBM is the only graphic format accepted by
Run
$ vsbc -v my_map.pbm
The switch -v means `verbose': the program will log its activity. After a while, the program will exit, and the file my_map.dat will have been created. Type the following command to get the regression line out of this data file:
$ regr my_map.dat -1.446 * x + 3.522 $ _
the absolute value of the first parameter is the calculated fractal dimension D of the fault line distribution. As for the validity of this calculated fractal dimension, you should be aware of the many problems that affect the linear regression technique and the box counting algorithm itself. You can assess the reliability of the results with the command:
$ ./runs_test my_map.dat Runs Test probability: 0.327
To avoid errors introduced by the position and the size of the image,
The overall reliability of the box counting algorithm was discussed in Gonzato et al. (2000), "Measuring the fractal dimensions of ideal and actual objects: implications for application in geology and geophysics". Geophys. J. Int, 142, 108-116.
The subdirectory examples/ contains programs that create a few sample images: a point (D = 0), a line (D = 1), the Koch curve (D = 1.2618), the square Koch curve (D = 1.5), and the Sierpinsky carpet (D = 1.5849).
You can test
These sample programs use functions provided by vscrn.c and vturtle.c. Please have a look at vscrn.h and vturtle.h if you want to write your own software.
Enjoy,
Guido Gonzato, PhD <guido.gonzato at gmail.com>
Box counting algorithm:
https://en.wikipedia.org/wiki/Box_counting
My Academia page (papers available here):
https://independent.academia.edu/GuidoGonzato
My ResearchGate page (papers available here):
https://www.researchgate.net/profile/Guido_Gonzato
ImageMagick, free graphics software:
http://www.imagemagick.org/script/index.php
The GIMP, free graphics software:
This document was generated using AFT v5.098