#include "erpt.h"
#include "dynload.h"
#include "scene.h"
#include "error.h"
Go to the source code of this file.
Defines | |
#define | SAMPLE_FLOATS 7 |
Functions | |
static float | mutate (const float x, const float randomValue) |
static float | mutateScaled (const float x, const float randomValue, const float mini, const float maxi, const float range) |
static void | initERPT (ERPTSampler *sampler, const Sample *sample) |
Variables | |
static DynamicLoader::RegisterSampler < ERPTSampler > | r ("erpt") |
#define SAMPLE_FLOATS 7 |
Definition at line 36 of file erpt.cpp.
Referenced by lux::MetropolisSampler::AddSample(), lux::ERPTSampler::AddSample(), lux::MetropolisSampler::GetNextSample(), lux::ERPTSampler::GetNextSample(), initERPT(), and initMetropolis().
static void initERPT | ( | ERPTSampler * | sampler, | |
const Sample * | sample | |||
) | [static] |
Definition at line 98 of file erpt.cpp.
References lux::ERPTSampler::baseImage, lux::ERPTSampler::baseSampler, lux::ERPTSampler::baseTimeImage, lux::Sampler::contribBuffer, lux::Scene::contribPool, lux::Sample::dxD, lux::Sampler::film, lux::ERPTSampler::mutation, lux::Sample::n1D, lux::Sample::n2D, lux::ContributionPool::Next(), lux::ERPTSampler::normalSamples, lux::Sample::nxD, lux::ERPTSampler::offset, SAMPLE_FLOATS, lux::ERPTSampler::sampleImage, lux::Film::scene, lux::Sampler::SetFilm(), lux::Sampler::SetTsPack(), lux::ERPTSampler::timeImage, lux::ERPTSampler::totalSamples, lux::ERPTSampler::totalTimes, and lux::Sampler::tspack.
Referenced by lux::ERPTSampler::GetNextSample().
static float mutate | ( | const float | x, | |
const float | randomValue | |||
) | [static] |
Definition at line 39 of file erpt.cpp.
Referenced by lux::ERPTSampler::GetLazyValues(), and lux::ERPTSampler::GetNextSample().
static float mutateScaled | ( | const float | x, | |
const float | randomValue, | |||
const float | mini, | |||
const float | maxi, | |||
const float | range | |||
) | [static] |
Definition at line 53 of file erpt.cpp.
References cimg_library::exp(), and cimg_library::log().
Referenced by lux::ERPTSampler::GetNextSample().
DynamicLoader::RegisterSampler<ERPTSampler> r("erpt") [static] |