title: Add padding to images to get them into the same shape
body: <p>l have a set of images of different sizes <code>(45,50,3), (69,34,3), (34,98,3)</code>. l want to add padding to these images as follows:</p>
  
  <p>Take the max width and length of the whole images then put the image in that size</p>
  
  <pre><code>import os
  import glob
  import cv2
  
  input_path="/home/images"
  os.chdir(indput_path)
  images=glob.glob("*.png")
  Length=[]
  Width=[]
  for img in images:
      img=cv2.imread(img)
      width,length=img.shape[0:2]
      Length.append(length)
      Width.append(width)
  W=max(Width)
  L=max(Length)
  </code></pre>
  
  <p>How can l add padding in opencv so that all the images will have the same size? In the example l gave the images will get the shape of <code>(69,98,3)</code></p>