I have two images, and have created an ROI from the second image that I’d like to paste into the first image, but with its edges feathered (with a transparency gradient), like this.
I’ve seen solutions to this in Python, but I don’t know how to do this in the Javascript version of openCV.