FreeAeon-Fractal
The first GPU-accelerated version of the image-based multifractal analysis package for computing Multifractal Spectra, Fractal Dimensions, Local Multifractal α-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 α-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 α-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 (BC/DBC/SDBC)
│ ├── 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
Metadata
Release files for FreeAeon-Fractal 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| freeaeon_fractal-1.0.5.tar.gz | 84.1 kB | Without provenance | Details for freeaeon_fractal-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| freeaeon_fractal-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for freeaeon_fractal-1.0.5-py3-none-any.whl |
Total release size: 179.7 kB
Release files / freeaeon_fractal-1.0.5.tar.gz
| Download URL | freeaeon_fractal-1.0.5.tar.gz |
|---|---|
| Size | 84.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d5dc91836d671596af990d4b77bf3a1c105ac74567bb0944cb3db97b93e947e1
|
|
BLAKE2b-256 checksum How to use checksums |
e3567d2e99df907d144d6db78d2343b9f94f939cbf61a81a2f8dfdda1939bad1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Release files / freeaeon_fractal-1.0.5-py3-none-any.whl
| Download URL | freeaeon_fractal-1.0.5-py3-none-any.whl |
|---|---|
| Size | 95.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70745a7793064c3567fb0bc16cc68417cdf3ac5b79e210aae11dca266b039710
|
|
BLAKE2b-256 checksum How to use checksums |
8f7ea6b5981d7fd3699f68c692a0a8619212a081565a912148a0979824e9c932
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.6
|
Security for FreeAeon-Fractal 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.