An electronic device is provided. The electronic device includes an image capture device configured to capture at least a portion of a user's body based on a light source device, a first camera, and a second camera, a memory configured to store a capture image by the image capture device, a display configured to emit light in a specified color at least one region based on driving at least one pixel, and at least one processor configured to be electrically connected with the image capture device, the memory, and the display. The at least one processor being configured to control to drive the image capture device in a state where the at least one region of the display emits light in the specified color to obtain a first capture image and a second capture image and perform registration of the first capture image and the second capture image to generate a third image.