[Paper Review] A Variation of the Box-Counting Algorithm Applied to Colour Images
This paper introduces the box merging method, a fast and scalable variation of the box-counting algorithm for estimating fractal dimension in color images by treating them as 5D data sets (x, y, R, G, B). It reduces computation time by merging identical spatial-color partitions, achieving O(M) complexity, and accurately measures fractal dimensions from 2 to 5 in test images and real paintings, with results validated on synthetic and artistic images.
The box counting method for fractal dimension estimation had not been applied to large or colour images thus far due to the processing time required. In this letter we present a fast, easy to implement and very easily expandable to any number of dimensions variation, the box merging method. It is applied here in RGB images which are considered as sets in 5-D space.
Motivation & Objective
- To overcome the high computational cost of applying box-counting to large or color images.
- To develop a fast, scalable, and easily extensible method for fractal dimension estimation in multi-dimensional data, including color images.
- To validate the method on synthetic images with known fractal dimensions and real paintings to demonstrate accuracy and applicability.
- To eliminate the need for approximations like differential box counting by enabling exact, efficient computation on full color images.
Proposed method
- The method treats each pixel as a point in 5D space (x, y, R, G, B), mapping the image into a 5D data set.
- It constructs a partition table of unique (x, y, R, G, B) combinations, reducing redundant processing by merging identical entries.
- For each box size s = 2^ν, the algorithm counts non-empty boxes n by scanning the partition table once, achieving O(M) time complexity.
- The fractal dimension D is computed as the slope of the log n vs. log s plot, with a heuristic cutoff at 0.9 log₂(LxLy) to exclude high-resolution noise.
- The method avoids scanning the entire image repeatedly by using a pre-sorted, deduplicated partition table.
- It is easily extensible to any number of dimensions by adding new color or feature channels to the partition table.
Experimental results
Research questions
- RQ1Can a modified box-counting algorithm efficiently estimate fractal dimension in full-color images without approximations?
- RQ2How does the box merging method compare to existing techniques like differential box counting in terms of speed and accuracy?
- RQ3What is the range of measurable fractal dimensions in color images when treated as 5D sets?
- RQ4Can the method accurately recover known fractal dimensions in synthetic images with defined geometric structures?
- RQ5Does the algorithm produce meaningful fractal dimension values for real-world artistic images?
Key findings
- The box merging algorithm achieves O(M) time complexity, processing 5 seconds per megapixel on a dual-core 32-bit system, significantly faster than standard box-counting.
- The method accurately measures fractal dimension D = 1 for a 5D line, D = 2 for a 2D plane in 5D space, and D = 5 for fully random color noise, validating correctness.
- For real paintings, the method measured D = 2.45 for Leonardo da Vinci, D = 3.25 for Kandinsky, D = 3.66 for Monet, and D = 4.18 for Pollock, reflecting increasing complexity.
- The heuristic cutoff at 0.9 log₂(LxLy) effectively removes high-resolution noise without distorting the log n-log s slope.
- Memory usage is 7 bytes per pixel (2 for spatial coordinates, 1 for each color channel), making it feasible for large images.
- The method is easily extensible to any number of dimensions by adding new components to the partition table.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.