#include "pbrt.h"
#include "sampling.h"
Go to the source code of this file.
Defines | |
#define | SQRT_SAMPLE_TABLE_SIZE 64 |
#define | SAMPLE_TABLE_SIZE |
Functions | |
static void | addSampleToGrid (float sample[][2], int sampleNum, SampleGrid *grid) |
float | Wrapped1DDist (float a, float b) |
void | BestCandidate2D (float table[][2], int count, SampleGrid *grid=NULL) |
static void | Redistribute2D (float samples[][2], SampleGrid &pixelGrid) |
int | main () |
Variables | |
static float | imageSamples [SAMPLE_TABLE_SIZE][2] |
static float | timeSamples [SAMPLE_TABLE_SIZE] |
static float | lensSamples [SAMPLE_TABLE_SIZE][2] |
#define SAMPLE_TABLE_SIZE |
Value:
Definition at line 15 of file tools/samplepat.cpp.
#define SQRT_SAMPLE_TABLE_SIZE 64 |
Definition at line 14 of file tools/samplepat.cpp.
static void addSampleToGrid | ( | float | sample[][2], | |
int | sampleNum, | |||
SampleGrid * | grid | |||
) | [static] |
void BestCandidate2D | ( | float | table[][2], | |
int | count, | |||
SampleGrid * | grid = NULL | |||
) |
int main | ( | ) |
Definition at line 39 of file tools/samplepat.cpp.
References Assert, BC_GRID_SIZE, BestCandidate2D(), ProgressReporter::Done(), GRID, imageSamples, INFINITY, lensSamples, RandomFloat(), Redistribute2D(), SAMPLE_TABLE_SIZE, Severe(), SQRT_SAMPLE_TABLE_SIZE, timeSamples, ProgressReporter::Update(), and Wrapped1DDist().
static void Redistribute2D | ( | float | samples[][2], | |
SampleGrid & | pixelGrid | |||
) | [static] |
Definition at line 174 of file tools/samplepat.cpp.
References Assert, BC_GRID_SIZE, ProgressReporter::Done(), GRID, imageSamples, INFINITY, SAMPLE_TABLE_SIZE, ProgressReporter::Update(), and Wrapped1DDist().
float Wrapped1DDist | ( | float | a, | |
float | b | |||
) | [inline] |
Definition at line 29 of file tools/samplepat.cpp.
float imageSamples[SAMPLE_TABLE_SIZE][2] [static] |
Definition at line 19 of file tools/samplepat.cpp.
float lensSamples[SAMPLE_TABLE_SIZE][2] [static] |
Definition at line 21 of file tools/samplepat.cpp.
float timeSamples[SAMPLE_TABLE_SIZE] [static] |
Definition at line 20 of file tools/samplepat.cpp.