Electronic device, method for controlling electronic device, and non-transitory computer-readable medium
An electronic device includes: a processor; and a memory storing a program which, when executed by the processor, causes the electronic device to: execute acquisition processing to acquire information on a distance from an imaging device to an object; execute control processing to control notification of a relationship between a recommended distance and the distance from the imaging device to the object, the recommended distance representing a photographing distance that enables three-dimensional viewing of a captured image containing two image regions with parallax relative to each other; and execute setting processing to set whether to display information showing the relationship between the recommended distance and the distance from the imaging device to the object.
1 . An electronic device comprising:
a processor; and
a memory storing a program which, when executed by the processor, causes the electronic device to:
execute acquisition processing to acquire information on a distance from an imaging device to an object;
execute control processing to control notification of a relationship between a recommended distance and the distance from the imaging device to the object, the recommended distance representing a photographing distance that enables three-dimensional viewing of a captured image containing two image regions with parallax relative to each other;
execute setting processing to set whether to display information showing the relationship between the recommended distance and the distance from the imaging device to the object; and
execute adjustment processing to adjust the recommended distance,
wherein the information on the recommended distance is adjusted based on an inter-pupil distance of a user, and
wherein the recommended distance is adjusted to be longer in a case where the inter-pupil distance is shorter than a reference value for the inter-pupil distance and the recommended distance is adjusted to be shorter in a case where the inter-pupil distance is longer than the reference value.
2 . The electronic device according to claim 1 , wherein
the information on the distance from the imaging device to the object is acquired based on a focal length of the imaging device.
3 . The electronic device according to claim 1 , wherein
the information on the distance from the imaging device to the object is acquired based on the parallax between the two image regions.
4 . The electronic device according to claim 1 , wherein
the information on the distance from the imaging device to the object is acquired based on phase difference information output from an image-plane phase difference sensor of the imaging device.
5 . The electronic device according to claim 1 , wherein
the information on the distance from the imaging device to the object is acquired based on output from a time of flight (TOF) sensor of the imaging device.
6 . The electronic device according to claim 1 , wherein the processor, further causes the electronic device to:
execute second acquisition processing to acquire information on the recommended distance.
7 . The electronic device according to claim 6 , wherein
the information on the recommended distance is acquired based on a baseline length representing a distance between two optical systems that capture the two image regions, respectively.
8 . The electronic device according to claim 6 , wherein
the information on the recommended distance is acquired from a lens unit, which has two optical systems that respectively capture the two image regions and is attached to the imaging device.
9 . The electronic device according to claim 6 , wherein
the information on the recommended distance that is retained in advance by the imaging device is acquired.
10 . The electronic device according to claim 1 , wherein
the recommended distance is adjusted based on an instruction of a user.
11 . The electronic device according to claim 1 , wherein
the information on the recommended distance includes a range of the photographing distance that enables the three-dimensional viewing of the captured image containing the two image regions.
12 . The electronic device according to claim 1 , wherein
coloring of the two image regions is controlled based on the relationship between the recommended distance and the distance from the imaging device to the object.
13 . The electronic device according to claim 1 , wherein
the control processing further executes control display of an item that shows a positional relationship between the recommended distance, the object, and the imaging device.
14 . The electronic device according to claim 1 , wherein
the control processing further executes control display of text information that shows the relationship between the recommended distance and the distance from the imaging device to the object.
15 . The electronic device according to claim 1 , wherein
notification of the relationship between the recommended distance and the distance from the imaging device to the object is controlled for each block within the two image regions.
16 . A method for controlling an electronic device, the method comprising:
acquiring information on a distance from an imaging device to an object;
controlling notification of a relationship between a recommended distance and the distance from the imaging device to the object, the recommended distance representing a photographing distance that enables three-dimensional viewing of a captured image containing two image regions with parallax relative to each other;
setting whether to display information showing the relationship between the recommended distance and the distance from the imaging device to the object; and
adjusting the recommended distance,
wherein the information on the recommended distance is adjusted based on an inter-pupil distance of a user, and
wherein the recommended distance is adjusted to be longer in a case where the inter-pupil distance is shorter than a reference value for the inter-pupil distance and the recommended distance is adjusted to be shorter in a case where the inter-pupil distance is longer than the reference value.
17 . A non-transitory computer-readable medium storing a program, wherein the program causes a computer to execute a method for controlling an electronic device, the method comprising:
acquiring information on a distance from an imaging device to an object;
controlling notification of a relationship between a recommended distance and the distance from the imaging device to the object, the recommended distance representing a photographing distance that enables three-dimensional viewing of a captured image containing two image regions with parallax relative to each other;
setting whether to display information showing the relationship between the recommended distance and the distance from the imaging device to the object; and
adjusting the recommended distance,
wherein the information on the recommended distance is adjusted based on an inter-pupil distance of a user, and
wherein the recommended distance is adjusted to be longer in a case where the inter-pupil distance is shorter than a reference value for the inter-pupil distance and the recommended distance is adjusted to be shorter in a case where the inter-pupil distance is longer than the reference value.