Class AnaglyphGenerator

All Implemented Interfaces:
processing.core.PConstants
Direct Known Subclasses:
BitMaskFilterAnaglyphGenerator, DuboisAnaglyphGenerator, DuboisAnaglyphGenerator32bitLUT, DuboisAnaglyphGenerator64bitLUT, DuboisAnaglyphGeneratorNaive, MatrixAnaglyphGenerator, MatrixAnaglyphGeneratorLUT

public abstract class AnaglyphGenerator extends StereoscopicGenerator
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.
  • Field Details

    • LEFT_DUBOIS_REDCYAN

      public static final AnaglyphMatrix LEFT_DUBOIS_REDCYAN
    • RIGHT_DUBOIS_REDCYAN

      public static final AnaglyphMatrix RIGHT_DUBOIS_REDCYAN
    • LEFT_DUBOIS_MAGENTAGREEN

      public static final AnaglyphMatrix LEFT_DUBOIS_MAGENTAGREEN
    • RIGHT_DUBOIS_MAGENTAGREEN

      public static final AnaglyphMatrix RIGHT_DUBOIS_MAGENTAGREEN
    • LEFT_DUBOIS_AMBERBLUE

      public static final AnaglyphMatrix LEFT_DUBOIS_AMBERBLUE
    • RIGHT_DUBOIS_AMBERBLUE

      public static final AnaglyphMatrix RIGHT_DUBOIS_AMBERBLUE
    • LEFT_TRUE_ANAGLYPH

      public static final AnaglyphMatrix LEFT_TRUE_ANAGLYPH
    • RIGHT_TRUE_ANAGLYPH

      public static final AnaglyphMatrix RIGHT_TRUE_ANAGLYPH
    • LEFT_GRAY_ANAGLYPH

      public static final AnaglyphMatrix LEFT_GRAY_ANAGLYPH
    • RIGHT_GRAY_ANAGLYPH

      public static final AnaglyphMatrix RIGHT_GRAY_ANAGLYPH
    • LEFT_HALF_COLOR_ANAGLYPH

      public static final AnaglyphMatrix LEFT_HALF_COLOR_ANAGLYPH
    • RIGHT_HALF_COLOR_ANAGLYPH

      public static final AnaglyphMatrix 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

      protected int[] preComputeMatrixLUT(AnaglyphMatrix matrix)