1. An electronic device, comprising: an imaging unit for capturing a subject; and a storage unit for storing therein an image captured by the imaging unit, wherein the image stored in the storage unit is an image that forms a three-dimensional image when displayed in combination with another image of the same subject stored in the storage unit; an angle detecting unit for detecting a relative rotation angle of the subject with respect to the imaging unit; and a shape detecting unit for detecting a shape of the subject, wherein the angle detecting unit is configured to detect the rotation angle of the subject based on a change in the shape of the subject detected by the shape detecting unit, and the storage unit is configured to further store therein the rotation angle of the subject detected, upon capturing the image, by the angle detecting unit.