Patent ID: 8520099

Claim:
An imaging apparatus comprising: an imaging element including a plurality of first pixels that measure the amount of light of a first color that has been received by the first pixels and a plurality of second pixels that measure the amount of light of a second color that has been received by the second pixels, the first pixels and the second pixels being arranged in a predetermined pattern, the imaging element being configured to generate image data in which an object has been imaged, the image data having at least one of first color information regarding the first color and second color information regarding the second color; an image selection unit configured to select, from among a plurality of image data pieces of the image data, a first image data piece and a second image data piece in which a position of the object is shifted by a predetermined amount relative to a position of the object imaged in the first image data piece; and an image compositing unit configured to generate composited image data by compositing the first image data piece and the second image data piece based on the predetermined amount; wherein the image selection unit selects, as the second image data piece, an image data piece generated with light from the object that is received via the first pixels of the imaging element and received via the second pixels of the imaging element for generating the first image data piece; the first pixels are arranged alternately in both horizontal and vertical directions of the imaging element; and the image selection unit selects, as the first image data piece and the second image data piece, a pair of image data pieces among the plurality of image data pieces, the pair of image data pieces having a smallest value for an evaluation value D when the following expressions are satisfied, where dx represents a horizontal distance component between a position of the object imaged in one of the pair of image data pieces and a position of the object imaged in the other of the pair of image data pieces, and dy represents a vertical distance component between the positions: dx= 2 m+ 1 +a,dy= 2 n+b ( m,n :integer,−0.5 <a,b< 0.5) or dx= 2 m+a,dy= 2 n+ 1 +b ( m,n :integer,−0.5 <a,b< 0.5); and D =( a 2 +b 2 ) 0.5 .