class
MotionBlur
extends
PhotometricTransform[MotionParam]MotionBlur(blur_limit: int = 7, p: float = 0.5)Directional (linear streak) motion blur (Albumentations MotionBlur).
Samples an odd kernel size and a streak angle in [0, 180)°, draws
a 1-pixel-wide line through the kernel centre at that angle, then
convolves the normalised kernel with the image — approximates the
look of a camera panning while the shutter is open.
Parameters
blur_limitint= 7Inclusive upper bound on the kernel size; rounded up to the
next odd integer.
pfloat= 0.5Probability of applying the transform.
Used by 1
Constructors
1Instance methods
1Sample per-call random parameters for MotionBlur.
Parameters
imgTensorImage tensor; not inspected, carried through for dispatch.
Returns
MotionParamCarries ksize (odd kernel side, [3, blur_limit])
and angle in degrees sampled uniformly from
[0, 180).
Notes
Even kernel-size draws are forced to the next odd integer.
Angles outside [0, 180) are unnecessary since the streak
kernel is symmetric under 180° rotation.