I am working on tensorflow and I am having some images of cars in an numpy array with shape (3, 512, 660, 4)
.
In this, 3
corresponds to a car index, 512*660
is an image size and 4
corresponds to the different sides of a car.
That is, (1, 512, 660, 1)
corresponds to Car1 - front side image, (1, 512, 660, 2)
corresponds to Car1 - Left side image and so on.
Now, I want to concat all the images of a car into one image (2048*660
). That is, I want to reshape (3, 512, 660, 4)
to (3, 2048, 660, 1)
.
Can someone help me?
I tried reshape function but it actually overlaps images rather than concatenating it.