apply_transform#
- apply_transform(transform: BasicTransform, **kwargs) dict[source]#
Apply Albumentations transform to possibly batched images.
In case of batched images, the same transform is applied to all of them. This is useful for when the images represent a time-series.
- Parameters
transform (BasicTransform) – An albumentations transform.
**kwargs – Extra args for
transform.
- Returns
Output of
transform. Ifndim == 4, the transformed image in the dict is also 4-dimensional.- Return type