| Resolving the problem that in the three-dimensional reconstruction of the sequence image,the target object exists foreground occlusions and the existence of holes in the three-dimensional surface reconstruction,the paper presents a algorithm to restore the target object texture and to repair a triangular mesh hole.The main contributions are as follows:(1)A background separation algorithm based on human-computer interaction is studied and implemented.The algorithm uses the color and texture difference between the front and background objects to mark them separately.The iterative optimization is based on the mixed Gaussian model.Finally,the front and background objects are separated and preserved by the maximum flow minimization principle.Subsequent target object texture recovery provides background image input.Experiments show that the algorithm can get clean and complete background image.(2)A background image patch algorithm based on window interpolation is studied and implemented.In order to resolve the problem that after removing obstructions,the background images exist the missing pixels,through the window interpolation algorithm,the pixel is filled with the pixel information on the sequence image adjacent to the image to be repaired,and the pixel is filled with the weighted image The average fusion algorithm fuses the boundary lines after patching to ensure that the texture information of the target object is restored after patching.Experiments show that the proposed algorithm works well and can completely restore the texture information of the target object.(3)A hole filling algorithm based on local datum construction is studied and implemented.Firstly,the boundary edge of the hole is detected by the triangular mesh topological relationship.The least square algorithm is used to fit the local datum plane on the boundary point of the boundary edge.Delaunay triangular meshing is carried out on the local datum plane to complete coarse hole mesh repairment.Finally,the loop meshing algorithm is used to encrypt the coarse patch grid.Experiments show that the hole repair effect is good,can show the surface of the object surface better. |