To propose an image inpainting algorithm that can enable the computer to repair images with a larger damaged area and more complex structure information. Images with a larger damaged area and more complex structure information are repaired by imitating manual repair methods
and it has two steps: the division of damaged area and the repair of each block. 1)In the division process of the damaged area the matching degree of every two damaged boundaries are calculated first and the boundaries having the greatest matching degree are made into matching pairs.Then
the well-matched boundaries are directly connected
dividing the damaged region into different blocks. 2)In the repair process of each block
the transmission equation and diffusion equation of the BSCB algorithm are used to repair each block with the highest priority first. Second
our algorithm judges whether there is a block with second priority to be repaired
if yes
the boundary deletion algorithm is used to delete the redundant boundary lines
and the same method is used to repair each block; if not
the repair process is completed. Based on the above image inpainting steps
an image inpainting algorithm based on partition block of damaged region is proposed. The experimental results show that the proposed method can increase the PSNR value about 1.49 db and achieve better visual effect. The proposed algorithm is more suitable for repairing damaged images with a larger damaged area and more complex structure information compared with other three image inpainting algorithms.