原理:就不介绍了,因为我也不是很懂_。网上有很多大佬都介绍了。
opencv收集了泊松融合算法
void seamlessClone(InputArray src, InputArray dst, InputArray mask, Point p, OutputArray blend, int flags);
参数介绍:
@param src Input 8-bit 3-channel image.
@param dst Input 8-bit 3-channel image.
@param mask Input 8-bit 1 or 3-channel image.
@param p Point in dst image where object is placed.
@param blend Output image with the same size and type as dst.
@param flags Cloning method that could be one of the following:
- NORMAL_CLONE The power of the method is fully expressed when inserting objects with
complex outlines into a new background - MIXED_CLONE The classic method, color-based selection and alpha masking might be time
consuming and often leaves an undesirable halo. Seamless cloning, even averaged with the
or