Skip to content
This repository has been archived by the owner on Feb 27, 2025. It is now read-only.

Commit

Permalink
Fixed mistakes and updated example (#117)
Browse files Browse the repository at this point in the history
* Added docstrings to frequency_merge function.

* Format

* Update freqs.py

* Fixed mistakes and updated example to be simpler.

* Update example to use vsrgtools.

* format with ruff.

* Revert "format with ruff."

This reverts commit 6d2dd2a.

* flake 8'd

---------

Co-authored-by: Setsugennoao <setsugen@setsugen.dev>
Co-authored-by: Your Name <you@example.com>
  • Loading branch information
3 people authored Apr 13, 2024
1 parent 8696bc1 commit 2068f65
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions vsdenoise/freqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,16 @@ def frequency_merge(
) -> vs.VideoNode:
"""
Merges the frequency components of the input clips.
:param _clips: The clips to merge.
:param tr: The temporal radius to use for motion compensation.
:param mode_high: The mode to use for the high frequency components or
:param tr: The temporal radius to use for temporal mean mode.
:param mode_high: The mean mode to use for the high frequency components or
specifying the clip with the high frequency components.
:param mode_low: The mode to use for the low frequency components or
:param mode_low: The mean mode to use for the low frequency components or
specifying the clip with the low frequency components.
:param mode_tr: The mode to use for motion compensation.
:param mode_tr: The mode to use for temporal mean.
If None, it defaults to the value of mode_high.
:param lowpass: The lowpass filter to used to extract low frequency components.
Example:
```
lowpass=[
None,
lambda i: core.fmtc.resample(
i,
h=1080,
w=1920,
kernel="lanczos",
taps=[4, 2],
fv=[1 / 1.25, 1 / 1.375],
fh=[1 / 1.25, 1 / 1.375],
)
```
:param lowpass: The lowpass filter to used to extract high frequency components.
Example: `lowpass = lambda i: vsrgtools.box_blur(i, passes=3)`
:param mean_diff: Whether to use the mean of the lowpass filter and the original clip to
extract the low frequency components. Default is False.
:param planes: The planes to process. If None, all planes will be processed.
Expand Down

0 comments on commit 2068f65

Please sign in to comment.