Miscellaneous OFX / OpenFX / Open Effects plugins
C++ GLSL Python Makefile Other
Latest commit 0e6fd3b Jan 16, 2017 @devernay RotoMerge: new plugin
Permalink
Failed to load latest commit information.
Add update copyright Jan 6, 2017
AdjustRoD AdjustRoD: add Border Conditions param Jan 13, 2017
Anaglyph update copyright Jan 6, 2017
AppendClip update copyright Jan 6, 2017
CImg GMICExpr: fix doc Jan 13, 2017
CheckerBoard update copyright Jan 6, 2017
ChromaKeyer update copyright Jan 6, 2017
Clamp update copyright Jan 6, 2017
ClipTest update copyright Jan 6, 2017
ColorBars update copyright Jan 6, 2017
ColorCorrect update copyright Jan 6, 2017
ColorLookup update copyright Jan 6, 2017
ColorMatrix update copyright Jan 6, 2017
ColorSuppress update copyright Jan 6, 2017
ColorTransform ColorTransform: bug fix, XYZ-xyY plugins were missing Jan 10, 2017
ColorWheel update copyright Jan 6, 2017
Constant update copyright Jan 6, 2017
CopyRectangle update copyright Jan 6, 2017
CornerPin update copyright Jan 6, 2017
Crop update copyright Jan 6, 2017
DebugProxy update copyright Jan 6, 2017
Deinterlace update copyright Jan 6, 2017
DenoiseSharpen uncrustify Nov 25, 2016
Despill update copyright Jan 6, 2017
Difference update copyright Jan 6, 2017
Dissolve update copyright Jan 6, 2017
Distortion update copyright Jan 6, 2017
FrameBlend update copyright Jan 6, 2017
FrameHold update copyright Jan 6, 2017
FrameRange update copyright Jan 6, 2017
Gamma update copyright Jan 6, 2017
GodRays update copyright Jan 6, 2017
Grade update copyright Jan 6, 2017
HSVTool update copyright Jan 6, 2017
HueCorrect update copyright Jan 6, 2017
ImageStatistics update copyright Jan 6, 2017
Invert update copyright Jan 6, 2017
JoinViews update copyright Jan 6, 2017
KeyMix KeyMix: fix warning Jan 12, 2017
Keyer update copyright Jan 6, 2017
Log2Lin uncrustify Nov 25, 2016
MatteMonitor update copyright Jan 6, 2017
Merge RotoMerge: new plugin Jan 16, 2017
Mirror update copyright Jan 6, 2017
Misc.xcodeproj Shadertoy: add new 0.8.7 font texture Jan 2, 2017
Misc fix Makefile-based build Dec 28, 2016
MixViews update copyright Jan 6, 2017
Multiply update copyright Jan 6, 2017
NoOp update copyright Jan 6, 2017
OneView update copyright Jan 6, 2017
PIK update copyright Jan 6, 2017
PLogLin uncrustify Nov 25, 2016
Position update copyright Jan 6, 2017
Premult update copyright Jan 6, 2017
Quantize Quantize & Rand: output is continuous only when seed is non-static Dec 4, 2016
Radial update copyright Jan 6, 2017
Ramp update copyright Jan 6, 2017
Rand update copyright Jan 6, 2017
ReConverge update copyright Jan 6, 2017
Rectangle update copyright Jan 6, 2017
Reformat update copyright Jan 6, 2017
Retime update copyright Jan 6, 2017
Roto update copyright Jan 6, 2017
Saturation update copyright Jan 6, 2017
Shadertoy doc fixes Jan 8, 2017
Shuffle update copyright Jan 6, 2017
SideBySide update copyright Jan 6, 2017
SlitScan update copyright Jan 6, 2017
SupportExt @ 5c43379 RotoMerge: new plugin Jan 16, 2017
Switch update copyright Jan 6, 2017
Templates uncrustify Nov 25, 2016
Test doc fixes Jan 8, 2017
TimeBlur update copyright Jan 6, 2017
TimeBuffer update copyright Jan 6, 2017
TimeDissolve update copyright Jan 6, 2017
TimeOffset update copyright Jan 6, 2017
TrackerPM update copyright Jan 6, 2017
Transform update copyright Jan 6, 2017
VectorToColor update copyright Jan 6, 2017
openfx @ e1c8ac4 KeyMix: fix warning Jan 12, 2017
.gitattributes update gitattributes Dec 24, 2014
.gitignore Shadertoy: add new 0.8.7 font texture Jan 2, 2017
.gitmodules use SupportExt & fix Makefiles Jul 31, 2014
.travis-coverity-scan-build.sh coverity: fix Dec 5, 2015
.travis.yml travis: fix Jun 16, 2016
LICENSE openfx-misc is now GPLv2 Aug 28, 2015
Makefile HueCorrect: WIP Oct 12, 2016
Makefile.master Makefile: prepare for external ofx repositories Jan 12, 2016
Misc.creator Add the QtCreator project Jan 8, 2015
Misc.files HueCorrect: WIP Oct 12, 2016
README-hosts.txt README-hosts: more doc Jun 10, 2016
README.md update copyright Jan 6, 2017
gpl-header-c.txt update copyright Jan 6, 2017

