#include <stratified.h>
Public Member Functions | |
| StratifiedSampler (int xstart, int xend, int ystart, int yend, int xs, int ys, bool jitter, float sopen, float sclose) | |
| ~StratifiedSampler () | |
| int | RoundSize (int size) const |
| Sampler * | GetSubSampler (int num, int count) |
| int | GetMoreSamples (Sample *sample, RNG &rng) |
| int | MaximumSampleCount () |
Private Attributes | |
| int | xPixelSamples |
| int | yPixelSamples |
| bool | jitterSamples |
| int | xPos |
| int | yPos |
| float * | sampleBuf |
Definition at line 36 of file stratified.h.
| StratifiedSampler::StratifiedSampler | ( | int | xstart, | |
| int | xend, | |||
| int | ystart, | |||
| int | yend, | |||
| int | xs, | |||
| int | ys, | |||
| bool | jitter, | |||
| float | sopen, | |||
| float | sclose | |||
| ) |
Definition at line 33 of file stratified.cpp.
References jitterSamples, sampleBuf, xPixelSamples, Sampler::xPixelStart, xPos, yPixelSamples, Sampler::yPixelStart, and yPos.
Referenced by GetSubSampler().
| StratifiedSampler::~StratifiedSampler | ( | ) |
Definition at line 46 of file stratified.cpp.
References sampleBuf.
Implements Sampler.
Definition at line 60 of file stratified.cpp.
References CameraSample::imageX, CameraSample::imageY, jitterSamples, LatinHypercube(), CameraSample::lensU, CameraSample::lensV, Lerp(), Sample::n1D, Sample::n2D, sampleBuf, Shuffle(), Sampler::shutterClose, Sampler::shutterOpen, StratifiedSample1D(), StratifiedSample2D(), CameraSample::time, Sampler::xPixelEnd, xPixelSamples, Sampler::xPixelStart, xPos, Sampler::yPixelEnd, yPixelSamples, and yPos.
| Sampler * StratifiedSampler::GetSubSampler | ( | int | num, | |
| int | count | |||
| ) | [virtual] |
Implements Sampler.
Definition at line 51 of file stratified.cpp.
References Sampler::ComputeSubWindow(), jitterSamples, Sampler::shutterClose, Sampler::shutterOpen, StratifiedSampler(), xPixelSamples, and yPixelSamples.
| int StratifiedSampler::MaximumSampleCount | ( | ) | [inline, virtual] |
Implements Sampler.
Definition at line 45 of file stratified.h.
References xPixelSamples, and yPixelSamples.
| int StratifiedSampler::RoundSize | ( | int | size | ) | const [inline, virtual] |
Implements Sampler.
Definition at line 42 of file stratified.h.
bool StratifiedSampler::jitterSamples [private] |
Definition at line 49 of file stratified.h.
Referenced by GetMoreSamples(), GetSubSampler(), and StratifiedSampler().
float* StratifiedSampler::sampleBuf [private] |
Definition at line 51 of file stratified.h.
Referenced by GetMoreSamples(), StratifiedSampler(), and ~StratifiedSampler().
int StratifiedSampler::xPixelSamples [private] |
Definition at line 48 of file stratified.h.
Referenced by GetMoreSamples(), GetSubSampler(), MaximumSampleCount(), and StratifiedSampler().
int StratifiedSampler::xPos [private] |
Definition at line 50 of file stratified.h.
Referenced by GetMoreSamples(), and StratifiedSampler().
int StratifiedSampler::yPixelSamples [private] |
Definition at line 48 of file stratified.h.
Referenced by GetMoreSamples(), GetSubSampler(), MaximumSampleCount(), and StratifiedSampler().
int StratifiedSampler::yPos [private] |
Definition at line 50 of file stratified.h.
Referenced by GetMoreSamples(), and StratifiedSampler().
1.6.3