Sapphire Plug-ins for Open Fx: MathOps

S_MathOps

Combines two clips using one of a variety of mathematical operations. The colors of each input can also be adjusted using the lights, darks, and saturation parameters.

In the Sapphire Composite effects submenu.


Inputs:

SourceA: The first input clip to be processed.

SourceB: The second input clip to be processed.

Mask: Optional. Interpolate between the result and the Source input. White areas use the result of the effect. Black areas use the Source clip.

Parameters:

Load Preset: Push-button .
Brings up the Preset Browser to browse all available presets for this effect.

Save Preset: Push-button .
Brings up the Preset Save dialog to save a preset for this effect.

Operation: Popup menu,  Default: Add .
Determines which mathematical operation is applied to combine the pixel colors of the two source inputs.
Add: A + B.
Subtract: A - B.
Multiply: A * B. This can be used as an 'intersection' operation on matte images. The result only contains white where both inputs are white.
Divide: A / B. This can be used to 'un-premultiply' an image by using its matte as the second input.
Screen: A + B - AB. This can be useful in combining the bright areas of two clips. It can also be used as a 'union' operation on matte images. The result is white where either of the input images is white.
Average: (A + B) / 2.
Overlay: combines A over B with an overlay function.
Minimum: the smallest value for each color channel of each pixel. This can also be used as an 'intersection' operation with slightly different results than Multiply.
Maximum: the largest value for each color channel of each pixel. This can also be used as a 'union' operation with slightly different results than Screen.
Difference: similar to Subtract but the absolute value of the result is used, which tends to give more resulting colors in bounds. This can be used to select the regions of two matte images where one or the other is white, but not both.
Xor: performs an 'exclusive-or' operation on the colors of the source clips. This can also be used to select the regions of two matte images where one or the other is white, but not both, with slightly different results than Difference.
Xor Bits: performs a bitwise exclusive-or on the colors of the source clips. This can produce some interesting contour effects although the results are often difficult to predict.
And Bits: performs a bitwise logical and on the colors of the source clips. Similar to XorBits but tends to produce darker results.
Or Bits: performs a bitwise logical or on the colors of the source clips. Similar to XorBits but tends to produce brighter results.
Mod: gives the remainder after dividing the colors of the first source clip by the second. Set the A Scale parameter to a high value for some unusual pixel banding effects.
Round: the colors of the first source clip are rounded using the values of the second input as the step size.
Bounce: similar to Mod but the result contains fewer jagged edges. Set the A Scale parameter to a high value for some striping effects.

Mocha Project: Default: 0, Range: 0 or greater.
Brings up the Mocha window for tracking footage and generating masks.

Blur Mocha: Default: 0, Range: 0 or greater.
Blurs the Mocha Mask by this amount before using. This can be used to soften the edges or quantization artifacts of the mask, and smooth out the time displacements.

Mocha Opacity: Default: 1, Range: 0 to 1.
Controls the strength of the Mocha mask. Lower values reduce the intensity of the effect.

Invert Mocha: Check-box,  Default: off.
If enabled, the black and white of the Mocha Mask are inverted before applying the effect.

Resize Mocha: Default: 1, Range: 0 to 2.
Scales the Mocha Mask. 1.0 is the original size.

Resize Rel X: Default: 1, Range: 0 to 2.
The relative horizontal size of the Mocha Mask.

Resize Rel Y: Default: 1, Range: 0 to 2.
The relative vertical size of the Mocha Mask.

Shift Mocha: X & Y,   Default: [0 0], Range: any.
Offsets the position of the Mocha Mask.

Bypass Mocha: Check-box,  Default: off.
Ignore the Mocha Mask and apply the effect to the entire source clip.

Show Mocha Only: Check-box,  Default: off.
Bypass the effect and show the Mocha Mask itself.

Combine Masks: Popup menu,  Default: Union .
Determines how to combine the Mocha Mask and Input Mask when both are supplied to the effect.
Union: Uses the area covered by both masks together.
Intersect: Uses the area that overlaps between the two masks.
Mocha Only: Ignore the Input Mask and only use the Mocha Mask.

