PICCANTE
0.4
The hottest HDR imaging library!
|
The RandomSampler class. More...
#include <sampler_random.hpp>
Public Member Functions | |
RandomSampler () | |
RandomSampler. More... | |
RandomSampler (SAMPLER_TYPE type, Vec< N, int > window, int nSamples, int nLevels, unsigned int seed) | |
RandomSampler. More... | |
void | update (SAMPLER_TYPE type, Vec< N, int > window, int nSamples, int nLevels) |
update More... | |
void | render2Int () |
render2Int More... | |
void | wrap (float alpha) |
wrap More... | |
void | cutRescale (unsigned int cutDim) |
cutRescale More... | |
int | getSamplesPerLevel (int level) |
getSamplesPerLevel More... | |
void | getSampleAt (int level, int i, int &x, int &y) |
getSampleAt More... | |
void | Write (std::string name, int level) |
Write. More... | |
Static Public Member Functions | |
static void | generateFigureRS (std::string nameOut, SAMPLER_TYPE type, int window, int nSamples, int nLevels) |
generateFigureRS More... | |
static void | Generate (SAMPLER_TYPE type, int window) |
Generate. More... | |
Public Attributes | |
std::vector< float > | samples |
std::vector< int > | samplesR |
std::vector< int > | levels |
std::vector< int > | levelsR |
Vec< N, int > | window |
int | nSamples |
Protected Attributes | |
SAMPLER_TYPE | type |
std::mt19937 * | m |
std::set< int > | track |
The RandomSampler class.
|
inline |
pic::RandomSampler< N >::RandomSampler | ( | SAMPLER_TYPE | type, |
Vec< N, int > | window, | ||
int | nSamples, | ||
int | nLevels, | ||
unsigned int | seed | ||
) |
type | |
window | |
nSamples | |
nLevels |
void pic::RandomSampler< N >::cutRescale | ( | unsigned int | cutDim | ) |
cutRescale
cutDim |
|
inlinestatic |
Generate.
type | |
window |
|
inlinestatic |
generateFigureRS
nameOut | |
type | |
window | |
nSamples | |
nLevels |
void pic::RandomSampler< N >::getSampleAt | ( | int | level, |
int | i, | ||
int & | x, | ||
int & | y | ||
) |
getSampleAt
level | |
i | |
x | |
y |
int pic::RandomSampler< N >::getSamplesPerLevel | ( | int | level | ) |
getSamplesPerLevel
level |
void pic::RandomSampler< N >::render2Int | ( | ) |
render2Int
void pic::RandomSampler< N >::update | ( | SAMPLER_TYPE | type, |
Vec< N, int > | window, | ||
int | nSamples, | ||
int | nLevels | ||
) |
update
type | |
window | |
nSamples | |
nLevels |
void pic::RandomSampler< N >::wrap | ( | float | alpha | ) |
wrap
alpha |
void pic::RandomSampler< N >::Write | ( | std::string | name, |
int | level | ||
) |
Write.
name | |
level |
std::vector<int> pic::RandomSampler< N >::levels |
std::vector<int> pic::RandomSampler< N >::levelsR |
|
protected |
int pic::RandomSampler< N >::nSamples |
std::vector<float> pic::RandomSampler< N >::samples |
std::vector<int> pic::RandomSampler< N >::samplesR |
|
protected |
|
protected |
Vec<N, int> pic::RandomSampler< N >::window |