Skip to content

alelouis/autostereogram-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Autostereogram generation in Rust.

Original algorithm proposed in Displaying 3D Images: Algorithms for SIRDS by Harold W. Thimbleby, Stuart Inglis, and Ian H. Witten.

Autostereograms are 2D images with a special construct that enable 3D perception illusion. One need to vary the focus distance of its vision in order to see depth.

The two bins sirds.rs and texture.rs take as input a depth map (here inputs/depthmap.png) in grayscale. Values from 0 to 1 are mapped to object depth from far to near field.

  • SIRDS relates to the single image random dot stereogram method
  • texture uses an image texture (inputs/texture.png)

Below are examples of a depth map and the autostereogram generated with SIRDS and texture methods.

Depth image: alt text

Texture Autostereogram:
alt text

SIRDS Autostereogram:
alt text

About

Autostereogram generation in Rust

Topics

Resources

License

Stars

Watchers

Forks

Languages