An image processing apparatus, comprising: a determining module, configured to determine depth information of multiple depth planes, wherein the depth information of the multiple depth planes is used to indicate the multiple depth planes, and the multiple depth planes are respectively corresponding to multiple refocused images of the multiple depth planes; and a generation module, configured to generate a refocused image of the multiple depth planes; wherein the multiple depth planes are respectively corresponding to raw data of the multiple refocused images; wherein the raw data of the multiple refocused images have been obtained by means of shooting by a camera module of a scene; and the generation module determines the raw data of the multiple refocused images according to the depth information of the multiple depth planes; wherein the generation module performs refocusing processing based on the raw data of the multiple refocused images by using a refocusing algorithm, so as to generate the multiple refocused images; wherein the generation module, so as to generate the refocused image of the multiple depth planes, randomly selects one refocused image from the multiple refocused images, and fuses the focused parts of the remaining multiple refocused images corresponding to the multiple depth planes with the selected refocused image, by using an image fusion method; wherein the generation module determines a point spread function of pixels of the multiple refocused images, generates a fusion weight template according to the point spread function of the pixels, and performs image fusion on the multiple refocused images according to the fusion weight template, wherein the fusion weight template comprises fusion weights of the pixels, and a fusion weight of a pixel of a high focusing degree is greater than a fusion weight of a pixel of a low focusing degree. a determining module, configured to determine depth information of multiple depth planes, wherein the depth information of the multiple depth planes is used to indicate the multiple depth planes, and the multiple depth planes are respectively corresponding to multiple refocused images of the multiple depth planes; and a generation module, configured to generate a refocused image of the multiple depth planes; wherein the multiple depth planes are respectively corresponding to raw data of the multiple refocused images; wherein the raw data of the multiple refocused images have been obtained by means of shooting by a camera module of a scene; and the generation module determines the raw data of the multiple refocused images according to the depth information of the multiple depth planes; wherein the generation module performs refocusing processing based on the raw data of the multiple refocused images by using a refocusing algorithm, so as to generate the multiple refocused images; wherein the generation module, so as to generate the refocused image of the multiple depth planes, randomly selects one refocused image from the multiple refocused images, and fuses the focused parts of the remaining multiple refocused images corresponding to the multiple depth planes with the selected refocused image, by using an image fusion method; wherein the generation module determines a point spread function of pixels of the multiple refocused images, generates a fusion weight template according to the point spread function of the pixels, and performs image fusion on the multiple refocused images according to the fusion weight template, wherein the fusion weight template comprises fusion weights of the pixels, and a fusion weight of a pixel of a high focusing degree is greater than a fusion weight of a pixel of a low focusing degree.