enum ¶
Classes:
-
BilateralBackend
– -
BlurMatrix
– -
BlurMatrixBase
– -
ClenseMode
– -
LimitFilterMode
–Two sources, one filtered
-
RemoveGrainMode
– -
RepairMode
– -
VerticalCleanerMode
–
Attributes:
RemoveGrainModeT module-attribute
¶
RemoveGrainModeT = int | RemoveGrainMode | Sequence[int | RemoveGrainMode]
VerticalCleanerModeT module-attribute
¶
VerticalCleanerModeT = (
int | VerticalCleanerMode | Sequence[int | VerticalCleanerMode]
)
BilateralBackend ¶
BlurMatrix ¶
Bases: CustomEnum
Methods:
-
__call__
– -
from_radius
– -
get_taps
–
Attributes:
-
BINOMIAL
– -
BOX_BLUR
– -
BOX_BLUR_NO_CENTER
– -
CIRCLE
– -
GAUSS
– -
LOG
– -
MEAN
– -
MEAN_NO_CENTER
–
__call__ ¶
__call__(taps: int = 1, *, mode: ConvMode = SQUARE) -> BlurMatrixBase[int]
__call__(taps: int = 1, *, mode: ConvMode = SQUARE) -> BlurMatrixBase[int]
__call__(taps: int = 1, *, mode: ConvMode = HV) -> BlurMatrixBase[int]
Source code
360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 |
|
from_radius ¶
from_radius(radius: int) -> BlurMatrixBase[float]
Source code
445 446 447 448 |
|
get_taps ¶
Source code
450 451 452 453 454 455 456 |
|
BlurMatrixBase ¶
Bases: list[_Nb]
Methods:
Attributes:
-
mode
–
Source code
168 169 170 171 172 |
|
__call__ ¶
__call__(
clip: VideoNode,
planes: PlanesT = None,
bias: float | None = None,
divisor: float | None = None,
saturate: bool = True,
passes: int = 1,
expr_kwargs: KwargsT | None = None,
**conv_kwargs: Any
) -> ConstantFormatVideoNode
Performs a spatial or temporal convolution. It will either calls std.Convolution, std.AverageFrames or ExprOp.convolution based on the ConvMode mode picked.
Parameters:
-
clip
¶VideoNode
) –Clip to process.
-
planes
¶PlanesT
, default:None
) –Specifies which planes will be processed.
-
bias
¶float | None
, default:None
) –Value to add to the final result of the convolution (before clamping the result to the format's range of valid values).
-
divisor
¶float | None
, default:None
) –Divide the output of the convolution by this value (before adding bias). The default is the sum of the elements of the matrix
-
saturate
¶bool
, default:True
) –If True, negative values become 0. If False, absolute values are returned.
-
passes
¶int
, default:1
) –Number of iterations.
-
expr_kwargs
¶KwargsT | None
, default:None
) –A KwargsT of keyword arguments for ExprOp.convolution.call when it is picked.
-
**conv_kwargs
¶Any
, default:{}
) –Additional keyword arguments for std.Convolution, std.AverageFrames or ExprOp.convolution.
Returns:
-
ConstantFormatVideoNode
–Processed clip.
Source code
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 |
|
outer ¶
outer() -> Self
Source code
308 309 310 311 |
|
ClenseMode ¶
Bases: CustomStrEnum
Methods:
-
__call__
–
Attributes:
__call__ ¶
__call__(
clip: VideoNode,
previous_clip: VideoNode | None = None,
next_clip: VideoNode | None = None,
planes: PlanesT = None,
) -> ConstantFormatVideoNode
Source code
151 152 153 154 155 156 157 158 159 |
|
LimitFilterMode ¶
Bases: LimitFilterModeMeta
, CustomIntEnum
Two sources, one filtered
Methods:
-
__call__
–
Attributes:
-
CLAMPING
– -
DIFF_MAX
–One/Two sources, one filtered
-
DIFF_MIN
– -
SIMPLE2_MAX
– -
SIMPLE2_MIN
– -
SIMPLE_MAX
–One source, two filtered
-
SIMPLE_MIN
– -
force_expr
– -
op
(str
) –
LimitFilterModeMeta ¶
RemoveGrainMode ¶
Bases: CustomIntEnum
Methods:
-
__call__
–
Attributes:
-
BINOMIAL_BLUR
– -
BOB_BOTTOM_CLOSE
– -
BOB_BOTTOM_INTER
– -
BOB_TOP_CLOSE
– -
BOB_TOP_INTER
– -
BOX_BLUR
– -
BOX_BLUR_NO_CENTER
– -
EDGE_CLIP_LIGHT
– -
EDGE_CLIP_MEDIUM
– -
EDGE_CLIP_MODERATE
– -
EDGE_CLIP_STRONG
– -
EDGE_DEHALO
– -
EDGE_DEHALO2
– -
LINE_CLIP_CLOSE
– -
LINE_CLIP_OPP
– -
MEAN
– -
MEAN_NO_CENTER
– -
MINMAX_AROUND1
– -
MINMAX_AROUND2
– -
MINMAX_AROUND3
– -
MINMAX_MEDIAN
– -
MINMAX_MEDIAN_OPP
– -
MIN_SHARP
– -
NONE
– -
OPP_CLIP_AVG
– -
OPP_CLIP_AVG_FAST
– -
SMART_RGC
– -
SMART_RGCL
– -
SMART_RGCL2
–
__call__ ¶
__call__(clip: VideoNode, planes: PlanesT = None) -> ConstantFormatVideoNode
Source code
83 84 85 86 |
|
RepairMode ¶
Bases: CustomIntEnum
Methods:
-
__call__
–
Attributes:
-
CLIP_REF_RG17
– -
CLIP_REF_RG18
– -
CLIP_REF_RG19
– -
CLIP_REF_RG20
– -
CLIP_REF_RG21
– -
CLIP_REF_RG22
– -
CLIP_REF_RG23
– -
CLIP_REF_RG24
– -
CLIP_REF_RG26
– -
CLIP_REF_RG27
– -
CLIP_REF_RG28
– -
CLIP_REF_RG5
– -
CLIP_REF_RG6
– -
LINE_CLIP_CLOSE
– -
LINE_CLIP_LIGHT
– -
LINE_CLIP_MEDIUM
– -
LINE_CLIP_MIN
– -
LINE_CLIP_STRONG
– -
MINMAX_SQUARE1
– -
MINMAX_SQUARE2
– -
MINMAX_SQUARE3
– -
MINMAX_SQUARE4
– -
MINMAX_SQUARE_REF1
– -
MINMAX_SQUARE_REF2
– -
MINMAX_SQUARE_REF3
– -
MINMAX_SQUARE_REF4
– -
MINMAX_SQUARE_REF_CLOSE
– -
NONE
–
__call__ ¶
__call__(
clip: VideoNode, repairclip: VideoNode, planes: PlanesT = None
) -> ConstantFormatVideoNode
Source code
122 123 124 125 |
|
VerticalCleanerMode ¶
Bases: CustomIntEnum
Methods:
-
__call__
–
Attributes:
-
MEDIAN
– -
NONE
– -
PRESERVING
–
__call__ ¶
__call__(clip: VideoNode, planes: PlanesT = None) -> ConstantFormatVideoNode
Source code
136 137 138 139 |
|