Is there a way to do the equivalent cv2.addWeigthed on one of the source images without creating a new memory

Hi I am trying to do img = cv2.addWeighted(mask, 0.4,img, 0.6, 0) but it is resulting in creating a new memory for the output. Can the function work in-place on one the input sources. If not how can I get the same result if I won’t it to be kept on one of the sources img original memory and not on copy ?

use the dst argument.

does it exist in python ?

yes. that’s why I said it.

1 Like

Thank you that works !