denoise
VMDegrain(src, thSAD=60, prefilter=2, smooth=True, block_size=None, overlap=None, refine=None, **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
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. |
{}
|
Returns:
Type | Description |
---|---|
VideoNode
|
Denoised clip |
Source code in vodesfunc/denoise.py
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 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 |
|