主权项 |
1. An image processing apparatus having a generation unit which generates a restored image in which blur restoration has been performed with respect to an object of an indicated object distance from an image captured by an image capturing unit, by performing image processing to image data, the image processing apparatus comprising:
one or more processors; a memory storing instructions which, when the instructions are executed by the one or more processors, cause the image processing apparatus to function as:
a control unit configured to control the generation unit and the object distance at which the blur restoration is performed in the restored image generated by the generation unit;an indication unit configured to indicate the control unit to generate a newly restored image in which blur restoration has been performed and the object distance at which the blur restoration is performed has been corrected; andan acquiring unit configured to acquire information about an object distance of an object; wherein, in a case where a difference between an object distance at which blur restoration has been previously performed in the restored image generated by the generation unit and the object distance of the object acquired by the acquiring unit is smaller than a predetermined value, the control unit controls the object distance at which the blur restoration is performed in the restored image generated by the generation unit to an object distance having a smaller change amount from the object distance at which blur restoration has been previously performed compared to a case where the difference is greater than the predetermined value, according to the indication unit having indicated the control unit to generate the newly restored image in which blur restoration has been performed, and wherein, the generation unit generates the restored image in which blur restoration has been performed at the object distance controlled by the control unit. |