我想在图像中提取前景。我知道抓取可以实现它。但我想使用alpha matting方法。我正在通过python搜索alpha matting算法的代码,但我找不到它。你能帮助我吗?谢谢
我不知道你可以开箱即用的工具,但你可以使用这个方法来实现alpha遮罩:
.split()
.filter()