Swap Inputs: Check-box,  Default: off.
If enabled, effectively swaps the A and B Source inputs, and can be helpful for non-commutative operations like subtract. Note that this also causes parameters labeled 'A' to affect the 'B' input instead, and vice versa.

A Lights: Default: 1, Range: 0 or greater.
Scales the brightness of SourceA before performing the operation.

A Darks: Default: 0, Range: any.
Offsets the darker regions of the first input before performing the effect. This can be negative to increase contrast.

A Saturation: Default: 1, Range: 0 or greater.
Adjusts the color intensity of SourceA before performing the operation. 0.0 makes it monochromatic, 1.0 has no effect.

B Lights: Default: 1, Range: 0 or greater.
Scales the brightness of SourceB before performing the operation.

B Darks: Default: 0, Range: any.
Offsets the darker regions of the second input before performing the effect. This can be negative to increase contrast.

B Saturation: Default: 1, Range: 0 or greater.
Adjusts the color intensity of SourceB before performing the operation. 0.0 makes it monochromatic, 1.0 has no effect.

Dest Lights: Default: 1, Range: 0 or greater.
Scales the brightness of the result after performing the operation.

Dest Darks: Default: 0, Range: any.
Offsets the darker regions of the result after performing the effect. This can be negative to increase contrast.

Dest Saturation: Default: 1, Range: 0 or greater.
Scales the color intensity of the result after performing the operation. 0.0 makes it monochromatic, 1.0 has no effect.

Mask Use: Popup menu,  Default: Luma .
Determines how the Mask input channels are used to make a monochrome mask.
Luma: the luminance of the RGB channels is used.
Alpha: only the Alpha channel is used.

Blur Mask: Default: 0.05, Range: 0 or greater.
Blurs the Mask input by this amount before using. This can provide a smoother transition between the masked and unmasked areas. It has no effect unless the Mask input is provided.

Invert Mask: Check-box,  Default: off.
If on, inverts the mask input so the effect is applied to areas where the Mask is black instead of white. This has no effect unless the Mask input is provided.


See Also:

Layer
Sapphire Plug-ins Introduction

List all effects with pictures

List all effects by name

List all effects with a brief summary

General User Info
What's New In This Version
Compatibility Notes
Loading a Plug-in
Color Management with OpenColorIO
Loading and Saving Presets
Designing Lens Flares and Glares
Using the Sapphire Effect Builder
Using Mocha in Sapphire
Resetting Parameters to Defaults
Online Documentation
About GPU Acceleration
About Motion Blur
About Matte Inputs
About Alpha Processing
About Angle Parameters
About Pixel Aspect Ratios
Customizing Plug-ins
Known Problems
3rd Party Licenses

Glow Effects
Glow
GlowAura
GlowDarks
GlowDist
GlowEdges
GlowNoise
GlowOrthicon
GlowRainbow
GlowRings
UltraGlow
ZGlow
Light Beams
Rays
EdgeRays
Streaks

LensFlares
LensFlare
LensFlareAutoTrack
LightLeak
Glints & Glares
Glint
GlintRainbow
Glare

Other Lighting
BokehLights
DropShadow
Flashbulbs
Light3D
SpotLight

AutoPaint & HalfTone
AutoPaint
Sketch
Etching
Brush:Oil
Brush:Chalk
Crosshatch
Cartoon
CartoonPaint
Posterize
HalfTone
HalfToneColor
HalfToneRings

Kaleidoscopes
Kaleido:Triangles
Kaleido:Squares
Kaleido:Diamonds
Kaleido:Oct
KaleidoPolar
KaleidoRadial
FlysEyeCircles
FlysEyeHex
FlysEyeRect
TileScramble
Film Effects & Grain
FilmEffect
FilmDamage
Vignette
BleachBypass
Grain
GrainStatic
UltraGrain
Diffuse
VintageColor2Strip
VintageColor3Strip

Edge Effects
EdgeDetect
EdgeDetectDouble
EdgesInDirection
EdgeColorize

Embossing
Emboss
EmbossShiny
EmbossDistort
EmbossGlass
Other Stylize
BandPass
ColorFuse
DogVision
DigitalDamage
JpegDamage
TVDamage
Grunge
Mosaic
PixelSort
PseudoColor
PsykoBlobs
PsykoStripes
PrismLens
RomanTile
ScanLines
ScanLinesMono
Solarize
StripSlide
Zebrafy
ZebrafyColor
ZFogExponential
ZFogLinear

