Package camera3D.generators
Class AnaglyphGenerator
java.lang.Object
camera3D.generators.Generator
camera3D.generators.StereoscopicGenerator
camera3D.generators.AnaglyphGenerator
- All Implemented Interfaces:
processing.core.PConstants
- Direct Known Subclasses:
BitMaskFilterAnaglyphGenerator,DuboisAnaglyphGenerator,DuboisAnaglyphGenerator32bitLUT,DuboisAnaglyphGenerator64bitLUT,DuboisAnaglyphGeneratorNaive,MatrixAnaglyphGenerator,MatrixAnaglyphGeneratorLUT
Base class for all of the anaglyph generators.
This class provides some default matrix values and implementations of some
useful functions for making anaglyphs. If you make your own anaglyph
generator you may find it helpful to derive from this class.
-
Nested Class Summary
Nested classes/interfaces inherited from class camera3D.generators.Generator
Generator.PixelCopyTask -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixstatic final AnaglyphMatrixFields inherited from interface processing.core.PConstants
ADD, ALPHA, ALT, AMBIENT, ARC, ARGB, ARROW, BACKSPACE, BASELINE, BEVEL, BEZIER_VERTEX, BLEND, BLUR, BOTTOM, BOX, BREAK, BURN, CENTER, CHATTER, CHORD, CLAMP, CLOSE, CODED, COMPLAINT, CONTROL, CORNER, CORNERS, CROSS, CURVE_VERTEX, CUSTOM, DARKEST, DEG_TO_RAD, DELETE, DIAMETER, DIFFERENCE, DILATE, DIRECTIONAL, DISABLE_ASYNC_SAVEFRAME, DISABLE_BUFFER_READING, DISABLE_DEPTH_MASK, DISABLE_DEPTH_SORT, DISABLE_DEPTH_TEST, DISABLE_KEY_REPEAT, DISABLE_NATIVE_FONTS, DISABLE_OPENGL_ERRORS, DISABLE_OPTIMIZED_STROKE, DISABLE_STROKE_PERSPECTIVE, DISABLE_STROKE_PURE, DISABLE_TEXTURE_MIPMAPS, DODGE, DOWN, DXF, ELLIPSE, ENABLE_ASYNC_SAVEFRAME, ENABLE_BUFFER_READING, ENABLE_DEPTH_MASK, ENABLE_DEPTH_SORT, ENABLE_DEPTH_TEST, ENABLE_KEY_REPEAT, ENABLE_NATIVE_FONTS, ENABLE_OPENGL_ERRORS, ENABLE_OPTIMIZED_STROKE, ENABLE_STROKE_PERSPECTIVE, ENABLE_STROKE_PURE, ENABLE_TEXTURE_MIPMAPS, ENTER, EPSILON, ERODE, ESC, EXCLUSION, FX2D, GIF, GRAY, GROUP, HALF_PI, HAND, HARD_LIGHT, HINT_COUNT, HSB, IMAGE, INVERT, JAVA2D, JPEG, LANDSCAPE, LEFT, LIGHTEST, LINE, LINE_LOOP, LINE_STRIP, LINES, LINUX, MACOS, MACOSX, MAX_FLOAT, MAX_INT, MIN_FLOAT, MIN_INT, MITER, MODEL, MODELVIEW, MOVE, MULTIPLY, NORMAL, OPAQUE, OPEN, OPENGL, ORTHOGRAPHIC, OTHER, OVERLAY, P2D, P3D, PATH, PDF, PERSPECTIVE, PI, PIE, platformNames, POINT, POINTS, POLYGON, PORTRAIT, POSTERIZE, PROBLEM, PROJECT, PROJECTION, QUAD, QUAD_BEZIER_VERTEX, QUAD_STRIP, QUADRATIC_VERTEX, QUADS, QUARTER_PI, RAD_TO_DEG, RADIUS, RECT, REPEAT, REPLACE, RETURN, RGB, RIGHT, ROUND, SCREEN, SHAPE, SHIFT, SOFT_LIGHT, SPAN, SPHERE, SPOT, SQUARE, SUBTRACT, SVG, TAB, TARGA, TAU, TEXT, THIRD_PI, THRESHOLD, TIFF, TOP, TRIANGLE, TRIANGLE_FAN, TRIANGLE_STRIP, TRIANGLES, TWO_PI, UP, VERTEX, WAIT, WHITESPACE, WINDOWS, X, Y, Z -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected floatapplyGammaCorrection(float s, float gamma) protected floatapplyGammaCorrectionStandardRGB(float s) protected int[]preComputeApplyGammaCorrectionStandardrgbLUT(int maxEncodedValue) protected long[]preComputeDuboisLUT(AnaglyphMatrix matrix, float[] removeGammaCorrectionLUT, int maxEncodedValue, int bitshift) protected int[]preComputeMatrixLUT(AnaglyphMatrix matrix) protected float[]protected floatremoveGammaCorrection(float s, float gamma) protected floatremoveGammaCorrectionStandardRGB(float s) Methods inherited from class camera3D.generators.StereoscopicGenerator
cleanup, completedDraw, getComponentCount, getComponentFrameName, prepareForDraw, recalculateCameraSettings, setAdjustTargetFactor, setDivergence, swapLeftRight, useSymmetricFrustumMethods inherited from class camera3D.generators.Generator
clip, clip, copyFrameNumber, executeTask, generateCompositeFrame, generateCompositeFrameAndSaveComponents, initExecutor, insertFrame, notifyCameraConfigChange
-
Field Details
-
LEFT_DUBOIS_REDCYAN
-
RIGHT_DUBOIS_REDCYAN
-
LEFT_DUBOIS_MAGENTAGREEN
-
RIGHT_DUBOIS_MAGENTAGREEN
-
LEFT_DUBOIS_AMBERBLUE
-
RIGHT_DUBOIS_AMBERBLUE
-
LEFT_TRUE_ANAGLYPH
-
RIGHT_TRUE_ANAGLYPH
-
LEFT_GRAY_ANAGLYPH
-
RIGHT_GRAY_ANAGLYPH
-
LEFT_HALF_COLOR_ANAGLYPH
-
RIGHT_HALF_COLOR_ANAGLYPH
-
-
Constructor Details
-
AnaglyphGenerator
public AnaglyphGenerator()
-
-
Method Details
-
applyGammaCorrectionStandardRGB
protected float applyGammaCorrectionStandardRGB(float s) -
removeGammaCorrectionStandardRGB
protected float removeGammaCorrectionStandardRGB(float s) -
removeGammaCorrection
protected float removeGammaCorrection(float s, float gamma) -
applyGammaCorrection
protected float applyGammaCorrection(float s, float gamma) -
preComputeApplyGammaCorrectionStandardrgbLUT
protected int[] preComputeApplyGammaCorrectionStandardrgbLUT(int maxEncodedValue) -
preComputeRemoveGammaCorrectionStandardrgbLUT
protected float[] preComputeRemoveGammaCorrectionStandardrgbLUT() -
preComputeDuboisLUT
protected long[] preComputeDuboisLUT(AnaglyphMatrix matrix, float[] removeGammaCorrectionLUT, int maxEncodedValue, int bitshift) -
preComputeMatrixLUT
-