README.md

OpenFX-Misc GPL2 License Build Status Coverity Scan Build Status

Miscellaneous OFX / OpenFX / Open Effects plugins.

These plugins were primarily developped for Natron, but may be used with other OpenFX hosts.

More information about OpenFX Hosts, OpenFX Plugins (commercial or free), and OpenFX documentation can be found at http://devernay.free.fr/hacks/openfx/.

License

Copyright (C) 2013-2017 INRIA

openfx-misc is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

openfx-misc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with openfx-misc. If not, see http://www.gnu.org/licenses/gpl-2.0.html

Contents

Below is a short description of each plugin. The title of each section is the plugin grouping (the OpenFX host may classify plugins by grouping).

Image

  • CheckerBoardOFX: Generate an image with a checkerboard
  • ColorBarsOFX: Generate an image with SMPTE color bars
  • ColorWheelOFX: Generate an image with a color wheel
  • ConstantOFX: Generate an image with a uniform color
  • SolidOFX: Generate an image with a uniform opaque color

Draw

  • Rand: Generate a random field of noise.
  • NoiseCImg: Generate different kinds of noise.
  • PlasmaCImg: Generate plasma noise.
  • RadialOFX: Radial ramp.
  • RampOFX: Draw a ramp between 2 edges.
  • RectangleOFX: Draw a rectangle.
  • RotoOFX: Create masks and shapes. Requires a host with mask editing capabilities (such as Natron).

Time

  • AppendClipOFX: Put one clip after another.
  • Deinterlace: Deinterlace input stream.
  • FrameBlendOFX: Blend frames.
  • FrameHoldOFX: Hold a frame, or subsample the input frames.
  • FrameRangeOFX: Change the frame range of a clip. Useful with AppendClip
  • RetimeOFX: Change the timing of the input clip.
  • SlitScan: Per-pixel retiming.
  • TimeOffsetOFX: Move the input clip forward or backward in time.
  • TimeBlurOFX: Average frames over a fractional shutter period.
  • NoTimeBlurOFX: Round fractional frames to integer values.
  • TimeBufferRead/TimeBufferWrite: Read from an buffer written during a previous render.

Channel

  • ShuffleOFX: Rearrange channels from one or two inputs, and convert to a different bit depth (on hosts that support it).

