Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

it's all about numpy slices .

assuming, you have a small src image, and a larger dst image, you paste it like:

h,w,c = src.shape        # of the small insert image
x,y = ...                # top-left corner, where to put it in the large image.
dst[y:y+h, x:x+w] = src  # that's it already ;)