19 #ifndef vtkLICNoiseHelper_h
20 #define vtkLICNoiseHelper_h
22 #include "vtkRenderingLICOpenGL2Module.h"
99 float*
Generate(
int type,
int& sideLen,
int& grainLize,
float minNoiseVal,
float maxNoiseVal,
100 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
114 float* GenerateUniform(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
115 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
120 float* GenerateGaussian(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
121 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
126 float* GeneratePerlin(
int sideLen,
int grainLize,
float minNoiseVal,
float maxNoiseVal,
127 int nLevels,
double impulseProb,
float impulseBgNoiseVal,
int seed);
135 int ShouldGenerateValue(
double prob);
142 void GetValidDimensionAndGrainSize(
int type,
int& dim,
int& grainSize);
vtkLICRandomNoise2D()=default
void Next() override
Move to the next number in the random sequence.
An interface to a random number generator.
static vtkImageData * GetNoiseResource()
void SetSeed(int seedVal)
Seed the random number generator.
~vtkLICRandomNumberGeneratorInterface()
void SetSeed(int value)
Set the seed of the random sequence.
static vtkMinimalStandardRandomSequence * New()
Standard methods for instantiation, type information, and printing.
topologically and geometrically regular array of data
double GetRandomNumber()
Get a random number in the range of 0 to 1.
Park and Miller Sequence of pseudo random numbers.
vtkLICRandomNumberGeneratorInterface()
double GetValue() override
Current value.
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)...
virtual void Delete()
Delete a VTK object.
void DeleteValues(unsigned char *vals)
Delete the passed in array of values.