Skip to content

Commit

Permalink
fix ampl expression
Browse files Browse the repository at this point in the history
  • Loading branch information
Ichunjo committed Oct 10, 2024
1 parent 2693ab4 commit c664f7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vsmasktools/diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
from vskernels import Bilinear, Catrom, Kernel, KernelT, NoScale
from vsrgtools import RemoveGrainMode, bilateral, gauss_blur, removegrain
from vstools import (
ColorRange, CustomValueError, FuncExceptT, KwargsT, VSFunction, check_variable, depth,
get_w, get_y, insert_clip, iterate, vs
ColorRange, CustomValueError, FuncExceptT, KwargsT, VSFunction, check_variable, depth, get_w,
get_y, insert_clip, iterate, vs
)

from .edge import EdgeDetect, EdgeDetectT, ExLaplacian4
Expand Down Expand Up @@ -172,7 +172,7 @@ def based_diff_mask(
thr: float = 0.216,
prefilter: int | KwargsT | bool | VSFunction = False,
postfilter: int | tuple[Count, RemoveGrainMode] | list[tuple[Count, RemoveGrainMode]] | VSFunction = 2,
ampl: str | type[EdgeDetect] | EdgeDetect = 'x 2 4 pow * {thr} < 0 1 ?',
ampl: str | type[EdgeDetect] | EdgeDetect = 'x yrange_max / 2 4 pow * {thr} < 0 1 ? yrange_max *',
expand: int = 4,
func: FuncExceptT | None = None
) -> vs.VideoNode:
Expand Down

0 comments on commit c664f7e

Please sign in to comment.