论文题目:An Image Inpainting Technique Based on the Fast Marching Method (2004)
作者主页:http://www.cs.rug.nl/~alext/
论文下载: http://www.cs.rug.nl/~alext/PAPERS/index.html (编号36)
在opencv中实现修复有两种算法,代码使用基于快速行进(FMM)的修复算法。
1
2
3
4
5
6
|
void cv::inpaint( const Mat& src, const Mat& mask, Mat& dst, double inpaintRange, int flags )
//src:要修复的图像;
//mask:修复模板,必须是单通道图像;
//dst:目标图像;
//inpaintRange:选取邻域半径;
//flags:要使用的方法,可以是CV_INPAINT_NS或CV_INPAINT_TELEA(本文介绍的方法)。
|