In openCV is there any API that is performing this operation, have looked but till now nothing relatable to this can be found.
Poison image Editing is used for seamless copying of a part of image to another image. Examples : https://github.com/cheind/poisson-image-editing
Paper : https://www.cs.jhu.edu/~misha/Fall07/Papers/Perez03.pdf