Skip to content
A simple color masking plugin for VapourSynth
Branch: master
Clone or download
Pull request Compare This branch is 3 commits ahead of tp7:master.
Latest commit 85d90a5 Aug 3, 2018
Type Name Latest commit message Commit time
Failed to load latest commit information.
TColorMask Fix some function names. Aug 3, 2018
.gitattributes Initial commit Jun 5, 2013
.gitignore Initial commit Jun 5, 2013
LICENSE Small meaningless fixes Jun 5, 2013 Add VapourSynth version and updated README. Nov 27, 2017
TColorMask.sln Add VapourSynth version and updated README. Nov 27, 2017


VapourSynth port of tp7's Avisynth plugin. Great solution if you need to build some masks on color values. Only 8 bit clips are allowed at this time.


All parameters (except colors) are set to their default values.

core.tcm.TColorMask(clip, ['$FFFFFF', '$000000', '$808080'], tolerance=10, bt601=False, gray=False, lutthr=9)
  • colors - array of colors. Required.
  • tolerance - pixel value will pass if its absolute difference with color is less than tolerance (luma) or half the tolerance (chroma).
  • bt601 - use bt601 matrix for conversion of colors.
  • gray - set chroma of output clip to 128. Chroma will contain garbage if False.
  • lutthr - if specified more than lutthr colors, lut will be used instead of direct SIMD computations.


This project is licensed under the MIT license.

You can’t perform that action at this time.