Lambda
A flexible transformation class for using user-defined transformation functions per targets.
Function signature must include **kwargs to accept optional arguments like interpolation method, image size, etc:
Args:
image (Callable[..., Any] | None): Image transformation function.
mask (Callable[..., Any] | None): Mask transformation function.
keypoints (Callable[..., Any] | None): Keypoints transformation function.
bboxes (Callable[..., Any] | None): BBoxes transformation function.
p (float): probability of applying the transform. Default: 1.0.
Targets:
image, mask, bboxes, keypoints, volume, mask3d
Image types:
uint8, float32
Supported bboxes:
hbb, obb
Number of channels:
Any
Supported Targets
image
mask
bboxes
keypoints