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