Skip to main content

Generate image textures from anisotropic fractional Brownian fields

Project description

https://zenodo.org/badge/DOI/10.5281/zenodo.17154040.svg

The Package PyAFBF is intended for the simulation of rough anisotropic image textures. Textures are sampled from a mathematical model called the anisotropic fractional Brownian field. More details can be found on the documentation.

Package features

  • Simulation of rough anisotropic textures,

  • Computation of field features (semi-variogram, regularity, anisotropy indices) that can serve as texture attributes,

  • Random definition of simulated fields,

  • Extensions to related fields (deformed fields, intrinsic fields, heterogeneous fields, binary patterns).

Installation from sources

The package source can be downloaded from the repository.

The package can be installed through PYPI with

pip install PyAFBF

To install the package in a Google Collab environment, please type

!pip install imgaug==0.2.6

!pip install PyAFBF

Communication to the author

PyAFBF is developed and maintained by Frédéric Richard. For feed-back, contributions, bug reports, contact directly the author, or use the discussion facility.

Licence

PyAFBF is under licence GNU GPL, version 3.

Citation

When using PyAFBF, please cite the original paper

  1. Biermé, M. Moisan, and F.J.P. Richard. A turning-band method for the simulation of anisotropic fractional Brownian field. J. Comput. Graph. Statist., 24(3):885–904, 2015.

and the JOSS paper:

F.J.P. Richard. PyAFBF: a Python library for sampling image textures from the anisotropic fractional Brownian field. Journal of Open Source Software, 7(75):3821, 2022.

https://joss.theoj.org/papers/10.21105/joss.03821/status.svg

Contents

  • Quick start guide
    • Getting started

    • Customed models

    • Tuning model parameters

    • Model features

    • Simulating with turning-band fields

  • Example gallery
    • Basic examples

    • Extended anisotropic fields

    • Heterogeneous fields

    • Related anisotropic fields

  • API: main classes
    • AFBF (field)

    • Turning band field (tbfield)

  • API: auxiliary classes
    • Periodic functions (perfunction)

    • Coordinates (coordinates)

    • Spatial data (sdata)

    • Process (process)

    • Turning bands (tbparameters)

    • ndarray

Credits

PyAFBF is written and maintained by Frederic Richard, Professor at Aix-Marseille University, France.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyafbf-0.2.6.tar.gz (44.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyafbf-0.2.6-py3-none-any.whl (59.7 kB view details)

Uploaded Python 3

File details

Details for the file pyafbf-0.2.6.tar.gz.

File metadata

  • Download URL: pyafbf-0.2.6.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyafbf-0.2.6.tar.gz
Algorithm Hash digest
SHA256 fa2e46cef6fd7f60b528752d70aa3eaba4a78a5bd9a110606f4ff3fbcdda4cce
MD5 6227b87c110d213884df8a43c390f17f
BLAKE2b-256 8593b6c0c068a1d19435b6bdeaaf6f1f421ed874cb1f7b9568acf6831e86d339

See more details on using hashes here.

File details

Details for the file pyafbf-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: pyafbf-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 59.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pyafbf-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 768db9bd568611e8473fe39de015b44c3bce88d9599e96950e4a42eeeb1b756a
MD5 dd99c72845c83b6ab0f73a0539f71755
BLAKE2b-256 b5f6c4b340e2dcfb88159adb321437daf44b4b683411b44e7285e0ec7473c02e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page