sharp ¶
Functions:
-
awarpsharp
–Sharpens edges by warping them.
-
fine_sharp
– -
soothe
– -
unsharpen
–
awarpsharp ¶
awarpsharp(
clip: VideoNode,
mask: EdgeDetectT | VideoNode | None = None,
thresh: int | float = 128,
blur: GenericVSFunction[VideoNode] | Literal[False] = partial(
box_blur, radius=2, passes=3
),
depth: int | Sequence[int] | None = None,
chroma: bool = False,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
Sharpens edges by warping them.
Parameters:
-
clip
¶VideoNode
) –Clip to process. Must be either the same size as mask, or four times the size of mask in each dimension. The latter can be useful if better subpixel interpolation is desired. If clip is upscaled to four times the original size, it must be top-left aligned.
-
mask
¶EdgeDetectT | VideoNode | None
, default:None
) –Edge mask.
-
thresh
¶int | float
, default:128
) –No pixel in the edge mask will have a value greater than thresh. Decrease for weaker sharpening.
-
blur
¶GenericVSFunction[VideoNode] | Literal[False]
, default:partial(box_blur, radius=2, passes=3)
) –Controls the blur filter used on the edge mask.
-
depth
¶int | Sequence[int] | None
, default:None
) –Controls how far to warp. Negative values warp in the other direction, i.e. will blur the image instead of sharpening.
-
chroma
¶bool
, default:False
) –Controls the chroma handling method. False will use the edge mask from the luma to warp the chroma. True will create an edge mask from each chroma channel and use those to warp each chroma channel individually.
-
planes
¶PlanesT
, default:None
) –Planes to process. Defaults to all.
Returns:
-
ConstantFormatVideoNode
–Warp-sharpened clip.
Source code
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 |
|
fine_sharp ¶
fine_sharp(
clip: VideoNode,
mode: int = 1,
sstr: float = 2.0,
cstr: float | None = None,
xstr: float = 0.19,
lstr: float = 1.49,
pstr: float = 1.272,
ldmp: float | None = None,
planes: PlanesT = 0,
) -> ConstantFormatVideoNode
Source code
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 |
|
soothe ¶
soothe(
flt: VideoNode,
src: VideoNode,
spatial_strength: float = 0.0,
temporal_strength: float = 0.75,
spatial_radius: int = 1,
temporal_radius: int = 1,
scenechange: bool = False,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
Source code
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 |
|
unsharpen ¶
unsharpen(
clip: VideoNode,
strength: float = 1.0,
blur: (
VideoNode | VSFunctionNoArgs[VideoNode, ConstantFormatVideoNode]
) = partial(gauss_blur, sigma=1.5),
planes: PlanesT = None,
) -> ConstantFormatVideoNode
Source code
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
|