10.09.2025, 19:31
Hello Selur,
I attached the new RC3. I added the function ColorPostProcessing
This function not only is able to perform color adjustments, but if the boolean parameter ReColor is enabled (to be used only if the input was colored with HAVC), the input clip will be stabilized using ColorMNet, all the remaing parameters are related to the ReColor process.
I hope that will be able to converge to a solution.
Dan
I attached the new RC3. I added the function ColorPostProcessing
def ColorPostProcessing(clip: vs.VideoNode, BlackWhiteTune: str = 'Medium', BlackWhiteMode: int = 2,
ReColor: bool = True, ScThreshold: float = 0.10, ScNormalize: bool = True,
DeepExVivid: bool = True, ScMinFreq: int = 0) -> vs.VideoNode:
"""HAVC Color Post Processing function
:param clip: clip to process, only RGB24 format is supported.
:param BlackWhiteTune: This parameter allows to improve contrast and luminosity of frames colored with HAVC.
Allowed values are:
'None' (default)
'Light',
'Medium',
'Strong'
:param BlackWhiteMode: Method used by BlackWhiteTune to perform colors adjustments.
Allowed values are:
0 : Apply Contrast Limited Adaptive Histogram Equalization on Luma
1 : Apply Simple Histogram Equalization on all RGB channels
2 : Apply CLAHE on all RGB channels (default)
3 : method=0 and method=1 are merged
4 : Automatic brightness and contrast optimization with ScaleAbs
5 : Automatic brightness and contrast optimization with saturation arithmetic
:param ReColor: If True the clip will re-colored with ColorMNet
:param ScThreshold: Scene change threshold used to generate the reference frames to be used by
ColorMNet. It is a percentage of the luma change between the previous and the
current frame. range [0-1], default 0.10. If =0 are not generate reference frames.
default = 0.10
:param ScNormalize: If true the frames are normalized before using misc.SCDetect(), the normalization
will increase the sensitivity to smooth scene changes, range [True, False],
default: True
:param DeepExVivid: if enabled (True) the ColorMNet memory is reset at every reference frame update
range [True, False], default: True
:param ScMinFreq: if > 0 will be generated at least a reference frame every "ScMinFreq" frames.
range [0-1500], default: 0.
"""
This function not only is able to perform color adjustments, but if the boolean parameter ReColor is enabled (to be used only if the input was colored with HAVC), the input clip will be stabilized using ColorMNet, all the remaing parameters are related to the ReColor process.
I hope that will be able to converge to a solution.
Dan