Algorithm proposed by Alexandru Telea (OpenCV doc).
cv_inpaint.InpaintTelea(vnode clip, vnode mask[, float radius=3.0])
- clip
A clip to process. 8-bit RGB or GRAY only. - mask
8-bit binarized mask, areas with a value of 255 will be processed, and the ones with 0 won't.
Only the first plane will be used. - radius
Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.
Navier-Stokes based method (OpenCV doc).
cv_inpaint.InpaintNS(vnode clip, vnode mask[, float radius=3.0])
- clip
A clip to process. 8-bit RGB or GRAY only. - mask
8-bit binarized mask, areas with a value of 255 will be processed, and the ones with 0 won't.
Only the first plane will be used. - radius
Radius of a circular neighborhood of each point inpainted that is considered by the algorithm.
Rapid Frequency Selective Reconstructiom (FSR) algorithm (OpenCV doc).
cv_inpaint.InpaintFSR(vnode clip, vnode mask)
- clip
A clip to process. 8-bit RGB or GRAY only. - mask
8-bit binarized mask, areas with a value of 255 will be processed, and the ones with 0 won't.
Only the first plane will be used.
This algorithm searches for dominant correspondences (transformations) of image patches and tries to seamlessly fill-in the area to be inpainted using this transformations.
cv_inpaint.InpaintShiftmap(vnode clip, vnode mask)
- clip
A clip to process. 8-bit RGB or GRAY only. - mask
8-bit binarized mask, areas with a value of 255 will be processed, and the ones with 0 won't.
Only the first plane will be used.