样本块重建inpainting算法我要分享

Sample block reconstruction inpainting algorithm

matlab 重建 算法 inpainting 样本

关注次数: 274

下载次数: 0

文件大小: 1.87 MB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:图像复原程序。I 为待修复图像,Ω为待修复区域,其边界为 ∂Ω ,Φ为待修复图像的已知区域。Criminisi算法的思想就是在边界 ∂Ω 上根据优先权选取一点p,选定以p点为中心的小方块yp为当前需要修复的块,然后在已知区域Φ中寻找最匹配的块yq,最后将yq中对应点的颜色信息复制到yp Ç W,并更新边界 ∂Ω ,重复上述过程直至 Ω为空。该算法最核心的思想就是考虑了目标区域修复的顺序,提出了按优先权的顺序进行修复的思路。


English Description:

Image restoration program. I & nbsp; is the image to be repaired, Ω is the region to be repaired, its boundary is & nbsp; ∂ Ω & nbsp;, and Φ is the known region of the image to be repaired. The idea of criminisi algorithm is to select a point P on the boundary according to the priority, select the small block YP centered on point P as the current block to be repaired, then find the best matching block YQ in the known area Φ, finally copy the color information of the corresponding point in YQ to YP & nbsp; Ç & nbsp; W, and update the boundary & nbsp; ∂ Ω & nbsp;, and repeat the above process until & nbsp; Ω is empty. The core idea of the algorithm is to consider the repair order of the target area, and put forward the idea of repairing according to the priority order.


代码预览