 |
VTK
9.1.0
|
Go to the documentation of this file.
19 #ifndef vtkLICNoiseHelper_h
20 #define vtkLICNoiseHelper_h
23 #include "vtkRenderingLICOpenGL2Module.h"
100 float*
Generate(
int type,
int& sideLen,
int& grainLize,
float minNoiseVal,
float maxNoiseVal,
101 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
115 float* GenerateUniform(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
116 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
121 float* GenerateGaussian(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
122 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
127 float* GeneratePerlin(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
128 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
136 int ShouldGenerateValue(
double prob);
143 void GetValidDimensionAndGrainSize(
int type,
int& dim,
int& grainSize);
void Next() override
Move to the next number in the random sequence.
Park and Miller Sequence of pseudo random numbers.
double GetValue() override
Current value.
~vtkLICRandomNumberGeneratorInterface()
void SetSeed(int seedVal)
Seed the random number generator.
vtkLICRandomNoise2D()=default
virtual void Delete()
Delete a VTK object.
double GetRandomNumber()
Get a random number in the range of 0 to 1.
void DeleteValues(unsigned char *vals)
Delete the passed in array of values.
topologically and geometrically regular array of data
void SetSeed(int value)
Set the seed of the random sequence.
static vtkMinimalStandardRandomSequence * New()
Standard methods for instantiation, type information, and printing.
static vtkImageData * GetNoiseResource()
An interface to a random number generator.
float * Generate(int type, int &sideLen, int &grainLize, float minNoiseVal, float maxNoiseVal, int nLevels, double impulseProb, float impulseBgNoiseVal, int seed)
Generate a patch of random gray scale values along with an alpha channel (in vtk array format).
vtkLICRandomNumberGeneratorInterface()