Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Rendering of 'random dot stereogram' image giving the illusion of 3D view.

License

Notifications You must be signed in to change notification settings

Bondoki/Stereogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stereogram

Rendering of 'random dot stereograms' for pseudo 3D view. This program provides routines for generating autostereogram. It's just for fun and educational purpose. Feel free to modify, improve, and use it :)

Try it out: you have to use the original size of 512px * 512px. Just, squint your eyes and try to focus behind the image:

Autostereogram|512

Here's the depth map of the incorporated image:

DepthMap|300

Installation

Variant A) Just do for standard compilation (tested with gcc 13.3.0):

    # generates the application
    g++ -o Stereogram Stereogram.cpp -lX11 -lGL -lpthread -lpng -lstdc++fs -std=c++17 -Wno-narrowing

    # run the application
    ./Stereogram

Variant B) Visit the PGETinker website with the running stereogram.

Variant C) Use your favorite browser and open the Stereogram.html.

Usage

Simply use the mouse to pan the image. There's no zoom because the autostereogram relies on "correct pixelation" and zooming would result in "blurred pixels".

Use the left mouse button to pan the image.

Use key Q for background image.
Use key W for depth map image.
Use key A for stereogram with shift/slice algorithm.
Use key S for stereogram with algorithm by Thimbleby,Inglis,Witten.
Use SPACE to toggle between both stereograms.
Use ENTER to save view to 'output.png'.

Use key ESC to quit the application.

References, License, Credit, Acknowledgment

The program acknowledge the libraries and refer to the appropriate licenses

About

Rendering of 'random dot stereogram' image giving the illusion of 3D view.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published