mask ¶
Functions:
-
base_dehalo_mask
–Based on
muvsfunc.YAHRmask
, stand-alone version with some tweaks. Adopted from jvsfunc.
base_dehalo_mask ¶
base_dehalo_mask(
src: VideoNode,
expand: float = 0.5,
iterations: int = 2,
brz0: float = 0.31,
brz1: float = 1.0,
shift: int = 8,
pre_ss: bool = True,
multi: float = 1.0,
) -> VideoNode
Based on muvsfunc.YAHRmask
, stand-alone version with some tweaks. Adopted from jvsfunc.
Parameters:
-
src
¶VideoNode
) –Input clip.
-
expand
¶float
, default:0.5
) –Expansion of edge mask.
-
iterations
¶int
, default:2
) –Protects parallel lines and corners that are usually damaged by strong dehaloing.
-
brz0
¶float
, default:0.31
) –Adjusts the internal line thickness.
-
brz1
¶float
, default:1.0
) –Adjusts the internal line thickness.
-
shift
¶int
, default:8
) –8-bit corrective shift value for fine-tuning expansion.
-
pre_ss
¶bool
, default:True
) –Perform the mask creation at 2x.
-
multi
¶float
, default:1.0
) –Final pixel value multiplier.
Returns:
-
VideoNode
–Dehalo mask.
Source code
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
|