According to the above embodiment, the image sensor 300 may generate image data of a resolution corresponding to the overall number of sub-pixels (e.g., photodetectors). Also, the image sensor 300 may restore data on phase difference sub-pixels by using data obtained from sub-pixels adjacent to the phase difference sub-pixels, thus preventing a decrease in the quality of image due to the phase difference sub-pixels.