denoise
MVPresets
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
Default()
Returns MVPresets.MaybeNotTerrible
if used on a version where mc_degrain is available.
Otherwise None
.
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
VMDegrain(src, thSAD=60, prefilter=2, smooth=True, block_size=None, overlap=None, refine=2, tr=2, preset=MVPresets.Default, **kwargs)
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 |
---|---|
VideoNode
|
Denoised clip |
Source code in vodesfunc/denoise.py
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 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 |
|
schizo_denoise(src, sigma=[0.8, 0.3], thSAD=60, radius=2, nlm_a=2, prefilter=2, cuda=True, csharp=False, **kwargs)
Convenience function for (k)nlm on chroma and mvtools + bm3d(cuda) 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 | list[float]
|
Essentially strength for NLMeans and BM3D. Float or list of floats in this order [bm3d, nlm_uv] or [bm3d, nlm_u, nlm_v] |
[0.8, 0.3]
|
thSAD
|
int
|
Not exactly strength but something like that, for mvtools. |
60
|
radius
|
int | list[int]
|
Temporal Radius used for NLMeans and BM3D. Int or list of ints in this order [bm3d, nlm] |
2
|
prefilter
|
VideoNode | int
|
vsdenoise Prefilter or prefiltered clip to use for mvtools. Defaults to MINBLUR3 |
2
|
cuda
|
bool | list[bool]
|
Uses NlmCuda and BM3DCuda respectively if available. The latter prefers RTC if available. Will fallback to BM3DHip if installed and no cuda available. |
True
|
csharp
|
int | bool
|
Apply contrasharpening after denoising. True defaults to 3 while False obviously disables it. |
False
|
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
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 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 |
|