Public Member Functions | |
BestCandidateSampler (int xstart, int xend, int ystart, int yend, int pixelsamples) | |
~BestCandidateSampler () | |
int | RoundSize (int size) const |
bool | GetNextSample (Sample *sample) |
Private Attributes | |
int | tableOffset |
float | xTableCorner |
float | yTableCorner |
float | tableWidth |
float ** | oneDSamples |
float ** | twoDSamples |
int * | strat2D |
float | sampleOffsets [3] |
Static Private Attributes | |
static const float | sampleTable [SAMPLE_TABLE_SIZE][5] |
Definition at line 33 of file bestcandidate.cpp.
BestCandidateSampler::BestCandidateSampler | ( | int | xstart, | |
int | xend, | |||
int | ystart, | |||
int | yend, | |||
int | pixelsamples | |||
) |
Definition at line 61 of file bestcandidate.cpp.
References oneDSamples, SAMPLE_TABLE_SIZE, SQRT_SAMPLE_TABLE_SIZE, strat2D, tableOffset, tableWidth, twoDSamples, Sampler::xPixelStart, xTableCorner, Sampler::yPixelStart, and yTableCorner.
Referenced by CreateSampler().
BestCandidateSampler::~BestCandidateSampler | ( | ) | [inline] |
int BestCandidateSampler::RoundSize | ( | int | size | ) | const [inline, virtual] |
bool BestCandidateSampler::GetNextSample | ( | Sample * | sample | ) | [virtual] |
Implements Sampler.
Definition at line 75 of file bestcandidate.cpp.
References Ceil2Int(), Sample::imageX, Sample::imageY, LDShuffleScrambled1D(), LDShuffleScrambled2D(), Sample::lensU, Sample::lensV, Sample::n1D, Sample::n2D, Sample::oneD, oneDSamples, RandomFloat(), SAMPLE_TABLE_SIZE, sampleOffsets, sampleTable, strat2D, StratifiedSample1D(), StratifiedSample2D(), tableOffset, tableWidth, Sample::time, Sample::twoD, twoDSamples, WRAP, Sampler::xPixelEnd, Sampler::xPixelStart, xTableCorner, Sampler::yPixelEnd, Sampler::yPixelStart, and yTableCorner.
int BestCandidateSampler::tableOffset [private] |
Definition at line 52 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), and GetNextSample().
float BestCandidateSampler::xTableCorner [private] |
Definition at line 53 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), and GetNextSample().
float BestCandidateSampler::yTableCorner [private] |
Definition at line 53 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), and GetNextSample().
float BestCandidateSampler::tableWidth [private] |
Definition at line 53 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), and GetNextSample().
const float BestCandidateSampler::sampleTable [static, private] |
float** BestCandidateSampler::oneDSamples [private] |
Definition at line 55 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), GetNextSample(), and ~BestCandidateSampler().
float ** BestCandidateSampler::twoDSamples [private] |
Definition at line 55 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), GetNextSample(), and ~BestCandidateSampler().
int* BestCandidateSampler::strat2D [private] |
Definition at line 56 of file bestcandidate.cpp.
Referenced by BestCandidateSampler(), GetNextSample(), and ~BestCandidateSampler().
float BestCandidateSampler::sampleOffsets[3] [private] |