l have a set of images of different sizes (45,50,3), (69,34,3), (34,98,3). l want to add padding to these images as follows:
(45,50,3), (69,34,3), (34,98,3)
Take the max width and leng
Like this (Padding is called borders on openCV):
BLUE = [255,255,255] constant= cv2.copyMakeBorder(image.copy(),10,10,10,10,cv2.BORDER_CONSTANT,value=BLUE)
And blue can become white even
source: https://docs.opencv.org/3.4/da/d0c/tutorial_bounding_rects_circles.html