An electronic device comprising: at least one image sensor; a display unit; a memory configured to store instructions; and a processor, wherein the processor executes the stored instructions to: obtain, via the at least one image sensor, a color image and a depth map corresponding to the color image; generate an image by combining the color image with the depth map; in response to a first user input for editing the image, display the image and a user interface, UI, representing a depth value distribution of pixels of the image through the display unit, wherein the depth value distribution of pixels is determined based on the depth map; while displaying the image and the UI, receive a second user input for selecting an object to be added in the image; in response to the second user input, display at least a part of the object in the image based on a predetermined depth value of the object and depth information of a first region in which the object is located in the image; and display a first indicator representing the predetermined depth value of the object in the UI; characterized in that, the processor executes the stored instructions to: receive a third user input for selecting a depth range in the UI; display a second region corresponding to the selected depth range in the image; and combine an image of the second region with another image. at least one image sensor; a display unit; a memory configured to store instructions; and a processor, wherein the processor executes the stored instructions to: obtain, via the at least one image sensor, a color image and a depth map corresponding to the color image; generate an image by combining the color image with the depth map; in response to a first user input for editing the image, display the image and a user interface, UI, representing a depth value distribution of pixels of the image through the display unit, wherein the depth value distribution of pixels is determined based on the depth map; while displaying the image and the UI, receive a second user input for selecting an object to be added in the image; in response to the second user input, display at least a part of the object in the image based on a predetermined depth value of the object and depth information of a first region in which the object is located in the image; and display a first indicator representing the predetermined depth value of the object in the UI; characterized in that, the processor executes the stored instructions to: receive a third user input for selecting a depth range in the UI; display a second region corresponding to the selected depth range in the image; and combine an image of the second region with another image. obtain, via the at least one image sensor, a color image and a depth map corresponding to the color image; generate an image by combining the color image with the depth map; in response to a first user input for editing the image, display the image and a user interface, UI, representing a depth value distribution of pixels of the image through the display unit, wherein the depth value distribution of pixels is determined based on the depth map; while displaying the image and the UI, receive a second user input for selecting an object to be added in the image; in response to the second user input, display at least a part of the object in the image based on a predetermined depth value of the object and depth information of a first region in which the object is located in the image; and display a first indicator representing the predetermined depth value of the object in the UI; characterized in that, the processor executes the stored instructions to: receive a third user input for selecting a depth range in the UI; display a second region corresponding to the selected depth range in the image; and combine an image of the second region with another image. receive a third user input for selecting a depth range in the UI; display a second region corresponding to the selected depth range in the image; and combine an image of the second region with another image.