#include <metropolis.h>
Public Member Functions | |
Metropolis () | |
void | SetParams (int mR, float pL) |
void | SetFilmRes (int fX0, int fX1, int fY0, int fY1) |
bool | GetNextSample (Sampler *sampler, Sample *sample, u_int *use_pos) |
void | GetNext (float &bs1, float &bs2, float &bcs, int pathLength) |
void | AddSample (const Sample &sample, const Ray &ray, const Spectrum &L, float alpha, Film *film) |
Public Attributes | |
MetroSample | msamp |
MetroSample | newsamp |
Spectrum | L |
int | xStart |
int | xEnd |
int | yStart |
int | yEnd |
int | maxReject |
int | consec_rejects |
bool | large |
float | pLarge |
Definition at line 53 of file metropolis.h.
lux::Metropolis::Metropolis | ( | ) | [inline] |
void Metropolis::AddSample | ( | const Sample & | sample, | |
const Ray & | ray, | |||
const Spectrum & | L, | |||
float | alpha, | |||
Film * | film | |||
) |
Definition at line 117 of file metropolis.cpp.
References lux::Film::AddSample(), consec_rejects, lux::random::floatValue(), L, maxReject, cimg_library::cimg::min(), msamp, newsamp, lux::MetroSample::value(), xEnd, xStart, lux::Spectrum::y(), yEnd, and yStart.
void Metropolis::GetNext | ( | float & | bs1, | |
float & | bs2, | |||
float & | bcs, | |||
int | pathLength | |||
) |
Definition at line 84 of file metropolis.cpp.
References lux::random::floatValue(), lux::Sampler::GetNextSample(), lux::Sample::imageX, lux::Sample::imageY, large, lux::Sample::lensU, lux::Sample::lensV, msamp, newsamp, lux::MetroSample::next(), pLarge, lux::Sample::time, lux::MetroSample::value(), xEnd, xStart, yEnd, and yStart.
void lux::Metropolis::SetFilmRes | ( | int | fX0, | |
int | fX1, | |||
int | fY0, | |||
int | fY1 | |||
) | [inline] |
void lux::Metropolis::SetParams | ( | int | mR, | |
float | pL | |||
) | [inline] |
Definition at line 64 of file metropolis.h.
Referenced by AddSample(), GetNext(), and GetNextSample().
float lux::Metropolis::pLarge |
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), GetNextSample(), and SetFilmRes().
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), GetNextSample(), and SetFilmRes().
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), GetNextSample(), and SetFilmRes().
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), GetNextSample(), and SetFilmRes().