Toolkit for Multifractal Analysis
Project description
FreeAeon-Fractal
The first GPU-accelerated version of the image-based multifractal analysis package for computing Multifractal Spectra, Fractal Dimensions, Local Multifractal $\alpha$-map, Fractal Lacunarity and Fourier Spectra of images or series. ๐ More
Key Features
- ๐ฏ Multifractal Spectrum Analysis: Supports 2D images and 1D time series
- ๐ Fractal Dimension Calculation: BC, DBC, and SDBC methods
- ๐ Lacunarity Analysis: Quantify spatial heterogeneity
- ๐ Fourier Analysis: Frequency domain analysis and filtering
- โก GPU Acceleration: Optional GPU support for faster computation
- ๐ Visualization: Built-in rich visualization capabilities
Application Domains
Medical Imaging
- Tissue Complexity: Quantify tissue structure via fractal dimension
- Heterogeneity Analysis: Reveal lesion characteristics via multifractal spectrum
- Texture Classification: Image classification based on fractal features
Materials Science
- Surface Morphology: Describe surface roughness via fractal dimension
- Porous Structure: Analyze internal structure via lacunarity
- Fracture Analysis: Identify fracture patterns via multifractal features
Financial Analysis
- Price Fluctuations: Analyze stock prices via multifractal spectrum
- Risk Assessment: Quantify risk based on fractal features
- Market Prediction: Long-range correlation analysis
Earth Sciences
- Terrain Analysis: Describe terrain complexity via fractal dimension
- Vegetation Distribution: Quantify vegetation coverage via lacunarity
- Climate Series: Multifractal analysis of time series
Image Processing
- Texture Classification: Texture recognition based on fractal features
- Image Segmentation: ROI extraction based on multifractal analysis
- Quality Assessment: Image complexity evaluation
๐ฆ Installation
Install via pip:
pip install FreeAeon-Fractal
๐ก Requires Python 3.6+ and OpenCV (
cv2) support.
๐ผ Usage
Get sample code
git clone https://github.com/jim-xie-cn/FreeAeon-Fractal.git
cd FreeAeon-Fractal
Calculate the Multifractal Spectrum of an image
python demo.py --mode mfs --image ./images/face.png
Example:
Calculate the Fractal Dimensions (Box-Counting, DBC, SDBC) of an image
python demo.py --mode fd --image ./images/face.png
Example:
Calculate the Local Multifractal $\alpha$-map of an image
python demo.py --mode alpha --image ./images/face.png
Example:
Lacunarity analysis of an image
python demo.py --mode=lacunarity --image=./images/fractal.png
Example:
Fourier analysis of an image
python demo.py --mode fourier --image ./images/face.png
Example:
Calculate the Multifractal Spectrum of a Series
python demo.py --mode series
Example:
Parameters
--image: Path to the input image--mode: Analysis mode:fdโ Fractal Dimensionmfsโ Multifractal Spectrum (default)alphaโ Local Multifractal $\alpha$-maplacunarity- Lacunarity analysisfourier- Fourier analysisseries- Multifractal Spectrum for Series analysis
Use GPU to speed up
from FreeAeonFractal.FAImageFDGPU import CFAImageFDGPU as CFAImageFD
from FreeAeonFractal.FAImageMFSGPU import CFAImageMFSGPU as CFAImageMFS
from FreeAeonFractal.FAImageLACGPU import CFAImageLACGPU as CFAImageLAC
๐ User Guide
See the following for complete usage, parameter details, and advanced examples:
Guide (Markdown) - ๐ [GitHub View]
๐ก Best for viewing directly on GitHub.
๐ English Edition ๐ Chinese Edition
Guide (HTML) - ๐ [Browser View]
๐ก Recommended for direct reading in browser.
๐ English Edition ๐ Chinese Edition
๐ Directory Structure
FreeAeon-Fractal/
โโโ FreeAeonFractal/ # Core module
โ โโโ FAImageMFS.py # 2D multifractal spectrum
โ โโโ FAImageMFSGPU.py # 2D multifractal spectrum (GPU)
โ โโโ FASeriesMFS.py # 1D multifractal spectrum
โ โโโ FAImageFD.py # Fractal dimension
โ โโโ FAImageFDGPU.py # Fractal dimension (GPU)
โ โโโ FAImageLAC.py # Lacunarity
โ โโโ FAImageLACGPU.py # Lacunarity (GPU)
โ โโโ FAImageFourier.py # Fourier analysis
โ โโโ FAImage.py # Image utilities
โ โโโ FASample.py # Fractal sample generator
โ โโโ FAVisual.py # Visualization tools
โโโ demo.py # CLI interface
โโโ images/ # Example images
โโโ requirements.txt
โโโ setup.py
โโโ README.md
๐ License
This project is licensed under the MIT License. See LICENSE for details.
โ๏ธ Author
Jim Xie
๐ง E-Mail: jim.xie.cn@outlook.com, xiewenwei@sina.com
๐ GitHub: https://github.com/jim-xie-cn/FreeAeon-Fractal
๐ง Citation
If you use this project in academic work, please cite it as:
Jim Xie, FreeAeon-Fractal: A Python Toolkit for Fractal and Multifractal Image Analysis, 2025.
GitHub Repository: https://github.com/jim-xie-cn/FreeAeon-Fractal
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file freeaeon_fractal-1.0.1.tar.gz.
File metadata
- Download URL: freeaeon_fractal-1.0.1.tar.gz
- Upload date:
- Size: 66.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07dcd589fd26b4914d7af0c9d5534b64ccab02fe6da23a0f5dcc5383ff7f249d
|
|
| MD5 |
0d9ecc3a0c089f89be31aa09aa99d7f7
|
|
| BLAKE2b-256 |
4378ccb83c493d1e90b3e6541f11c2357b1e5fedd55d73f52842cfc39731cbf2
|
File details
Details for the file freeaeon_fractal-1.0.1-py3-none-any.whl.
File metadata
- Download URL: freeaeon_fractal-1.0.1-py3-none-any.whl
- Upload date:
- Size: 77.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.18
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
524e0435f0c5e86ae5d5af0729f4ef1ae2dbca407ccadccb67da08674c8cf21f
|
|
| MD5 |
24f2169d5521fe76ab408aba67d04942
|
|
| BLAKE2b-256 |
a4979b3fdb569b97489c8989952e0a558d996f7c59537cfc986b9f1ddb54c0fb
|