Skip to content

4re/vapoursynth-cmedian

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CMedian - VapourSynth Constant Time Median Filter

  • implements the constant time median filter algorithm Link

Build

  • compiler with c++11 support
  • CPU with SSE2 support

Usage

cmedian.Median(src, radius=1, planes=[0, 1, 2])
  • the default setting, apply a median filter of radius=1

Parameter

cmedian.Median(clip clip[, radius=1, int[] planes=[0, 1, 2]])
  • clip: the input clip
    • 8, 10, 16 integer type support
    • all color family support

  • radius: the kernel radius, which will result a (2 * radius + 1) * (2 * radius + 1) square.
    • default: 1
    • range: 1 ... 127

  • planes: apply median filter for planes
    • default: all planes

License

CMedian - VapourSynth Constant Time Median Filter

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

VapourSynth 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
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with VapourSynth; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA