Class MatrixAnaglyphGeneratorLUT

All Implemented Interfaces:
processing.core.PConstants

public class MatrixAnaglyphGeneratorLUT extends AnaglyphGenerator
Optimized version of a general matrix anaglyph algorithm. This works by precomputing a set of lookup tables for every possible color. There is a small up-front cost but after that the performance speedup of the generateCompositeFrame method is about 8-10x. The lookup tables will use 128 MB of RAM.
  • Constructor Details

  • Method Details

    • createTrueAnaglyphGenerator

      public static StereoscopicGenerator createTrueAnaglyphGenerator()
    • createGrayAnaglyphGenerator

      public static StereoscopicGenerator createGrayAnaglyphGenerator()
    • createHalfColorAnaglyphGenerator

      public static StereoscopicGenerator createHalfColorAnaglyphGenerator()
    • generateCompositeFrame

      public void generateCompositeFrame(int[] pixelDest, int[][] pixelStorage)
      Description copied from class: Generator
      Combine the component frames into one composite frame.
      Specified by:
      generateCompositeFrame in class Generator