7 ms·
There already is a library for extracting the depth map here: https://github.com/spite/android-lens-blur-depth-extractor https://github.com/spite/android-lens-b
by panrafal 12y ago
There already is a library for extracting the depth map here:
https://github.com/spite/android-lens-blur-depth-extractor https://github.com/spite/android-lens-blur-depth-extractor (internet rocks, isn't it ;) )
As for the Shader - it's just a few lines of actual code.
Depthy is a quick weekend hack. There's a loong way before it.
- aantix 12y agoHas anyone managed to replicate the lens blur effect that's being utilized in the new Android camera app? Or at least know what research paper it's based on?
- panrafal 12y agoYes, here: http://jabtunes.com/labs/lensblur/index3.html http://jabtunes.com/labs/lensblur/index3.html and here: http://quasimondo.com/QuasimondoLibsJS/demos/DepthMapLensBlur.html http://quasimondo.com/QuasimondoLibsJS/demos/DepthMapLensBlu...
- comex 12y agoThat seems to just be using the depth map information stored by the app, not replicating the effect from scratch.