Jump to content

nokia 9 pureview depth map


Recommended Posts

I know HEIF files can be loaded into Affinity Photo and that if it contains a depth map that map will be loaded as a second layer, not sure about DNG.

Do you have Affinity Photo? 

If yes I'd say try it

If no download the trial or upload one and we'll have a go.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Thanks, I do have AP and I did notice the HEIF announcement... I found a website to convert;

https://convertio.co/dng-heif/

but it converted a 40Mb to a 300K image so don't have a lot of confidence in it.

With heif, jpg or dng - nothing is jumping out as a depth map channel or mask, and the only photoshop method I saw and tried was applying a lens blur and selecting 'depth map'.

Thanks for the offer - I have attached 2 jpegs showing the point of focus differences achieved within the phone app, and a dng. Oh, and a heif file.

It may be worth pointing out that the phone app can refocus the JPGs, but it doesn't give that option for the DNGs, and there's very little information that this is even possible. It'd be nice to confirm if the data is within the raw photo though, for future editing.

 

IMG_20191030_104312.dng

IMG_20191030_104312~2.jpg

IMG_20191030_104312~3.jpg

IMG_20191029_120154.heif

Link to comment
Share on other sites

Hi, HEIF file downloads OK but the DNG seems corrupt.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

OK. I've put it up as a zip which would hopefully reveal any corruption. I can open it fine in Photo.

The 2 jpegs do have depth maps when I open them in https://www.photopea.com/

I'm still trying to confirm with nokia that the DNGs do have depth data but I'm not sure of any apps that can confirm it... I'm wondering whether the solution will end up as a photoshop plugin which may work in Photo.

IMG_20191030_104312.zip

Link to comment
Share on other sites

I can't see any reference to a depth field in the exif data. I basically used exiftool from terminal, I'd already got exiftool installed and it gives a pretty comprehensive list of the exif data but nothing showing for a depth map. I found a few posts trying to go a bit more in-depth < excuse the pun, about the depth maps but they didn't get far, other than the JPEG has 255 layers on the depth map and the DNG goes to just over 1000 layers.

To use exiftool:

  1. Download and install if not already installed
  2. Open Terminal
  3. Type exiftool and then a space
  4. Drag file onto terminal window and press return/enter.

A long list of exif data will be shown but nothing in there refers to depth maps.

Found this post and I've asked about the DNG files: https://photo.stackexchange.com/questions/86286/how-to-extract-depth-information-from-jpeg-files/112837#112837

Might be an idea if one of the mods could help out and take a look at the DNG.

I'd also follow up on here for help re trying to extract the depth file: http://u88.n24.queensu.ca/exiftool/forum/ every little helps ;)

 

 

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

I think that confirms there is no (obvious) depth data in the DNG so I've decided to give up on that for now because exiftool has made another way obvious... I realised depth data can be extracted from the JPEG using exiftool and used alongside the DNG in Photo. 

My first attempt at extracting the data is partially successful but then I've gone back to photopea.com to get a good copy just to see what I can do with it once extracted. 

So I have a greyscale JPEG in one Photo tab and the DNG in another and tried the following:

1) added gaussian blur layer on DNG

2) copied/pasted jpeg map as 3rd layer

3) then rasterised to layer mask and put as child to blur layer

It comes out pretty good, although I feel as though I should be able to paste the jpeg layer as the mask within the blur layer itself, rather than adding a mask to the blur layer... I'm sure this is in a youtube tutorial.

It makes the 'black' in the mask is near and in focus, greys midway focus and white blurred - like a normal mask.... I can invert this and get the background in focus but can you suggest how I can pick a mid-point/mid-grey as the point that has focus?

Thanks a lot for your help getting this far...

 

Link to comment
Share on other sites

No problem, glad you are getting something, maybe the people at photo pea can push this forward too. Like you say could be a good youtube tut do, I dare bet there are many people who'd like to see this worked out.

iMac 27" 2019 Sequoia 15.0 (24A335), iMac 27" Affinity Designer, Photo & Publisher V1 & V2, Adobe, Inkscape, Vectorstyler, Blender, C4D, Sketchup + more... XP-Pen Artist-22E, - iPad Pro 12.9  
B| (Please refrain from licking the screen while using this forum)

Affinity Help - Affinity Desktop Tutorials - Feedback - FAQ - most asked questions

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.