An electronic apparatus, comprising: an irradiation section configured to perform irradiation with irradiation light; a diffuser plate configured to diffuse the irradiation light; an imaging section (118; 300) configured to image an object and capture image data; a distance measurement section configured to measure distances from the imaging section (118; 300) to a plurality of measurement points on a surface of the object, the measurement points on the surface of the object being points irradiated with the diffused irradiation light; a shape estimation section configured to estimate a shape of the object from the measured distances; and a coordinate conversion section configured to perform coordinate conversion on the image data, the coordinate conversion including converting three-dimensional coordinates on the surface of the object into plane coordinates on a predetermined reference plane on the basis of the estimated shape, wherein the distance measurement section is configured to measure the distances from a phase difference between reflected light of the irradiation light and the irradiation light, and wherein the irradiation section is configured to select spotlight or diffused light according to a predetermined operation by a user of an operation element that is operable in at least two stages to cause, respectively, insertion of the diffuser plate in or removal of the diffuser plate from an optical path of the irradiation light, and to perform irradiation with the selected light as the irradiation light, and the distance measurement section is configured to measure the distances when irradiation is performed with the diffused light. an irradiation section configured to perform irradiation with irradiation light; a diffuser plate configured to diffuse the irradiation light; an imaging section (118; 300) configured to image an object and capture image data; a distance measurement section configured to measure distances from the imaging section (118; 300) to a plurality of measurement points on a surface of the object, the measurement points on the surface of the object being points irradiated with the diffused irradiation light; a shape estimation section configured to estimate a shape of the object from the measured distances; and a coordinate conversion section configured to perform coordinate conversion on the image data, the coordinate conversion including converting three-dimensional coordinates on the surface of the object into plane coordinates on a predetermined reference plane on the basis of the estimated shape, wherein the distance measurement section is configured to measure the distances from a phase difference between reflected light of the irradiation light and the irradiation light, and wherein the irradiation section is configured to select spotlight or diffused light according to a predetermined operation by a user of an operation element that is operable in at least two stages to cause, respectively, insertion of the diffuser plate in or removal of the diffuser plate from an optical path of the irradiation light, and to perform irradiation with the selected light as the irradiation light, and the distance measurement section is configured to measure the distances when irradiation is performed with the diffused light.