denoise
VMDegrain(src, thSAD=60, prefilter=2, smooth=True, block_size=32, overlap=16, **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.
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
52 53 54 55 56 57 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 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 |
|