The invention belongs to the technical field of
computer vision and
light field imaging, and discloses a large-area highlight detection and
repair method and
system. The method comprises the following steps: imaging by using a
light field camera array to obtain a multi-view-angle
light field image, and calculating an initial
parallax; the method comprises the following steps: obtaining a multi-view highlight area
mask through highlight detection, removing the highlight area
mask to obtain a light field image without a highlight area, carrying out light field refocusing to obtain a non-highlight refocusing
image stack, applying the highlight area
mask obtained through central
view angle detection to an initial
parallax image, and constructing a reliable
parallax set to realize parallax layering; according to parallax layer information of a non-highlight area pixel adjacent to a highlight pixel space in the highlight area, carrying out
adaptation on a parallax layer of the highlight pixel; and constructing a hierarchical restoration strategy based on observation conditions of different
viewpoints when no-highlight refocusing image of the highlight pixel in the corresponding parallax layer is superposed and averaged at the pixel position, thereby realizing restoration of the highlight area. According to the method, high-quality and large-area highlight repair can be realized.