Create your own AUtoSTEREograms
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file austere3d-1.0.1.tar.gz.
File metadata
- Download URL: austere3d-1.0.1.tar.gz
- Upload date:
- Size: 1.9 MB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d12df31aa5c4aef5e6a3b8fc781e26d3f4cab4f05fed0aae6a015ac32cb9fb6f
|
|
| MD5 |
68680d8c8f5b73519b380ebfe3422b50
|
|
| BLAKE2b-256 |
189ea3173d1d9ff1f1a6e388338ec690d26f1470f4687aa3800e4223fed8ce26
|
File details
Details for the file austere3d-1.0.1-py3-none-any.whl.
File metadata
- Download URL: austere3d-1.0.1-py3-none-any.whl
- Upload date:
- Size: 1.9 MB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be7bd64addda9378e908101957cb46610eb94c3df12e06860b5874292d9133a0
|
|
| MD5 |
0d02b6108357e52101ee432317f39151
|
|
| BLAKE2b-256 |
fed4e0a2530f8d994e3c3f1fa0fe678dd4f158bd3ecc1394dcb9690b8b4b95ca
|