#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] |
Definition at line 55 of file metropolis.h.
References consec_rejects, and L.
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 75 of file metropolis.cpp.
References newsamp, and lux::MetroSample::value().
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 56 of file metropolis.h.
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), and Metropolis().
Definition at line 65 of file metropolis.h.
Referenced by AddSample(), and Metropolis().
Definition at line 67 of file metropolis.h.
Referenced by GetNextSample().
Definition at line 66 of file metropolis.h.
Referenced by AddSample(), and SetParams().
Definition at line 64 of file metropolis.h.
Referenced by AddSample(), and GetNextSample().
Definition at line 64 of file metropolis.h.
Referenced by AddSample(), GetNext(), and GetNextSample().
float lux::Metropolis::pLarge |
Definition at line 68 of file metropolis.h.
Referenced by GetNextSample(), and SetParams().
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().