1. An electronic apparatus comprising: a spectral filter which selectively outputs light with a wavelength among input light, and is capable of changing the wavelength of the output light; a filter driving unit which sets the wavelength of the output light, and makes sequentially output at least red light and green light among three color light beams of the red light in a red color wavelength range, the green light in a green color wavelength range, and blue light in a blue color wavelength range in a predetermined order from the spectral filter; an imaging element which receives at least the red light and the green light which are sequentially output from the spectral filter, and obtains at least a red image and a green image among three color images of the red image, the green image, and a blue image corresponding to the three color light beams; and an image generation unit which generates a composite image using the latest color images including at least the red image and the green image which are obtained using the imaging element.