An image processing method, for an electronic device including an imaging apparatus with an image sensor, the image sensor comprises an array of photosensitive pixel units and an array of filter units arranged on the array of photosensitive pixel units, each filter unit corresponds to one photosensitive pixel unit and comprises a plurality of filters having a same color, each photosensitive pixel unit comprises a plurality of photosensitive pixels adjacent to each other, and each photosensitive pixel is covered by one filter, the image processing method comprises: controlling the image sensor to output a merged image, wherein, the merged image comprises an array of merged pixels, and the photosensitive pixels in a same photosensitive pixel unit are collectively output as one merged pixel; identifying a depth-of-field area based on the merged image; controlling the image sensor to output a color-block image, wherein, the color-block image comprises image pixel units arranged in a Bayer array, each image pixel unit comprises a plurality of original pixels adjacent to each other, each photosensitive pixel unit corresponds to one image pixel unit, and each photosensitive pixel corresponds to one original pixel; converting a first part of the color-block image into a first simulation image using a first interpolation algorithm, wherein, the first part of the color-block image is within the depth-of-field area, the first simulation image comprises first simulation pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one first simulation pixel; converting a second part of the color-block image into a second simulation image using a second interpolation algorithm, wherein, the second part of the color-block image is outside the depth-of-field area, the second simulation image comprises second simulation pixels arranged in the Bayer array, each photosensitive pixel corresponds to one second simulation pixel, and the first interpolation algorithm is more complex than the second interpolation algorithm; and merging the first simulation image and the second simulation image to generate a simulation image corresponding to the color-block image. controlling the image sensor to output a merged image, wherein, the merged image comprises an array of merged pixels, and the photosensitive pixels in a same photosensitive pixel unit are collectively output as one merged pixel; identifying a depth-of-field area based on the merged image; controlling the image sensor to output a color-block image, wherein, the color-block image comprises image pixel units arranged in a Bayer array, each image pixel unit comprises a plurality of original pixels adjacent to each other, each photosensitive pixel unit corresponds to one image pixel unit, and each photosensitive pixel corresponds to one original pixel; converting a first part of the color-block image into a first simulation image using a first interpolation algorithm, wherein, the first part of the color-block image is within the depth-of-field area, the first simulation image comprises first simulation pixels arranged in the Bayer array, and each photosensitive pixel corresponds to one first simulation pixel; converting a second part of the color-block image into a second simulation image using a second interpolation algorithm, wherein, the second part of the color-block image is outside the depth-of-field area, the second simulation image comprises second simulation pixels arranged in the Bayer array, each photosensitive pixel corresponds to one second simulation pixel, and the first interpolation algorithm is more complex than the second interpolation algorithm; and merging the first simulation image and the second simulation image to generate a simulation image corresponding to the color-block image.