VsCnr2

From Avisynth wiki
Revision as of 18:48, 17 May 2023 by Asd (Talk | contribs)

Jump to: navigation, search
Abstract
Author Asd-g
Version v1.0.1
Download vsCnr2-1.0.1.7z
Category Temporal Denoisers
License GPLv2
Discussion

Contents

Description

vsCnr2 is a temporal denoiser designed to denoise only the chroma.

According to the original author, this filter is suited for stationary rainbows or noisy analog captures.

Due to the way it works, Cnr2 is forced to run in a single thread. Cnr2 will also bottleneck the entire script, preventing it from using all the available CPU cores. One way to work around this issue is splitting the video into two or three chunks at scene changes, and filtering them in parallel with two or three instances of vspipe.

This is a port of the VapourSynth plugin Cnr2.

Requirements


*** vcredist_x86.exe is required for vsCnr2-x86
*** vcredist_x64.exe is required for vsCnr2-x64


Syntax and Parameters

vsCnr2 (clip input, string "mode", float "scdthr", int "ln", int "lm", int "un", int "um", int "vn", int "vm", bool "sceneChroma")


clip   =
A clip to process. It must be in YUV 8..16-bit planar format with chroma subsampling 420, 422, 440 or 444.


string  mode = "oxx"
Mode for each plane.
  • The letter o means wide mode, which is less sensitive to changes in the pixels, and more effective.
  • The letter x means narrow mode, which is less effective.
Default: "oxx".


float  scdthr = 10.0
Scene change detection threshold as percentage of maximum possible change.
Lower values make it more sensitive.
Must be between 0.0 and 100.0.
Default: 10.0.


int  ln = 35
int  lm = 192
int  un = 47
int  um = 255
int  vn = 47
int  vm = 255
ln, un, vn
  • Sensitivity to movement in the Y, U, and V planes, respectively.
  • Higher values will denoise more, at the risk of introducing ghosting in the chroma.
  • Must be between 0 and 255.
  • Default: ln = 35; un = 47, vn = 47.
lm, um, vm
  • Strength of the denoising.
  • Higher values will denoise harder.
  • Must be between 0 and 255.
  • Default: lm = 192; um = 255, vm = 255.


bool  sceneChroma = false
If True, the chroma is considered in the scene change detection.
Default: False.


Examples

vsCnr2 with default settings:

AviSource("Blah.avi")
Cnr2(mode="oxx", scdthr=10.0, n=35, lm=192, un=47, um=255, vn=47, vm=255, sceneChroma=false)


Changelog

Version      Date            Changes
1.0.1 2022/06/15 - ~13% faster code. 1.0.0 2021/05/04 - Initial release. - AviSynth+: self-registers as MT_SERIALIZED


External Links

  • GitHub - Source code repository.




Back to External Filters

Personal tools