First, in step S700, the image stabilizing area selecting unit 112 checks the reliabilities of all the detected objects, and assigns flag information indicating image stabilization target candidates to objects whose reliability values are higher than a threshold. Next, in step S701, the image stabilizing area selecting unit 112 confirms an object type, and determines whether or not the target object is an object type for image stabilization. If the target object is the object type for image stabilization, the image stabilization target candidate flag is enabled (made valid). On the other hand, if the target object is not the object type for image stabilization, the image stabilization target flag is disabled (made invalid). Here, the object type for image stabilization includes a person, an animal, a vehicle, and the like selected by an unillustrated user instruction member.
Next, in step S702, the image stabilizing area selecting unit 112 determines whether or not there is the same object as the object that is a determination target for image stabilization in the previous frame among the objects for which the image stabilization target candidate flag is enabled in the current frame. If the same object exists, the same object is selected as the object for image stabilization. On the other hand, if the same object does not exist, the most reliable image stabilization target object is selected (object transfer is confirmed). In a case where all the image stabilization target candidate flags are disabled, the entire angle of view may be selected as the image stabilization target object.