class
ZoomBlur
extends
PhotometricTransform[ZoomParam]ZoomBlur(max_factor: float = 1.31, step_factor: tuple[float, float] = (0.01, 0.03), p: float = 0.5)Radial zoom blur via averaged centre-zoomed copies (Albumentations ZoomBlur).
Samples a final zoom factor uniformly from [1.0, max_factor],
builds 5 centre-crops at progressively-increasing zoom levels
(each resized back to the input (H, W) via bilinear), and
averages them with the original image — simulates a fast forward
dolly into the scene.
Parameters
max_factorfloat= 1.31Upper bound on the final zoom factor (must be
>= 1.0).step_factor(float, float)= (0.01, 0.03)Reserved for future per-step jitter; currently the 5 zoom
levels are evenly spaced toward
max_factor regardless.pfloat= 0.5Probability of applying the transform.
Used by 1
Constructors
1Instance methods
1Sample per-call random parameters for ZoomBlur.
Parameters
imgTensorImage tensor; not inspected, carried through for dispatch.
Returns
ZoomParamCarries factor — the final zoom factor drawn uniformly
from [1.0, max_factor]. The apply step interpolates
5 intermediate zoom levels between 1.0 and factor.