Class PerlinNoiseGenerator1d

java.lang.Object
imagingbook.common.noise.perlin.PerlinNoiseGenerator
imagingbook.common.noise.perlin.PerlinNoiseGenerator1d

This class implements a 1-dimensional Perlin noise [1] generator. See Ch. 8 of [2] for details.

[1] K. Perlin. Improving noise. In "SIGGRAPH’02: Proceedings of the 29th Annual Conference on Computer Graphics and Interactive Techniques", pp. 681–682, San Antonio, Texas (2002).
[2] W. Burger and M.J. Burge. "Principles of Digital Image Processing - Advanced Methods" (Vol. 3). Undergraduate Topics in Computer Science. Springer-Verlag, London (2013).

Version:
2022/11/24
  • Constructor Details

    • PerlinNoiseGenerator1d

      public PerlinNoiseGenerator1d(double f_min, double f_max, double persistence, HashFunction hf)
      Constructor.
      Parameters:
      f_min - minimum frequency
      f_max - maximum frequency
      persistence - persistence
      hf - hash function
  • Method Details

    • getNoiseValue

      public double getNoiseValue(double x)
      1D combined (multi-frequency) Perlin noise function. Returns the value of the combined Perlin noise function for the one-dimensional position x.
      Parameters:
      x - interpolation position
      Returns:
      the multi-frequency noise value for position x