Mathematical Foundations of Find Fractal Patterns in Images
Find Fractal Patterns in Images measures the empirical Minkowski-Bouligand Box-Counting Dimension (D_0) of any built-in benchmark or user-uploaded image. By partitioning the 256×256 image grid into square boxes of dyadic side length ε ∈ {2, 4, 8, 16, 32, 64} pixels and counting the number of non-empty boxes N(ε), the tool fits a linear least-squares regression line to ln N(ε) versus ln(256/ε).
Self-similar fractals exhibit recurring geometric structure across scales, governed by Iterated Function Systems (IFS), Lindenmayer L-System rewriting rules, or recursive spatial subdivisions. Every geometry calculation, 2× HiDPI canvas pass, progressive animation frame, and lossless SVG vector export executes natively inside your browser at 60 FPS with zero server latency.
Multi-Scale Box-Counting Regression Algorithm
1. Threshold / Edge-Extract target image onto binary lattice M[256][256]
2. For each box size ε_k ∈ {64, 32, 16, 8, 4, 2}:
Count N(ε_k) = number of ε_k × ε_k tiles containing at least one foreground pixel
3. Perform Ordinary Least Squares (OLS) regression on (x_k, y_k) = (ln(256/ε_k), ln N(ε_k)):
Box-Counting Dimension D_0 = Cov(x, y) / Var(x)
Goodness-of-Fit R² = 1 - SS_res / SS_tot
A high coefficient of determination (R² > 0.99) across all six dyadic scales confirms true statistical self-similarity, whereas a slope near D_0 ≈ 1.00 indicates a smooth Euclidean curve and D_0 ≈ 1.50–1.90 indicates a strongly space-filling fractal pattern.
Iteration Scaling & Complexity Table
| Iteration / Setting | Elements / Size | Geometric Property |
|---|---|---|
| Smooth Circle Control | Measured D_0 ≈ 1.02 | Theoretical D = 1.000 (Euclidean 1D boundary) |
| Koch Coastline Benchmark | Measured D_0 ≈ 1.27 | Theoretical D = 1.262 (ln 4 / ln 3) |
| Sierpinski Gasket Benchmark | Measured D_0 ≈ 1.58 | Theoretical D = 1.585 (ln 3 / ln 2) |
| Sierpinski Carpet Benchmark | Measured D_0 ≈ 1.88 | Theoretical D = 1.893 (ln 8 / ln 3) |
Applications in Science, Graphics & Engineering
Medical Retina & Tumor Vasculature Analysis
Ophthalmologists use box-counting fractal dimension (typically D_0 ≈ 1.70) of retinal fundus photographs to detect early diabetic retinopathy.
Satellite Coastline & Forest Canopy Remote Sensing
Geographers measure D_0 of aerial shoreline and wildfire perimeter imagery to quantify terrain roughness.
Jackson Pollock & Art Authentication
Physicist Richard Taylor analyzed drip paintings using multi-scale box-counting to measure signature fractal dimensions across decades.
Side-by-Side Visual Verification
The left viewport overlays the active ε = 8px covering boxes directly onto the image while the right viewport plots the 6-point log-log regression line.
Interactive Controls, Pan/Zoom & Vector Export
Test the four built-in calibration benchmarks (Sierpinski, Koch, Carpet, and Euclidean Circle) to see exact empirical agreement with theoretical Hausdorff dimensions, or upload any PNG/JPG image from your device.
Export crisp 2× Retina PNG renders for presentations or scalable infinite-resolution SVG files directly into Illustrator, Figma, Inkscape, LaTeX, or laser-cutting workflows.