1. An imaging device, comprising: a memory that stores a plurality of sequential images; an image sensor that captures the sequential images, each of the sequential images comprising a representation of an object captured at a focus position of a lens, the focus position being different for each of the sequential images; and processing circuitry configured to: identify a pixel of one of the sequential images, the pixel capturing a portion of the object and having a degree of sharpness not less than the corresponding pixel of remaining sequential images, the corresponding pixel used to capture the portion; and assemble a composite image of the object, the composite image comprising a plurality of pixels, one of the pixels of the composite image being the pixel of the one of the sequential images.