Monday, February 13, 2017

Depth Map Automatic Generator 11 (DMAG11)

DMAG11 is a joint bilateral filter which can be used to "densify" a sparse depth map in the context of 2d to 3d image conversion.

The input to DMAG11 (in terms of image files) is a reference image and a (sparse) depth map where some depths have been scribbled upon. DMAG11 can be used to convert 2d images into 3d as an alternative to Depth Map Automatic Generator 4 (DMAG4) and Depth Map Automatic Generator 9 (DMAG9).

Here's an example:


Reference image.


Sparse depth map (input).


Dense depth map (output).

My good friend, Ocean Quigley, has taken the time to write a step-by-step guide to using dmag11: Step by step with DMAG11.

The windows executable (guaranteed to be virus free) is available for free via the 3D Software Page.

UPDATE (03/03/2020): I now recommend using 2d to 3d Image Conversion Software - the3dconverter2 for 2d to 3d conversion over DMAG11.

24 comments:

  1. hi its showing.. program not supported. what shouls have to do?

    ReplyDelete
    Replies
    1. Are you following the instructions given in dmag11_manual.pdf? Are you on 64 bit windows? If yes, then can you send me a screenshot of the error you are getting. If you want, you can use DMAG4, it's pretty much the same thing. Feel free to send me your input files and dmag11_input.txt file and I can try it here on my machine. Thanks.

      Delete
  2. how to generate Sparse depth map (input)
    i tried photoshop and saved the image as png and it gives me nothing
    the cmd starts and run everything then the we loading images it suddenly print "A" and close

    ReplyDelete
    Replies
    1. Hi:
      Please send me your sparse depth map and reference image and I will check it out.

      Delete
    2. Also please send me your dmag11_input.txt and dmag11.bat if you don't mind. Thanks in advance. Note that you could also use dmag4 as an alternative as it is probably easier to run.

      Delete
  3. This comment has been removed by the author.

    ReplyDelete
  4. I've been steering people towards this tool for making depth maps for 3D Photos in FB. It's so much better than doing it by hand in Photoshop

    ReplyDelete
    Replies
    1. Wow that's awesome Ocean. Thank you so much. One can also use dmag4 for semi-automatic 2d to 3d conversion.

      Delete
  5. I've put together an illustrated step-by-step here, for various people that have been asking how to use it. Feel free to copy it / post it if that would be useful:
    https://oceanquigley.blogspot.com/2018/11/step-by-step-with-dmag11.html?fbclid=IwAR2LBKMs9We10LcX8I96mhOzbUuAXMUmIzGCxsT63rgdFM-U4MQY5TD3u8c

    ReplyDelete
  6. (once more, with the proper step-by-step URL)
    https://oceanquigley.blogspot.com/2018/11/step-by-step-with-dmag11.html

    ReplyDelete
    Replies
    1. Wow, that's much better than what I have in the manual. Thanks for doing this. I added the link to your tutorial in the dmag11 post.

      Delete
  7. What an amazing tool! Well done! I need your help if you could help me with a problem that I'm experiencing though. I followed Ocean's tutorial and I just can't get a depth map output. Dmag processes the two files but it stops just before it calculates the iterations. Also, I must say that in order to get the dmag11.bat file to run (the one that shares the same folder with the reference image and the sparse image) I had to put that folder inside the the main folder where the dmag11 and all the other files are or it wouldn't run and not in a different, separate folder.

    ReplyDelete
    Replies
    1. The executable can be put wherever as long as it is properly referenced in the .bat file. Dmag11 might stop and complain if the sparse depth map pixels are not either fully transparent or fully opaque (that is, there is some anti-aliasing going on in the sparse depth map). Send me your dmag11.bat file, the dmag11_input.txt file, and the 2 input images and i should be able to help you better.

      Delete
  8. Thank you for the prompt reply and instructions. I checked a few things in my folders and the problem is solved.

    ReplyDelete
    Replies
    1. Does dmag11 still stop? Usually, it's because of anti-aliasing (some pixels are not fully opaque). In gimp, it's very easy to get rid of those using Layer->Transparency->Threshold Alpha as explained in the dmag4 post or in dmag11_manual.pdf that should be in the directory where you extracted the stuff. In photoshop, i am not sure how to do it. Maybe ask Ocean.

      Delete
  9. Hi Ugo, awesome work - I don't have windows is there any possibility of paying to have a range of depth maps created for 10 images I have? Cheers

    ReplyDelete
  10. hey!!!! please help how i can get DMAG setup

    ReplyDelete
    Replies
    1. Follow what's explained here: https://oceanquigley.blogspot.com/2018/11/step-by-step-with-dmag11.html

      Delete
  11. Hello, is there a version in French or a tutorial or a PDF? does the software work with Gimp and Blender?
    Thank you for your answers
    Regards

    ReplyDelete
    Replies
    1. i think it's better to use software called the3dconverter2. here's a video about it: https://youtu.be/wD3HgvZZ8O0. you use gimp to produce the input files the software needs. it's not a plugin.

      Delete
  12. Hello, is there a version in French or a tutorial or a PDF? does the software work with Gimp and Blender?
    Thank you for your answers
    Regards

    ReplyDelete
  13. https://www.facebook.com/photo/?fbid=4285142634861985
    you can see this image interactive

    ReplyDelete