Skip to content

Commit

Permalink
Remove lehmer_diff_merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Setsugennoao committed Aug 23, 2024
1 parent c6b2707 commit a1f81b5
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions vsrgtools/freqs.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,21 @@
from __future__ import annotations

from functools import partial
from itertools import count
from math import e, log, pi, sin, sqrt
from typing import Iterable

from vsexprtools import ExprOp, ExprVars, combine, norm_expr
from vstools import (
ColorRange, ConvMode, CustomIntEnum, CustomNotImplementedError, FuncExceptT, FunctionUtil, KwargsT, PlanesT,
StrList, VSFunction, check_ref_clip, flatten_vnodes, get_y, scale_value, vs
StrList, check_ref_clip, flatten_vnodes, get_y, scale_value, vs
)

from .blur import box_blur, gauss_blur
from .blur import gauss_blur

__all__ = [
'replace_low_frequencies',

'MeanMode',

'lehmer_diff_merge'
'MeanMode'
]


Expand Down Expand Up @@ -135,17 +132,3 @@ def __call__(
return norm_expr(clips, expr_string, **kwargs)

raise CustomNotImplementedError


def lehmer_diff_merge(
*_clips: vs.VideoNode | Iterable[vs.VideoNode],
filter: VSFunction | list[VSFunction] = partial(box_blur, radius=3, passes=2),
planes: PlanesT = None
) -> vs.VideoNode:
import warnings

from vsdenoise import frequency_merge

warnings.warn('lehmer_diff_merge: This function was moved to vsdenoise.frequency_merge, with better output!')

return frequency_merge(*_clips, tr=0, lowpass=filter, planes=planes)

0 comments on commit a1f81b5

Please sign in to comment.