Need help replacing roi in image

I want to replace painting in this pic with another image.

1 Like

welcome. what have you attempted?

would a proper photo editing program be a better idea? OpenCV is not a photo editing program.

I’m thinking of finding its ROI and adding an image in its place.

something like this

okay. what’s the specific problem?

do you want documentation? do you want a course on image processing?

“need help” is not actionable. you need to show that you’ve done your homework.



Have a look at here

OutputArray can be the ROI of the original full image.

void cv::Mat::copyTo(OutputArray m, InputArray mask ) const