CenterCrop¶
- class torchcodec.transforms.CenterCrop(size: Sequence[int])[source]¶
Crop the decoded frame to a given size in the center of the frame.
Complementary TorchVision transform:
CenterCrop.- Parameters:
size (Sequence[int]) – Desired output size. Must be a sequence of the form (height, width).
Examples using
CenterCrop:
Decoder Transforms: Applying transforms during decoding
Decoder Transforms: Applying transforms during decoding