Patent ID: 8830381

Claim:
An imaging device comprising: an image blur evaluator that evaluates an amount of blurring due to a camera shake; an imaging processor that captures a plurality of secondary images of a same object at different lens positions by driving a photographing lens; a distance map generator that divides each of the plurality of secondary images into a plurality of areas, and prepares a distance map including distance information of the object in each area of the plurality of areas, the distance information being obtained based on contrast in each area of the plurality of areas in each of the secondary images, each of the plurality of areas including at least one pixel; and a filter that is applied to the distance map to reduce noise in the distance map; wherein a relatively large filter size is selected for the filter when the amount of blurring is evaluated to be relatively large, and a relatively small filter size is selected for the filter when the evaluated blurring is relatively small.