I know of course, I can do it with the camera app on the phone if the "Aperture mode" has been activated. Is it possible to refocus such image once it's downloaded from the camera? How?
3 Answers
Pretty much, no. The Huawei P9's dual cameras are actually capturing two entirely separate images and then combining them, with a bit of software processing, to simulate the effect of adjusting focus. On the assumption that you're downloading a JPEG or similar from the camera, you've reduced yourself to just one image and thrown away the extra information you need do this kind of modification.
-
1\$\begingroup\$ Complete rubbish, the data is all kept within the jpeg file, see below. \$\endgroup\$ Commented Aug 14, 2017 at 14:38
-
\$\begingroup\$ I had to do with two dual caamera smartphones (none of them was Huawei P9, but still one was a Huawei). If you download such a "3D" image from them, the size of it is up to 4 times greater than size of a regular jpeg. So I think that the needed information is still in the file, you just have to find some tool to make use of it. \$\endgroup\$– ZenitCommented Aug 14, 2017 at 15:50
If you save the original picture to your computer then the information is still there. Use this tool to refocus on your computer:
-
\$\begingroup\$ Thanks for the link to the program, however, the quality of the output is much worse than produces the P9 phone (parts of background are sharp and the photo doesn't look natural). \$\endgroup\$– lopisanCommented Jan 15, 2018 at 8:58
Felix's suggestion is more user friendly, but if you want a simpler, command line solution which just separates out the various frames of data you can try: