title: How can I stack more that two numpy arrays of images along third dimension in Python3
body: <p>Here is what I have tried in Python3. I know the problem is that I can't stack the arrays of different shapes as initially, the stacked_data will be empty. But I have to stack a large amount of dataset of images in ndarray format. And I can't do that by passing a tuple of huge numbers. Thank you.</p>
  
  <pre><code>from numpy import *
  from cv2 import *
  import glob
  
  folder_path = r'C:\Users\Administrator\Desktop\training\WorkWithMam\TestingImages/*.jpg'
  
  image_path = []
  for path in glob.glob(folder_path):
      image_path.append(path)
  
  stacked_data = empty((19, 3024, 4032))
  for path in folder_path:
      image = imread(path, 0)
      stack((stacked_data, image))
  </code></pre>