The processor 450 may generate image data having a specified channel pattern by combining the generated pixel data by using the image sensor 415. In the second output mode, by using the image sensor 415, the processor 450 may rearrange pixel data of a sub-pixel unit depending on a specified channel pattern (re-mosaic) and may generate image data having the specified channel pattern. For example, the image sensor 415 may generate image data having the specified channel pattern by exchanging left and right pixel data, top and bottom pixel data, or diagonal pixel data in rearranging pixel data of a sub-pixel unit depending on a command of the processor 450. For another example, in the second output mode, the processor 450 may receive pixel data of a sub-pixel unit from the image sensor 415, may rearrange the received pixel data of the sub-pixel unit depending on a specified channel pattern (re-mosaic), and may generate image data having the specified channel pattern.
The processor 450 may display an image generated based on the image data through the display 430. For example, the processor 450 may perform color interpolation on image data such that each pixel of the image data includes “R” information, “G” information, and “B” information and may convert the color-interpolated image data so as to correspond to a specified format (e.g., a YUV format). The processor 450 may generate an image based on the converted image data and may display the generated image through the display 430. Additionally or alternatively, the processor 450 may store the generated image in the memory 440. For example, the processor 450 may store the generated image in the memory 440 in response to an input associated with image photographing.