Fractional Brownian Motion Generator

버전 1.0.0 (6.59 MB) 작성자: Alberto Cuadra Lara
Generate patterns using the fractional Brownian motion
다운로드 수: 25
업데이트 날짜: 2023/4/26

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:

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

인용 양식

Alberto Cuadra Lara (2024). Fractional Brownian Motion Generator (https://github.com/AlbertoCuadra/fbm/releases/tag/v1.0.0), GitHub. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2023a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.