lvsfunc.recon
Chroma reconstruction functions and wrappers.
|
Chroma reconstruction filter using regress. |
|
Reconstruct regressed clips using a base video clip. |
|
Regress a clip using mangled luma and chroma. |
- lvsfunc.recon.chroma_reconstruct(clip, radius=2, i444=False)
Chroma reconstruction filter using regress.
This function should be used with care, and not blindly applied to anything. Ideally you should see how the function works, and then mangle the luma of your source to match how your chroma was mangled.
This function can also return a 4:4:4 clip. This is not recommended except for very specific cases, like for example where you’re dealing with a razor-sharp 1080p source with a lot of bright colours. Otherwise, have it return the 4:2:0 clip instead.
Original function by shane, modified by Ichunjo and LightArrowsEXE.
Aliases for this function are
lvsfunc.demangle
andlvsfunc.crecon
.- Parameters
clip (
VideoNode
) – Clip to process.radius (
int
) – Boxblur radius.i444 (
bool
) – Return a 4:4:4 clip.
- Return type
VideoNode
- Returns
Clip with demangled chroma in either 4:2:0 or 4:4:4.
- lvsfunc.recon.reconstruct_multi(c, r, radius=2)
Reconstruct regressed clips using a base video clip.
- Parameters
c (
VideoNode
) – Original clip.r (
RegressClips
) – Regressed clips.radius (
int
) – Internal boxblur radii.
- Return type
VideoNode
- Returns
Fixed regressed clips.
- lvsfunc.recon.regress(x, *ys, radius=2, eps=1e-07)
Regress a clip using mangled luma and chroma.
Fit a line for every neighborhood of values of a given size in a clip with corresponding neighborhoods in one or more other clips.
For more info see this Wikipedia article.
- Raises
ValueError –
radius
is lesser than 0.- Return type
List
[RegressClips
]