Color

  • ClampOFX: Clamp values to a given interval.
  • ColorCorrectOFX: Adjusts the saturation, constrast, gamma, gain and offset of an image.
  • ColorLookupOFX: Apply a parametric lookup curve to each channel separately.
  • ColorSuppress: Remove a color/tint, or create a mask from that color.
  • EqualizeCImg: Equalize the histogram.
  • GradeOFX: Modify the tonal spread of an image from the white and black points.
  • HistEqCImg: Equalize the luminance histogram.
  • HSVToolOFX: Adjust hue, saturation and brightnes, or perform color replacement.
  • HueCorrectOFX: Apply hue-dependent color adjustments using lookup curves.
  • InvertOFX: Inverse the selected channels.
  • Log2LinOFX: Convert from/to the logarithmic space used by Cineon files
  • Math/AddOFX: Add a constant to the selected channels.
  • Math/ClipTestOFX: Draw zebra stripes on all pixels outside of the specified range.
  • Math/ColorMatrixOFX: Multiply the RGBA channels by an arbitrary 4x4 matrix.
  • Math/GammaOFX: Apply gamma function to the selected channels.
  • Math/MultiplyOFX: Multiply the selected channels by a constant.
  • PLogLinOFX: Convert between linear and log representations using the Josh Pines log conversion.
  • Quantize: Reduce the number of color levels with posterization or dithering.
  • SaturationOFX: Modify the color saturation of an image.
  • Transform/RGBToHSV and HSVToRGB: Convert to/from HSV color representation.
  • Transform/RGBToHSL and HSLToRGB: Convert to/from HSL color representation.
  • Transform/RGBToHSI and HSIToRGB: Convert to/from HSI color representation.
  • Transform/RGBToYCbCr601, YCbCrToRGB601, RGBToYCbCr709 and YCbCrToRGB709: Convert to/from YCbCr color representation.
  • Transform/RGBToYPbPr601, YPbPrToRGB601, RGBToYPbPr709 and YPbPrToRGB709: Convert to/from YPbPr color representation.
  • Transform/RGBToYUV601, YUVToRGB601, RGBToYUV709 and YUVToRGB709: Convert to/from YUV color representation.
  • Transform/RGB709ToLab and LabToRGB709: Convert to/from Lab color representation.
  • Transform/RGB709ToXYZ and XYZToRGB709: Convert to/from XYZ color representation.
  • VectorToColor: Convert x and y vector components to a color representation.

Filter

  • BlurCImg: Blur input stream by a quasi-Gaussian or Gaussian filter (recursive implementation), or compute derivatives.
  • ChromaBlurCImg: Blur the chrominance components (usually to prep strongly compressed and chroma subsampled footage for keying).
  • DenoiseSharpen: Denoise and/or sharpen images using wavelet-based algorithms.
  • DilateCImg/ErodeCImg: Dilate/erode input stream by a rectangular structuring element of specified size and Neumann (a.k.a. nearest) boundary conditions.
  • DirBlurOFX: Directional blur.
  • EdgeDetectCImg: Perform edge detection by computing the image gradient magnitude.
  • EdgeExtend: Fill a matte (i.e. a non-opaque color image with an alpha channel) by extending the edges of the matte.
  • ErodeBlurCImg: Erode or dilate a mask by smoothing.
  • ErodeSmoothCImg: Erode or dilate input stream using a normalized power-weighted filter.
  • GMICExpr: Quickly generate or process image from mathematical formula evaluated for each pixel.
  • GodRays: Average an image over a range of transforms, or create crepuscular rays.
  • Shadertoy: Apply a Shadertoy fragment shaders (multipass shaders are not supported).
  • SharpenCImg: Sharpen the input stream by enhancing its Laplacian.
  • SharpenInvDiffCImg: Sharpen selected images by inverse diffusion.
  • SharpenShockCImg: Sharpen selected images by shock filters.
  • SmoothAnisotropicCImg: Smooth/Denoise input stream using anisotropic PDE-based smoothing.
  • SmoothBilateralCImg: Blur input stream by bilateral filtering.
  • SmoothBilateralGuidedCImg: Apply joint/cross bilateral filtering on image A, guided by the intensity differences of image B.
  • SmoothGuidedCImg: Blur image, with the Guided Image filter.
  • SmoothMedianCImg: Apply a median filter to input images.
  • SmoothPatchBasedCImg: Denoise selected images by non-local patch averaging.
  • SmoothRollingGuidanceCImg: Filter out details under a given scale using the Rolling Guidance filter.
  • SoftenCImg: Soften the input stream by reducing its Laplacian.

