vodesfunc.denoise
MVPresets
Source code in
vodesfunc/denoise.py
MaybeNotTerrible
This is just me throwing stuff at the wall to have some improvements without major slowdowns.
Source code in
vodesfunc/denoise.py
ActualOldWrapperMatch
Preset to match the old wrapper as well as possible. It is arguable if this is desirable.
Source code in
vodesfunc/denoise.py
VMDegrain
VMDegrain(src: VideoNode, thSAD: int = 60, prefilter: VideoNode | Prefilter | int = 2, smooth: bool = True, block_size: int | None = None, refine: int = 2, tr: int = 2, preset: MVToolsPreset = MVPresets.MaybeNotTerrible, planes: Planes = 0, **kwargs: Any) -> tuple[vs.VideoNode, MVTools]
Just some convenience function for mvtools with a useable preset and temporal smoothing.
Check the MVTools Docs for the params that aren't listed below.
block_size, overlap and refine are using somewhat optimized defaults depending on the resolution if None.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src
|
VideoNode
|
Input to denoise |
required |
smooth
|
bool
|
Run TTempsmooth on the denoised clip if True |
True
|
Returns:
| Type | Description |
|---|---|
tuple[VideoNode, MVTools]
|
Denoised clip |
Source code in
vodesfunc/denoise.py
schizo_denoise
schizo_denoise(src: VideoNode, sigma: float | Sequence[float] = [0.8, 0.3], thSAD: int = 60, radius: int | Sequence[int] = 2, nlm_a: int = 2, prefilter: VideoNode | Prefilter | int = 2, gpu: bool | Sequence[bool] = True, csharp: int | bool | Callable[[VideoNode, VideoNode, MVTools], VideoNode] = False, use_nlmeans: bool = True, **kwargs) -> vs.VideoNode
Convenience function for nlmeans (or bm3d) on chroma and mvtools + bm3d on luma. Mostly for personal scripts so please don't complain too much unless it's an actual issue.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
src
|
VideoNode
|
Input to denoise |
required |
sigma
|
float | Sequence[float]
|
Essentially strength for BM3D and NLMeans (or just BM3D, plane wise, if use_nlmeans=False). Float or list of floats in this order [luma, chroma] or [y, u, v] Do note that |
[0.8, 0.3]
|
thSAD
|
int
|
Not exactly strength but something like that, for mvtools. |
60
|
radius
|
int | Sequence[int]
|
Temporal Radius used for BM3D and NLMeans. Int or list of ints in this order [bm3d, nlm] |
2
|
prefilter
|
VideoNode | Prefilter | int
|
vsdenoise Prefilter or prefiltered clip to use for mvtools. Defaults to MINBLUR3 |
2
|
gpu
|
bool | Sequence[bool]
|
Uses GPU plugins for BM3D and NLMeans respectively if available ( BM3D uses NLMeans prefers |
True
|
csharp
|
int | bool | Callable[[VideoNode, VideoNode, MVTools], VideoNode]
|
Apply contrasharpening after denoising. True defaults to mc_clamp while False obviously disables it. Integers are passed to the usual contrasharpening function. The callable inputs are filtered, source and mvtools globals. |
False
|
use_nlmeans
|
bool
|
Use NLMeans for chroma denoising. If False, BM3D (with MVTools ref) is used for chroma as well. |
True
|
kwargs
|
Any parameters you might wanna pass to bm3d or mvtools. Note that this also takes |
{}
|
Returns:
| Type | Description |
|---|---|
VideoNode
|
Denoised clip |
Source code in
vodesfunc/denoise.py
115 116 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 185 186 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 214 215 216 217 218 219 220 221 222 223 224 225 | |