'move x,y position of image to top right corner in python numpy

Facing issue in moving x,y co-ordinates on image using numpy:

Image1, top,left: imgOut[0:150, 0:150, :] = sci_img[0:150, 0:150, 0:3] Image2, below Image 1, left: imgOut[150:250, 0:100, :] = tc1_img[0:100, 0:100, 0:3]

I was able to move Image2 to be besides Image1 using: Image2: imgOut[0:100, 150:250, :] = tc1_img[0:100, 0:100, 0:3]

now if I try to move Image2 anywhere else it keeps throwing variation of this error: [1] ValueError: could not broadcast input array from shape (100,100,3) into shape (200,200,3) [2] ValueError: could not broadcast input array from shape (100,100,3) into shape (100,150,3)

I'm not familiar with numpy 3d array, I just need to move the image to various positions. Could you please help ?

-Thanks in advance



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source