Albumentations
All Transforms
Get License
Documentation
News & Insights
Report Issue
Join Discord
...
Commercial
Albumentations in production?
Get license
PadIfNeeded
Docs
Pad image to meet min height/width and/or divisibility (pad_height_divisor, pad_width_divisor).
PadIfNeeded
Pad image to meet min height/width and/or divisibility (pad_height_divisor, pad_width_divisor).
Docs
Select an image...
Upload Image
Apply
Sweep ×7
Parameters
Form
Code
Min Height
Min Width
Pad Height Divisor
Pad Width Divisor
Position
center
▼
Border Mode
0 (cv2.BORDER_CONSTANT)
▼
Fill
Fill Mask
Loading images...
Commercial
Albumentations in production?
Get license
PadIfNeeded
Docs
Pad image to meet min height/width and/or divisibility (pad_height_divisor, pad_width_divisor).
PadIfNeeded
Pad image to meet min height/width and/or divisibility (pad_height_divisor, pad_width_divisor).
Docs
Select an image...
Upload Image
Apply
Sweep ×7
Parameters
Form
Code
Min Height
Min Width
Pad Height Divisor
Pad Width Divisor
Position
center
▼
Border Mode
0 (cv2.BORDER_CONSTANT)
▼
Fill
Fill Mask
Loading images...