https://github.com/albertocuadra/fbm

Generate patterns using the fractional Brownian motion

https://github.com/albertocuadra/fbm

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.4%) to scientific vocabulary

Keywords

brownian-motion cover fbm fractal fractional-brownian-motion matlab noise phd-thesis
Last synced: 6 months ago · JSON representation

Repository

Generate patterns using the fractional Brownian motion

Basic Info
  • Host: GitHub
  • Owner: AlbertoCuadra
  • License: other
  • Language: MATLAB
  • Default Branch: master
  • Homepage:
  • Size: 6.44 MB
Statistics
  • Stars: 4
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 1
Topics
brownian-motion cover fbm fractal fractional-brownian-motion matlab noise phd-thesis
Created almost 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License

README.md

Fractional Brownian Motion (FBM) Generator

View Fractional Brownian Motion Generator on File Exchange

This code generates patterns using the fractional Brownian motion (FBM), a mathematical technique used to create fractal-like images. The code is inspired in the well-documented posts from M. McGuire [1], I. Quilez [2], and P. Gonzalez-Vivo & J. Lowe [3].

The code was used to create the cover of my PhD thesis titled Development of a wide-spectrum thermochemical code with application to planar reacting and non-reacting shocks.

The process to generate the cover was as follows: 1. Get an image that mimics turbulence using the script. 2. Vectorize the image using SVGStorm [4]. This will homogenize the image without the need to generate a large image. 3. Post-process the image using Inkscape [5].

Preview

Usage

The function can be called with optional name-pair arguments, such as:

  • zoom (float): Zoom factor of the image.
  • octaves (float): Number of octaves.
  • resolution (float): Resolution of the image (width, height) in pixels.
  • palette (float): Colormap of the image, e.g., summer or winter.
  • ntimes (float): Number of images to generate.
  • velocity (float): Velocity of the pattern.
  • direction (float): Direction of the pattern (x, y).

Examples:

matlab fbm() fbm('resolution', [640, 360]) fbm('resolution', [640, 360], 'zoom', 0.5) fbm('resolution', [640, 360], 'zoom', 0.5, 'octaves', 4) fbm('resolution', [640, 360], 'zoom', 0.5, 'octaves', 4, 'ntimes', 1000) fbm('resolution', [640, 360], 'zoom', 0.5, 'octaves', 4, 'ntimes', 1000, 'velocity', 5) fbm('resolution', [640, 360], 'zoom', 0.5, 'octaves', 4, 'ntimes', 1000, 'velocity', 5, 'palette', 'winter')

References

  • [1] M. McGuire: https://www.shadertoy.com/view/4dS3Wd
  • [2] I. Quilez: https://iquilezles.org/articles/fbm
  • [3] P. Gonzalez-Vivo & J. Lowe: https://thebookofshaders.com/13
  • [4] SVGStorm: https://svgstorm.com/app
  • [5] Inkscape: https://inkscape.org

Owner

  • Name: Alberto Cuadra-Lara
  • Login: AlbertoCuadra
  • Kind: user
  • Location: Madrid, Spain
  • Company: Universidad Carlos III de Madrid

Pre-doctoral researcher in Fluid Mechanics

GitHub Events

Total
  • Watch event: 2
Last Year
  • Watch event: 2

Issues and Pull Requests

Last synced: 12 months ago

All Time
  • Total issues: 1
  • Total pull requests: 1
  • Average time to close issues: N/A
  • Average time to close pull requests: less than a minute
  • Total issue authors: 1
  • Total pull request authors: 1
  • Average comments per issue: 0.0
  • Average comments per pull request: 0.0
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • AlbertoCuadra (1)
Pull Request Authors
Top Labels
Issue Labels
enhancement (1)
Pull Request Labels