Metadata-Version: 2.1
Name: vsdenoise
Version: 2.5.1
Summary: VapourSynth denoising functions
Author: Irrational Encoding Wizardry
Author-email: wizards@encode.moe
Maintainer: Setsugen no ao
Maintainer-email: setsugen@setsugen.dev
Project-URL: Source Code, https://github.com/Jaded-Encoding-Thaumaturgy/vs-denoise
Project-URL: Contact, https://discord.gg/XTpc6Fa9eB
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: VapourSynth>=65
Requires-Dist: vstools>=3.0.0
Requires-Dist: vskernels>=3.0.0
Requires-Dist: vsexprtools>=1.5.0
Requires-Dist: vsrgtools>=1.6.0
Requires-Dist: vsmasktools>=1.2.0
Requires-Dist: vsaa>=1.9.0
Requires-Dist: vsscale>=2.0.0

# vs-denoise

### VapourSynth denoising, regression, and motion-compensation functions

<br>

Wrappers for denoising, regression, and motion-compensation-related plugins and functions.

For support you can check out the [JET Discord server](https://discord.gg/XTpc6Fa9eB). <br><br>

## How to install

Install `vsdenoise` with the following command:

```sh
pip install vsdenoise
```

Or if you want the latest git version, install it with this command:

```sh
pip install git+https://github.com/Jaded-Encoding-Thaumaturgy/vs-denoise.git
```

<br><br>

## Example usage

```py
from vsdenoise import MVTools, SADMode, MotionMode, Prefilter, BM3DCuda, Profile, nl_means

clip = ...

ref = MVTools.denoise(
    clip, thSAD=100, block_size=32, overlap=16,
    motion=MotionMode.HIGH_SAD,
    prefilter=Prefilter.DFTTEST,
    sad_mode=(
        SADMode.ADAPTIVE_SPATIAL_MIXED,
        SADMode.ADAPTIVE_SATD_MIXED,
    )
)

denoise = BM3DCuda.denoise(
    clip, sigma=0.8, tr=2, profile=Profile.NORMAL, ref=ref, planes=0
)

denoise = nl_means(denoise, tr=2, strength=0.6, ref=ref, planes=[1, 2])
```