Adjust
ChannelSwitcher
ClampChroma
DuoTone
Gamma
Hotspots
HueSatBright
Invert
Monochrome
OCIOTransform
QuadTone
Threshold
Tint
TriTone
ShowBadColors

Composite
EdgeFlash
Layer
MathOps
MatteOps
MatteOpsComp
ZComp
Blur+Sharpen
Beauty
Blur
BlurChannels
BlurChroma
BlurDirectional
BlurMoCurves
BlurMotion
DefocusPrism
Convolve
ConvolveComp
Deband
EdgeBlur
EdgeAwareBlur
FreeLens
GrainRemove
Median
RackDefocus
RackDfComp
Sharpen
SoftFocus
ZConvolve
ZDefocus
ZBlur

Distort Effects
Distort
DistortBlur
DistortChroma
DistortRGB
Warps & Shake
InfiniteZoom
ParallaxStrips
WarpBubble
WarpBubble2
WarpChroma
WarpCornerPin
WarpDrops
WarpFishEye
WarpMagnify
WarpPerspective
WarpPolar
WarpPuddle
WarpPuff
WarpRepeat
WarpTransform
WarpVortex
WarpWaves
WarpWaves2
Shake
StretchFrameEdges

Lightning Zaps
UltraZap
Zap
ZapTo
ZapFrom

Gradients, Grid & Shape
Gradient
GradientMulti
GradientRadial
Grid
Shape

Procedural Textures
Caustics
Sparkles
SparklesColor
TextureCells
TextureChromaSpiral
TextureFlux
TextureFolded
TextureLoops
TextureMicro
TextureMoire
TextureNeurons
TextureNoiseEmboss
TextureNoisePaint
TexturePlasma
TextureSpots
TextureTiles
TextureWeave

Fractal Clouds
Clouds
CloudsColorSmooth
CloudsMultColor
CloudsPerspective
CloudsPsyko
CloudsVortex
Other Render
Aurora
LaserBeam
Luna
MuzzleFlash
NightSky
Time Effects
CutToDissolve
Feedback
FeedbackBubble
FeedbackDistort
FieldRemove
FreezeFrame
GetFrame
JitterFrames
MotionDetect
NearestColor
RandomEdits
RepairFrames
Retime
ReverseClip
ReverseEdits
TimeAverage
TimeDisplace
TimeSlice
TimeWarpRGB
Trails
TrailsDiffuse

Flicker Tools
Flicker
FlickerMatch
FlickerMatchColor
FlickerMatchMatte
FlickerMchMatteColor
FlickerRemove
FlickerRemoveColor
FlickerRemoveMatte
FlickerRmMatteColor

Effect Builder
Effect
Transition
Dissolve Transitions
Dissolve
DissolveAutoPaint
DissolveBlur
DissolveBubble
DissolveDefocus
DissolveDiffuse
DissolveDigitalDamage
DissolveDistort
DissolveEdgeRays
DissolveFilm
DissolveFlashbulbs
DissolveGlare
DissolveGlint
DissolveGlintRainbow
DissolveGlow
DissolveLensFlare
DissolveLuma
DissolvePixelSort
DissolvePuddle
DissolveRays
DissolveShake
DissolveSpeckle
DissolveStatic
DissolveTiles
DissolveUltraGlow
DissolveVortex
DissolveWaves
DissolveZap

Wipe Transitions
WipeBlobs
WipeBubble
WipeCells
WipeChecker
WipeCircle
WipeClock
WipeClouds
WipeDiffuse
WipeDots
WipeDoubleWedge
WipeFlux
WipeFourWedges
WipeLine
WipePixelate
WipeRectangle
WipeRings
WipeStar
WipeStripes
WipeTiles
WipeWedge
WipePlasma
WipePointalize
WipeWeave
WipeMoire
SwishPan
Swish3D

Other Transitions
CardFlip
FilmRoll
FlutterCut
HyperPull
HyperPush
ParallaxStripsTransition
StripSlideTransition
SwishPan
Swish3D
TVChannelChange WhipLash