Skip to content

spite/android-lens-blur-depth-extractor

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
April 17, 2014 11:53
July 28, 2016 13:18
July 28, 2016 13:02
July 28, 2016 13:16
April 17, 2014 21:03

LensBlurDepthExtractor.js

This library parses images created with the new Android camera app mode Lens Blur and extracts the depth map.

Extractor tool is here: https://clicktorelease.com/tools/lens-blur-depth-extractor

Demo is here: https://www.clicktorelease.com/code/depth-player/

Snapshot

How to use

Include the library:

<script src="LensBlurDepthExtractor.js" ></script>

Instantiate an object:

var d = new DepthReader();

Load from a file:

d.loadFile( 
    'table.jpg', 
    function( src ) { /* src is base64 png source */ }, 
    function( error ) { /* error is a string */ } 
);

Or, load directly from an array buffer

d.parseFile( 
    arrayBuffer, 
    function( src ) { /* src is base64 png source */ }, 
    function( error ) { /* error is a string */ } 
);

License

MIT licensed

Copyright (C) 2016 Jaume Sanchez Elias http://twitter.com/thespite

Table picture by https://twitter.com/blurspline

http://www.clicktorelease.com

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published