How can I stack 2 arrays of shape (1 , 1024, 3) (1024, 616, 3) column wise? For the above example resultant array should be (1025,616,3).
I was able to stack same shaped arrays (1, 1024, 3) (1024, 1024, 3) using
np.concatenate((x_cache,tile),axis=0) or np.vstack(x_cache,tile) However I am unable to stack when the 2 arrays 2nd dimensions don't match. Similarly How can I do row stacking when the shape doesn't match.
https://stackoverflow.com/questions/67260707/stacking-column-across-3d-numpy-array April 26, 2021 at 12:05PM
没有评论:
发表评论