Depth Map from Samsung Gallaxy M33 Photos

If you shoot with an Samsung Galaxy M33 in the "Portrait" mode Samsung saves three
images inside one jpeg. The first one is the one you see if you open the photo with any application. The second one is the image without any filter applied and the third one is the shot from the depth map camera.


Main Image
Main Image


You can get the images from all cameras with the command line tool "exiftool".

First you can check with this commands, if the image contains any additional images:

 "exiftool(-k).exe" 20220921_091253.jpg "-embedded*" -a
Embedded Image Name : DualShot_1
Embedded Image      : (Binary data 2449408 bytes, use -b option to extract)
Embedded Image Name : DualShot_2
Embedded Image 2    : (Binary data 576210 bytes, use -b option to extract)
-- press ENTER --

And with this command you can check for a depth map:


"exiftool(-k).exe" 20220921_091253.jpg -"*depth*"
Depth Map Name      : DualShot_DepthMap_1
Depth Map Data      : (Binary data 779280 bytes, use -b option to extract)
Depth Map Width     : 1020
Depth Map Height    : 764
Depth Map Tiff      : (Binary data 779484 bytes, use -b option to extract)
-- press ENTER --

 

You can extract the image with effects/blur with this command, but it will look the same then the main image:

"exiftool(-k).exe" -embeddedimage -b -W %f_embedded%.nc.jpg 20220921_091253.jpg
    1 output files created
-- press ENTER --  

 

Main Image
Image with effects/blur


To get the image without blur you can use this command:

"exiftool(-k).exe" -trailer:all= -o %f_blurred%.nc.jpg 20220921_091253.jpg
    1 image files created
-- press ENTER --

 

Image without blur
Image without blur




The last image is the depth map. It is only 1/4 the size of the other two images (1020x764) and is not automatically rotated. 

And to get the depth map you need to enter this command:

"exiftool(-k).exe" -b -DepthMapTiff 20220921_091253.jpg -W %f_depthmap.tiff
    1 output files created
-- press ENTER --


Depth Map
Depth Map

Note: Portrait Mode photos on the phone need to be taken with the Rear Camera. Portrait Photos taken on the front cameras do not save the depth map.


Kommentare

Beliebte Posts aus diesem Blog

Low polygon 3D europe map

Maps for Photo Books

Depth Map from Gallaxy S10 Photos