The
Arithmetic effect performs various simple mathematical operations
on an image’s red, green, and blue channels.
This effect works with 8-bpc color.
- Operator
-
The operation to perform between the value you specify for
each channel and the existing value of that channel for each pixel
in the image:
- And, Or, and Xor
-
Apply bitwise logical operations.
- Add, Subtract, Multiply, and Difference
-
Apply basic math functions.
- Max
-
Set the pixel’s channel value to the greater of the specified
value and the pixel’s original value.
- Min
-
Set the pixel’s channel value to the lesser of the specified
value and the pixel’s original value.
- Block Above
-
Set the pixel’s channel value to zero if the pixel’s original
value is greater than the value specified; otherwise, leave the
original value.
- Block Below
-
Set the pixel’s channel value to zero if the pixel’s original
value is less than the value specified; otherwise, leave the original
value.
- Slice
-
Set the pixel’s channel value to 1.0 if the pixel’s original
value is above the specified value; otherwise, set the value to
zero. In both cases, the values for the other color channels are
set to 1.0.
- Clip Result Values
-
Prevents
all functions from creating color values that exceed the valid range.
If this option isn’t selected, some color values may wrap around.