Reputation: 189
I have a patch with size 32x32 and I have the center coordinate and the x1,y1,x2,y2 coordinates of the patch in the image. I do not know how to add this patch to its position in an image with 256x256?
Upvotes: 1
Views: 2021
Reputation: 14538
You can simply use slicing in Python. Remember that opencv images are numpy arrays in Python.
See a sample code in this answer.
Upvotes: 3