java.lang.Object
imagingbook.common.noise.perlin.PerlinNoiseGenerator
imagingbook.common.noise.perlin.PerlinNoiseGeneratorNd
This class implements an N-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 Summary
ConstructorsConstructorDescriptionPerlinNoiseGeneratorNd
(int N, double f_min, double f_max, double persistence, HashFunction hf) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiondouble
getNoiseValue
(double[] X) N-dim combined (multi-frequency) Perlin noise function.Methods inherited from class imagingbook.common.noise.perlin.PerlinNoiseGenerator
getAmplitudes, getFrequencies
-
Constructor Details
-
PerlinNoiseGeneratorNd
public PerlinNoiseGeneratorNd(int N, double f_min, double f_max, double persistence, HashFunction hf) Constructor.- Parameters:
N
- number of dimensionsf_min
- minimum frequencyf_max
- maximum frequencypersistence
- persistencehf
- hash function
-
-
Method Details
-
getNoiseValue
N-dim combined (multi-frequency) Perlin noise function.- Parameters:
X
- Interpolation position X (N-dimensional).- Returns:
- The value of the combined Perlin noise function for the N-dimensional position X.
-