Autostereogram
An autostereogram creates the visual illusion of a three-dimensional
scene from a single two-dimensional image [1]. The package austere3d
(AUtoSTEREogram) creates such images based on two input files (a
seamless wallpaper and a depth map):
Dependencies:
The package austere3d needs the python modules matplotlib, numpy,
PIL, scipy, tkFileDialog, Tkinter, tkMessageBox, and ttk.
Installation:
First, install the package with pip:
pip3 install austere3d
Next, find the location where the installed files are:
pip3 show -f austere3d
The location could be something like
$HOME/.local/lib/python3.6/site-packages/austere3d. Copy the whole
austere3d directory to a place where you have read and write access.
Usage:
This package provides three possibilities to create autostereograms: a command line tool, a GUI, and a GIMP plugin.
Command line version:
Run the command
austere.py
to create an autostereogram from the wallpaper quilt.png and the
depthmap cube.png. The output will be saved in the output
subdirectory.
Change the definitions of wallpaperfile and depthmapfile in the
python script to create other pictures. In addition, the values of
d_invert, d_factor and symmetry can be used to change the created
images.
GUI:
Run the command
austere-gui.py
to start the GUI. Select one of the wallpaper images from the
wallpaper directory and one of the depthmap images from the depthmap
directory.
GIMP plugin:
Copy the file austere-plugin.py into your GIMP plug-ins directory
(e.g., $HOME/.gimp-2.8/plug-ins).
Start GIMP. Open a wallpaper image (must be RGB mode without
transparency, i.e., no alpha channel). Open a depthmap image (must be
Grayscale mode). Then select the new item Autostereogram... in the
Filters/Render menu.
The GIMP plug-in is slower than the command line version or the GUI.
Implementation:
The algorithm used by austere3d is based on an article in the German
edition of Scientific American from 1995 [2].
See depthmap/README for more information about depth maps.
See wallpaper/README for more information about seamless wallpapers.
References:
[1] Wikipedia. Autostereogram https://en.wikipedia.org/wiki/Autostereogram
[2] M. Simeth and R. Sander. Mathematische Unterhaltungen: Der kleine Hobbit und das Autostereogramm. Spektrum der Wissenschaft, Jan., 10-15 (1995) http://www.spektrum.de/magazin/der-kleine-hobbit-und-das-autostereogramm/822061
Metadata
Release files for austere3d 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| austere3d-1.0.1.tar.gz | 1.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| austere3d-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 MB
Release files / austere3d-1.0.1.tar.gz
| Download URL | austere3d-1.0.1.tar.gz |
|---|---|
| Size | 1.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d12df31aa5c4aef5e6a3b8fc781e26d3f4cab4f05fed0aae6a015ac32cb9fb6f
|
|
BLAKE2b-256 checksum How to use checksums |
189ea3173d1d9ff1f1a6e388338ec690d26f1470f4687aa3800e4223fed8ce26
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
|
Release files / austere3d-1.0.1-py3-none-any.whl
| Download URL | austere3d-1.0.1-py3-none-any.whl |
|---|---|
| Size | 1.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be7bd64addda9378e908101957cb46610eb94c3df12e06860b5874292d9133a0
|
|
BLAKE2b-256 checksum How to use checksums |
fed4e0a2530f8d994e3c3f1fa0fe678dd4f158bd3ecc1394dcb9690b8b4b95ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.1 setuptools/54.2.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.6.9
|