The present disclosure relates to the technical field of
image processing, and specifically relates to an
image processing method and apparatus, a storage medium, and an electronic device. The method comprises: acquiring a target depth image captured by a depth camera, and a target
color image captured by a color camera, wherein the target
color image comprises a plurality of color images respectively captured by a plurality of color cameras (S11); on the basis of a matrix conversion relationship between the depth camera and a color camera, projecting onto the target
color image an original three-dimensional
point cloud corresponding to the target depth image, and determining an input viewpoint image in accordance with matched projection points (S12); determining a user
line of sight, and according to the user
line of sight, determining a corresponding second
gaze region in the input viewpoint image, and performing image merging on the basis of a
gaze region image corresponding to the second
gaze region, so as to obtain a high-definition gaze region image (S13); performing scaling and merging on the input viewpoint image to obtain a low-definition image (S14); and merging the high-definition gaze region image and the low-definition image so as to obtain a virtual viewpoint image to be displayed (S15). The present solution increases the
frame rate of a virtual viewpoint
image generation algorithm.