Class DuboisAnaglyphGenerator

All Implemented Interfaces:
processing.core.PConstants

public class DuboisAnaglyphGenerator 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 MatrixAnaglyphGenerator except the calculations are done in linear RGB space. This precomputes some lookup tables for gamma correction but not for the Dubois matrix calculations. This will have a small memory footprint but will be much slower than the DuboisAnaglyphGenerator64bitLUT implementation.
  • 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