inpaintCoherent
使用基于相干传输的图像镶嵌恢复特定的图像区域
Description
Examples
输入参数
输出参数
Tips
介入结果取决于名称值对规范。您可以修改值
'Radius'
and'SmoothingFactor'
对于各种结果。Each ROI in the binary mask image must be sufficiently large to enclose the corresponding region in the image to be inpainted.
Algorithms
基于连贯运输的涂漆方法是一种基于像素的方法,用于删除对象和填充图像中的区域[1]。从目标区域的边界像素开始对内部进行介入。像素的覆盖值是根据其相干相邻像素估计的,具有已知值。所涉及的步骤总结如下:
我dentify target regions from the input image to be filled or inpainted. Generate a binary mask of the size same as the input image. The nonzero pixels in the mask image must contain the target regions to be inpainted.
The order in which the pixels in the target region are inpainted is calculated from their Euclidean distance to the boundary of the target region.
目标区域中像素的覆盖值是其内部半径内已知像素值的加权平均值。沿相干方向的已知像素比不一致的相邻像素更高。通过使用结构张量来估计相干方向。
References
[1] F. Bornemann and T. März. "Fast Image Inpainting Based on Coherence Transport."数学成像和视觉杂志。卷。28,2007,第259–278页。