用OpenCV实现简单的泊松融合

原理:就不介绍了,因为我也不是很懂_。网上有很多大佬都介绍了。

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值