简单点说它可以根据谐波,对图像的补集区域进行差分像素填冲,适用于大面积缺失的差分情况。
适用于那些情况呢,其实就是对图像缺失区域的补齐,比如双目视觉中的disparityimage,或者在自己进行图像拟合过程中
gen_image_const (Image, 'byte', 512, 512)
column:=[0:511]
tuple_gen_const (512, 0, rows)
for Index := 0 to 511 by 3
gen_region_points (Region, rows+Index, column)
union1 (Region, RegionUnion)
paint_region (RegionUnion, Image, Image, Index, 'fill')
endfor
threshold (Image, Region1, 0, 1)
harmonic_interpolation (Image, Region1, InpaintedImage, 0.001)