Class DuboisAnaglyphGenerator64bitLUT

All Implemented Interfaces:
processing.core.PConstants

public class DuboisAnaglyphGenerator64bitLUT extends AnaglyphGenerator
Optimized implementation of the Dubois Anaglyph algorithm. More information can be found here: http://www.site.uottawa.ca/~edubois/anaglyph/ particularly: http://www.site.uottawa.ca/~edubois/anaglyph/LeastSquaresHowToPhotoshop.pdf http://www.site.uottawa.ca/~edubois/icassp01/anaglyphdubois.pdf This algorithm is actually similar to what's being done in the MatrixAnaglyphGeneratorLUT except the calculations are done in linear RGB space. 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 300x. The lookup tables will use 260 MB of RAM. Without these optimizations it would not be possible to use this algorithm in real time.
  • Constructor Details

  • Method Details

    • createRedCyanGenerator

      public static StereoscopicGenerator createRedCyanGenerator()
    • createMagentaGreenGenerator

      public static StereoscopicGenerator createMagentaGreenGenerator()
    • createAmberBlueGenerator

      public static StereoscopicGenerator createAmberBlueGenerator()
    • 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