Keyer

  • ChromaKeyerOFX: Apply chroma keying, as described in "Video Demystified" by Keith Jack.
  • Despill: Remove the unwanted color contamination of the foreground (spill) caused by the reflected color of the bluescreen/greenscreen, as described in "Digital Compositing for Film and Video" by Steve Wright.
  • DifferenceOFX: Produce a rough matte from the difference of two images.
  • HueKeyerOFX: Compute a key depending on hue value.
  • KeyerOFX: A collection of simple keyers.
  • MatteMonitor: A Matte Monitor, as described in "Digital Compositing for Film and Video" by Steve Wright.
  • PIK: A per-pixel color difference keyer that uses a mix operation instead of a max operation to combine the non-backing screen channels.
  • note that HSVToolOFX (in the "Color" section) can also be used as a keyer.

Merge

  • CopyRectangleOFX: Copies a rectangle from the input A to the input B in output.
  • DissolveOFX: Weighted average of two inputs.
  • KeyMixOFX: Copies A to B only where Mask is non-zero.
  • MergeOFX: Pixel-by-pixel merge operation between the two inputs.
  • PreMultOFX/UnpremultOFX: Multiply/divide the selected channels by alpha (or another channel).
  • SwitchOFX: Lets you switch between any number of inputs.
  • TimeDissolve: Dissolve from input A to input B over time.

Transform

  • AdjustRoD: Enlarges the input image by a given amount of black and transparent pixels.
  • CornerPinOFX and CornerPinMaskedOFX: Fit an image to another in translation, rotation, scale, and shear
  • CropOFX: Remove everything outside from the image of a rectangle.
  • IDistortOFX: Distort an image, based on a displacement map.
  • LensDistortionOFX: Apply nonlinear lens distortion.
  • MirrorOFX: Flip or flop the image.
  • PositionOFX: Translate image by an integer number of pixels.
  • Reformat: Convert image to a different image format and size.
  • STMapOFX: Move pixels around an image, based on a UVmap.
  • TrackerPM: Point tracker based on pattern matching using an exhaustive search within an image region.
  • TransformOFX and TransformMaskedOFX: Translate / Rotate / Scale a 2D image.

Views

These plugins are compatible with the Sony Vegas and Nuke multiview extensions.

  • JoinViewsOFX: JoinView inputs to make a stereo output.
  • OneViewOFX: Takes one view from the input.
  • Stereo/AnaglyphOFX: Make an anaglyph image out of the two views of the input.
  • Stereo/MixViewsOFX: Mix two views together.
  • Stereo/ReConvergeOFX: Shift convergence so that a tracked point appears at screen-depth.
  • Stereo/SideBySideOFX: Put the left and right view of the input next to each other.

Other

  • ImageStatisticsOFX: Compute statistics over an image or a rectangular area.
  • NoOpOFX: Copies the input to the ouput. Useful for inspecting the properties of input and output clips.
  • TestRenderOFX: Test some rendering features of the OFX host.

Notes & Caveats

What does the Roto plugin do?

If you use the Roto plugin in any other host than Natron, you will notice that it doesn't do much. Its role is just to provide an entry point for a host-based rotoscoping tool, which provides a roto mask to this plugin.

The default parameters are too small on DaVinci Resolve

This is because Resolve does not support the kOfxParamPropDefaultCoordinateSystem property. A solution was implemented in CornerPin (look for the comment "Some hosts (e.g. Resolve) may not support normalized defaults"), but the following plugins still have to be fixed:

  • CopyRectangle
  • Crop
  • HSVTool
  • ImageStatistics
  • ofxsGenerator
  • ofxsPositionInteract
  • ofxsTransformInteract
  • Position
  • ReConverge
  • TestPosition
  • TrackerPM

ColorLookup does not work on Nuke 8/9, DaVinci Resolve...

Although Nuke 8 & 9 claim via OpenFX that they support parametric parameters (i.e. adjustable parametric curves), these don't work (at least on OS X, and maybe on other platforms). The plugin appears in the plugin list, but cannot be instanciated. Nothing seems to happen, and the following message appears on the console (on OS X):

Exception thrown
  basic_string::_S_construct NULL not valid

The same happens with other plugins using parametric parameters, such as TuttleHistogramKeyer.

