An electronic device comprising: at least one main lens; an image sensor; a plurality of micro lenses, wherein each of the plurality of micro lenses corresponds to at least two photodiodes; and at least one processor, wherein, when an input for acquiring an image is received, the at least one processor is configured to: acquire, from the at least one main lens, a first image including an object by setting the image sensor to a first position corresponding to a first focal point for the object, control to adjust a position of the at least one main lens, acquire, from the at least one main lens, a second image including the object by setting the image sensor to a second position corresponding to a second focal point for the object, and generate a combined image of increased resolution, relative to the first image and the second image, by combining the acquired first image and the acquired second image, wherein the acquired first image and the acquired second image are being combined based on at least one of a sum of a first pixel value acquired by a first photodiode at the first position and a second pixel value acquired by a second photodiode at the second position or an average value of the sum of the first pixel value and the second pixel value, wherein the first focal point and the second focal point comprise positions defocused from an on-focus position for the object by a certain pixel distance transposed in a movement direction of a focal point, and wherein the first focal point and the second focal point comprise positions symmetrical to each other with reference to the on-focus position for the object. at least one main lens; an image sensor; a plurality of micro lenses, wherein each of the plurality of micro lenses corresponds to at least two photodiodes; and at least one processor, wherein, when an input for acquiring an image is received, the at least one processor is configured to: acquire, from the at least one main lens, a first image including an object by setting the image sensor to a first position corresponding to a first focal point for the object, control to adjust a position of the at least one main lens, acquire, from the at least one main lens, a second image including the object by setting the image sensor to a second position corresponding to a second focal point for the object, and generate a combined image of increased resolution, relative to the first image and the second image, by combining the acquired first image and the acquired second image, wherein the acquired first image and the acquired second image are being combined based on at least one of a sum of a first pixel value acquired by a first photodiode at the first position and a second pixel value acquired by a second photodiode at the second position or an average value of the sum of the first pixel value and the second pixel value, wherein the first focal point and the second focal point comprise positions defocused from an on-focus position for the object by a certain pixel distance transposed in a movement direction of a focal point, and wherein the first focal point and the second focal point comprise positions symmetrical to each other with reference to the on-focus position for the object. acquire, from the at least one main lens, a first image including an object by setting the image sensor to a first position corresponding to a first focal point for the object, control to adjust a position of the at least one main lens, acquire, from the at least one main lens, a second image including the object by setting the image sensor to a second position corresponding to a second focal point for the object, and generate a combined image of increased resolution, relative to the first image and the second image, by combining the acquired first image and the acquired second image, wherein the acquired first image and the acquired second image are being combined based on at least one of a sum of a first pixel value acquired by a first photodiode at the first position and a second pixel value acquired by a second photodiode at the second position or an average value of the sum of the first pixel value and the second pixel value, wherein the first focal point and the second focal point comprise positions defocused from an on-focus position for the object by a certain pixel distance transposed in a movement direction of a focal point, and wherein the first focal point and the second focal point comprise positions symmetrical to each other with reference to the on-focus position for the object.