← Back to all transforms
CenterCrop
Description
Crop the central part of the input. Args: height: height of the crop. width: width of the crop. p: probability of applying the transform. Default: 1. Targets: image, mask, bboxes, keypoints Image types: uint8, float32
Parameters
- p: float (default: 1)
- height: int | None (default: null)
- width: int | None (default: null)
Targets
- Image
- Mask
- BBoxes
- Keypoints
Try it out
Original Image (width = 484, height = 733):
Transformed Image:
Transform not yet applied