src/main/java/ch/wetwer/moviefleur/helper/AdditiveCombiner.java
/**
     * @param imgFrameLeft  will be the img for the left eye
     * @param imgFrameRight will be the img for the right eye
     *
     * @return a combined image with additive color filtering
     */
@param imgFrameLeft  will be the img for the left eye
@param imgFrameRight will be the img for the right eye

@return a combined image with additive color filtering
@param imgFrameLeft will be the img for the left eye @param imgFrameRight will be the img for the right eye @return a combined image with additive color filtering
public static BufferedImage combine(BufferedImage imgFrameLeft, BufferedImage imgFrameRight) {
        BufferedImage combined
                = new BufferedImage(imgFrameLeft.getWidth(), imgFrameLeft.getHeight(), BufferedImage.TYPE_INT_RGB);
        for (int x = 0; x < imgFrameLeft.getWidth(); x++) {
            for (int y = 0; y < imgFrameLeft.getHeight(); y++) {
                combined.setRGB(x, y, additive(imgFrameLeft.getRGB(x, y), imgFrameRight.getRGB(x, y)));
            }
        }
        return combined;
    }
public static BufferedImage combine ( BufferedImage imgFrameLeft , BufferedImage imgFrameRight ) { BufferedImage combined = new BufferedImage ( imgFrameLeft . getWidth ( ) , imgFrameLeft . getHeight ( ) , BufferedImage . TYPE_INT_RGB ) ; for ( int x = 0 ; x < imgFrameLeft . getWidth ( ) ; x ++ ) { for ( int y = 0 ; y < imgFrameLeft . getHeight ( ) ; y ++ ) { combined . setRGB ( x , y , additive ( imgFrameLeft . getRGB ( x , y ) , imgFrameRight . getRGB ( x , y ) ) ) ; } } return combined ; }
@param imgFrameLeft  will be the img for the left eye
 @param imgFrameRight will be the img for the right eye
@param imgFrameLeft will be the img for the left eye @param imgFrameRight will be the img for the right eye