Image processing apparatus for acquiring a refocus image, image pickup apparatus for acquiring a refocus image, image processing method for acquiring a refocus image, and storage medium
An image processing apparatus includes a memory storing instructions, and a processor configured to execute the instructions to acquire first image data acquired by imaging via a first optical system and second image data acquired by imaging via a second optical system, and adjust an in-focus degree difference between the first image data and the second image data by performing, using one of the first image data and the second image data as reference image data, refocus processing for the other of the first image data and the second image data.
1 . An image processing apparatus comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
acquire first image data acquired by imaging via a first optical system and second image data acquired by imaging via a second optical system, and
adjust an in-focus degree difference between the first image data and the second image data by performing refocus processing,
wherein the refocus processing is performed after the first and second image data are stored in the memory,
wherein the refocus processing is configured to reset a focal plane and re-composite the other of the first image data and the second image data using one of the first image data and the second image data as reference image data.
2 . The image processing apparatus according to claim 1 , wherein the processor is configured to determine the one of the first image data and the second image data as the reference image data.
3 . The image processing apparatus according to claim 2 , wherein the processor is configured to acquire collateral information corresponding to each of the first image data and the second image data.
4 . The image processing apparatus according to claim 3 , wherein the processor is configured to determine the reference image data using the collateral information.
5 . The image processing apparatus according to claim 3 , wherein the processor is configured to adjust the in-focus degree difference between the first image data and the second image data at a predetermined position determined by the collateral information.
6 . The image processing apparatus according to claim 2 , wherein the processor is configured to determine the reference image data based on the in-focus degree difference between the first image data and the second image data.
7 . The image processing apparatus according to claim 1 , wherein the processor is configured to display a warning when determining that the in-focus degree difference cannot be adjusted.
8 . The image processing apparatus according to claim 1 , wherein the first image data includes a first image, and a first parallax image and a second parallax image that have parallax with each other,
wherein the first image is an image acquired by adding up the first parallax image and the second parallax image,
wherein the second image data includes a second image having parallax with the first image, and a third parallax image and a fourth parallax image having parallax with each other,
wherein the second image is an image obtained by adding up the third parallax image and the fourth parallax image, and
wherein the processor is configured to:
perform the refocus processing for the first image using the first parallax image and the second parallax image, and
perform the refocus processing for the second image using the third parallax image and the fourth parallax image.
9 . The image processing apparatus according to claim 8 , wherein the first parallax image and the second parallax image are images corresponding to light beams passing through mutually different pupil areas in the first optical system, and
wherein the third parallax image and the fourth parallax image are images corresponding to light beams passing through mutually different pupil areas in the second optical system.
10 . An image pickup apparatus comprising:
an image sensor; and
the image processing apparatus according to claim 1 .
11 . An image processing apparatus comprising:
a memory storing instructions; and
a processor configured to execute the instructions to:
acquire first image data acquired by imaging via a first optical system and second image data acquired by imaging via a second optical system, and
switch between independently adjusting of refocus processing for the first image data and the second image data, and connectively adjusting of the refocus processing for the first image data and the second image data,
wherein the refocus processing is performed after the first and second image data are stored in the memory,
wherein the refocus processing is configured to reset a focal plane and re-composite the other of the first image data and the second image data using one of the first image data and the second image data as reference image data.
12 . The image processing apparatus according to claim 11 , wherein the processor is configured to display an index indicating an in-focus degree of the first image data and an index indicating an in-focus degree of the second image data.
13 . An image processing method comprising the steps of:
acquiring first image data acquired by imaging via a first optical system and second image data acquired by imaging via a second optical system, and
adjusting an in-focus degree difference between the first image data and the second image data by performing refocus processing for,
wherein the refocus processing is performed after the first and second image data are stored in the memory,
wherein the refocus processing is configured to reset a focal plane and re-composite the other of the first image data and the second image data using one of the first image data and the second image data as reference image data.
14 . A non-transitory computer-readable storage medium storing a program that causes a computer to execute the image processing method according to claim 13 .
15 . An image processing method comprising the steps of:
acquiring first image data acquired by imaging via a first optical system and second image data acquired by imaging via a second optical system, and
switching between independently adjusting of refocus processing for the first image data and the second image data, and connectively adjusting of the refocus processing for the first image data and the second image data,
wherein the refocus processing is performed after the first and second image data are stored in the memory,
wherein the refocus processing is configured to reset a focal plane and re-composite the other of the first image data and the second image data using one of the first image data and the second image data as reference image data.
16 . A non-transitory computer-readable storage medium storing a program that causes a computer to execute the image processing method according to claim 15 .