Parametric parameters work in older versions of Nuke (at least in Nuke 6 & 7).

DaVinci Resolve does not support parametric parameters.

Please file an issue if you think openfx-misc is doing something wrong, or you know of other hosts which have problems with parametric paremeters.

Although ColorCorrect uses parametric parameters, it can still be instanciated on Nuke 8 & 9 and on DaVinci Resolve, but the curve ranges are not adjustable (shadows are decreasing linearly from 0 to 0.09, and highlights are increasing linearly from 0.5 to 1.0).

Retime output does not contain motion blur, where is the "box" filter and the "shutter" parameter?

We should take the code from FrameBlend, simplify, and incorporate it in Retime.

Installation

These plugins are included in the binary distributions of Natron.

If you want to compile the plugins from source, you may either use the provided Unix Makefile, the Xcode project, or the Visual Studio project.

Getting the sources from github

To fetch the latest sources from github, execute the following commands:

git clone https://github.com/devernay/openfx-misc.git
cd openfx-misc
git submodule update -i -r

In order to get a specific tag, corresponding to a source release, do git tag -l to get the list of tags, and then git checkout tags/<tag_name> to checkout a given tag.

Unix/Linux/FreeBSD/OS X, using Makefiles

On Unix-like systems, the plugins can be compiled by typing in a terminal:

  • make [options] to compile as a single combined plugin (see below for valid options).
  • make nomulti [options] to compile as separate plugins (useful if only a few plugins are is needed, for example). make can also be executed in any plugin's directory.
  • make [options] CXXFLAGS_ADD=-fopenmp LDFLAGS_ADD=-fopenmp to compile with OpenMP support (available for CImg-based plugins and DenoiseSharpen).

The most common options are CONFIG=release to compile a release version, CONFIG=debug to compile a debug version. Or CONFIG=relwithdebinfo to compile an optimized version with debugging symbols.

Another common option is BITS=32for compiling a 32-bits version, BITS=64 for a 64-bits version, and BITS=Universal for a universal binary (OS X only).

See the file Makefile.masterin the toplevel directory for other useful flags/variables.

The compiled plugins are placed in subdirectories named after the configuration, for example Linux-64-realease for a 64-bits Linux compilation. In each of these directories, a *.bundle directory is created, which has to be moved to the proper place (/usr/OFX/Pluginson Linux, or /Library/OFX/Pluginson OS X), using a command like the following, with the same options used for compiling:

sudo make install [options]

OS X, using Xcode

The latest version of Xcode should be installed in order to compile this plugin.

Open the "Terminal" application (use spotlight, or browse /Applications/Utilities), and paste the following lines one-by-one (an administrator password will be asked for after the second line):

xcodebuild -configuration Release install
sudo mkdir /Library/OFX/Plugins
sudo mv /tmp/Misc.dst/Library/OFX/Plugins/Misc /Library/OFX/Plugins

The plugins may also be compiled by compiling the Xcode project called Misc.xcodeproj in the toplevel directory. The bundles produced by this project have to be moved to /Library/OFX/Plugins.

MS Windows, using Visual Studio

Compile using the provided Misc.vcxprojproject found in the Misc directory.

32-bits plugins should be installed in the directory c:\Program Files (x86)\Common Files\OFX\Plugin, 64-bits plugins should be installed in c:\Program Files\Common Files\OFX\Plugins.

Credits

The stereoscopic plugins Anaglyph, JoinViews, MixViews, OneView, ReConverge, SideBySide are by Frederic Devernay.

ColorLookup, Switch, TimeOffset, ChromaKeyer, Difference, Constant, Shuffle, Rectangle, Radial, HSVTool, ImageStatistics, CheckerBoard, Retime, SlitScan, ColorWheel, the color transform plugins and the CImg plugins are by Frederic Devernay.

Merge, ColorCorrect, Grade, Roto, Crop, CopyRectangle are by Alexandre Gauthier.

Transform and CornerPin are by Frederic Devernay and Alexandre Gauthier.

Deinterlace/yadif was first ported to OFX by George Yohng and rewritten by Frederic Devernay when yadif was relicensed to LGPL.