Skip to content
Constant Time Median Filtering
Branch: master
Clone or download
Latest commit 8a34ade Nov 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CTMF Update vectorclass to 1.30 Nov 29, 2018
.gitattributes Initial commit Sep 22, 2014
.gitignore Initial commit Sep 22, 2014
LICENSE LICENSE: Use GNU GPL v3 May 30, 2017
Makefile.am
README.md Add Meson build system Nov 29, 2018
autogen.sh Set executable bit on autogen.sh May 30, 2017
configure.ac Makefile: Add -fvisibility=hidden Nov 29, 2018
meson.build Add Meson build system Nov 29, 2018

README.md

Description

Median filter for VapourSynth.

Ported from https://nomis80.org/ctmf.html

Usage

ctmf.CTMF(clip clip[, int radius=2, int memsize=1048576, int opt=0, int[] planes])
  • clip: Clip to process. Any planar format with integer sample type of 8, 10, 12, 14 and 16 bit depth is supported.

  • radius: Median filter radius. The kernel will be a 2*radius+1 by 2*radius+1 square. The maximum value is 127.

  • memsize: Maximum amount of memory to use, in bytes. Set this to the size of the L2 or L3 cache, then vary it slightly and measure the processing time to find the optimal value. For example, a 512 KB L2 cache would have memsize=512*1024 initially.

  • opt: Sets which cpu optimizations to use.

    • 0 = auto detect
    • 1 = use c
    • 2 = use sse2
    • 3 = use avx2
  • planes: A list of the planes to process. By default all planes are processed.

Compilation

meson build
ninja -C build

or

./autogen.sh
./configure
make
You can’t perform that action at this time.