Math Ops

 
 
 

The Math Ops tool lets you apply mathematical blending operations to the RGBA values of two source images.

Use the following procedure to apply mathematical blending operations.

To apply mathematical blending operations to an image:

  1. Drag the Math Ops tool from the Tools tab to the dependency graph in the Schematic view.
  2. Connect a source image to input A and another source image into input B of the Math Ops node.
  3. Click the Operator button and select a math operator.
    Select: To:
    Add Add to the RGBA of input A, a percentage (using the Blend value) of the RGBA of input B.
    Div Divide the RGBA values of input A by the RGBA values of input B.
    Max Create a composite image where the final output will be the maximum RGBA values of either input A or input B.
    Min Create a composite image where the final output will be the minimum RGBA values of either input A or input B.
    Mix Mix the RGBA values of input A with the RGBA values of input B: 0% = completely A, 100% = completely B.
    Mult Multiply the RGBA values of input A by the RGBA values of input B.
    Screen Mimic the effect of combining two film negatives together. Both layers are inverted, then multiplied, and finally the results are inverted back.
    Sub Subtract from the RGBA of input A a percentage (using the Blend value) of the RGBA of input B.
  4. Blend the images. The blend factor controls the blend between the result of the math operation and the original input.
NoteThe Math Ops tool has a masking input and its attributes are also animatable—see Pixel Masking and Animation.

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License