de.grogra.ray2.tracing
public class MetropolisRenderer extends PixelwiseRenderer
| Modifier and Type | Class and Description |
|---|---|
static class |
MetropolisRenderer.MetropolisResult |
static class |
MetropolisRenderer.MLTTask |
PixelwiseRenderer.RenderTask, PixelwiseRenderer.Result| Modifier and Type | Field and Description |
|---|---|
static int |
actRenderingStage |
static boolean |
directLightning_Ref |
static boolean |
expectedValues_Ref |
static int |
FIRST_STAGE |
protected Color4f |
firstStageAverageValue |
protected Color4f |
firstStageBrightestValue |
protected Color4f |
firstStageDarkestValue |
protected float[][] |
firstStageHdrPixels |
protected java.awt.image.BufferedImage |
firstStageImage |
protected int[] |
firstStageRgbaPixels |
static boolean |
importanceSampling_Ref |
static java.lang.String |
INITIAL_COUNT |
static int |
initialCount |
int |
mutatedPixPerProc |
static java.lang.String |
MUTATION_PP_COUNT |
static int |
mutationPPCount |
int |
notMutatedPixelsLeft |
protected int[] |
pixelChangeArray |
protected net.goui.util.MTRandom |
rnd |
static int |
SECOND_STAGE |
static java.lang.String |
SEED_COUNT |
static int |
seedPathCount |
int |
solverCount |
protected static float |
testimageCorrectionFactor |
static int |
testimageMutperPix |
static boolean |
twoStage_Ref |
antialiasing, ANTIALIASING, AUTO_ADJUST, AUTO_ADJUST_MAX_VALUE, autoAdjust, autoAdjustMaxValue, brightness, BRIGHTNESS, camera, cameraTransformation, DEBUG_LINE, DEBUG_PIXEL, DEBUG_SUBPIXEL, DEBUG_X, DEBUG_Y, hdr, HDR, hdrPixels, height, image, imageUpdateDistance, imageUpdateRate, lineState, maxValue, monitor, observer, originalScene, RAYPROCESSOR, REMOVE_OUTLIERS, removeOutliers, renderedLines, rgbaPixels, seed, SEED, THREAD_COUNT, threadCount, width| Constructor and Description |
|---|
MetropolisRenderer() |
| Modifier and Type | Method and Description |
|---|---|
Solver |
createLocalSolver(boolean sameThread) |
protected void |
dispose(PartialTask task)
This method is invoked when an active solver is removed or
invokes
Task.partialTaskDone(Solver) in order to tell this
task that the partial task of the solver is no longer processed. |
protected boolean |
done()
Returns
true iff the complete task has been solved. |
float |
getFirstStageImageValue(int x,
int y) |
float[] |
getPixelsForLine2Vertex(Environment env,
Point3d vertex) |
void |
increaseNotMutatedPixels(int count) |
void |
initialize(Options opts,
ProgressMonitor progress)
Initializes the renderer.
|
void |
merge(PixelwiseRenderer.Result res) |
protected PartialTask |
nextPartialTask(int solverIndex)
This method returns the next partial task for this task.
|
void |
render(Scene scene,
Sensor camera,
Matrix4d cameraTransformation,
int width,
int height,
java.awt.image.ImageObserver obs)
Renders an image of a
scene. |
protected void |
renderMLT(Antialiasing antialiasing,
int mutatedPixPerProc,
int solverNo,
PixelwiseRenderer.Result res) |
void |
stop()
This method is invoked in order to stop the computation
of this task.
|
getAdjustFactor, getAutoAdjust, getBooleanOption, getBrightness, getCamera, getCameraTransformation, getClassOption, getNumericOption, getScene, getSeed, luminance, removeOutliers, renderLines, setAntialiasing, setAutoAdjust, setAutoAdjustMaxValue, setBrightness, setHDR, setMessage, setThreadCount, toIntColor, toRGBAaddSolver, finishSolve, getSolverCount, getSolvers, isSolving, isStopped, partialTaskDone, prepareSolve, removeSolver, removeSolvers, solvepublic static int actRenderingStage
public static boolean directLightning_Ref
public static boolean expectedValues_Ref
public static final int FIRST_STAGE
protected Color4f firstStageAverageValue
protected Color4f firstStageBrightestValue
protected Color4f firstStageDarkestValue
protected float[][] firstStageHdrPixels
protected java.awt.image.BufferedImage firstStageImage
protected int[] firstStageRgbaPixels
public static boolean importanceSampling_Ref
public static final java.lang.String INITIAL_COUNT
public static int initialCount
public int mutatedPixPerProc
public static final java.lang.String MUTATION_PP_COUNT
public static int mutationPPCount
public int notMutatedPixelsLeft
protected int[] pixelChangeArray
protected net.goui.util.MTRandom rnd
public static final int SECOND_STAGE
public static final java.lang.String SEED_COUNT
public static int seedPathCount
public int solverCount
protected static float testimageCorrectionFactor
public static int testimageMutperPix
public static boolean twoStage_Ref
public Solver createLocalSolver(boolean sameThread)
createLocalSolver in class PixelwiseRendererprotected void dispose(PartialTask task)
TaskTask.partialTaskDone(Solver) in order to tell this
task that the partial task of the solver is no longer processed.
Note that the solver may not have completely processed
its partial task.dispose in class PixelwiseRenderertask - partial task which is no longer processedprotected boolean done()
Tasktrue iff the complete task has been solved.done in class PixelwiseRendererpublic float getFirstStageImageValue(int x,
int y)
public float[] getPixelsForLine2Vertex(Environment env, Point3d vertex)
public void increaseNotMutatedPixels(int count)
public void initialize(Options opts, ProgressMonitor progress)
Rendererinitialize in interface Rendererinitialize in class PixelwiseRendereropts - options to use (may be null)progress - monitor to display rendering progress
(may be null)public void merge(PixelwiseRenderer.Result res)
merge in class PixelwiseRendererprotected PartialTask nextPartialTask(int solverIndex)
Tasknull is returned. However, a later invocation
may return a partial task if a currently active solver
does not completely solve its partial task.nextPartialTask in class PixelwiseRenderersolverIndex - index of solver which will be used for next tasknullpublic void render(Scene scene, Sensor camera, Matrix4d cameraTransformation, int width, int height, java.awt.image.ImageObserver obs)
Rendererscene.render in interface Rendererrender in class PixelwiseRendererscene - scene to rendercamera - camera to usecameraTransformation - transformation from camera coordinates
to world coordinateswidth - width of imageheight - height of imageobs - the observer receives the image dataprotected void renderMLT(Antialiasing antialiasing, int mutatedPixPerProc, int solverNo, PixelwiseRenderer.Result res)