Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.08 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.08 KB

imagic

"Image Magic" autostereogram generator.

Go Import

import (
    "github.com/cartland/imagic"
)

Hosted Service

Try it online at https://imagic-golang.appspot.com.

Or try this curl request from a directory with Chefchaouen.jpg and borrodepth.png:

curl -F "[email protected]" -F "[email protected]" https://imagic-golang.appspot.com/generate -o file_output.png

curl "https://imagic-golang.appspot.com/generate?background=http%3A%2F%2Fwww.chriscartland.com%2Fstatic%2FChefchaouen.jpg&depth=http%3A%2F%2Fwww.imsc.res.in%2F~kapil%2Fgeometry%2Fborr%2Fborrodepth.png" -o url_output.png

Source in /appengine.

Command Line

go get github.com/cartland/imagic/imagic
imagic -d borrodepth.png -b Chefchaouen.jpg -o output.png [-c] [-i]

Source in /imagic.

Output Autostereogram Input Depth Map Input Background

Depth map image borrowed from http://www.imsc.res.in/~kapil/geometry/borr/borrodepth.png.