Skip to main content

A library supporting efficient stereogram image computation.

Project description

pystereogram: a python library to compute auto-stereogram

pystereogram is a library that can help you compute stereogram from depth image efficiently. The performance goal of this library is to support real-time stereogram computation on small devices like raspberry pi.

The algorithm implemented in this package is the abSIRD algorithm, which is then accelerated with cython.

Usage

from autostereogram.converter import StereogramConverter
from skimage import color
import matplotlib.image as mpimg

source_image = mpimg.imread('cube.jpg')
image_data = np.array(source_image * 255, dtype=int)

converter = StereogramConverter()
result = converter.convert_depth_to_stereogram(image_data).astype(np.uint8)

Reference

https://www.mathworks.com/matlabcentral/fileexchange/27649-absird-for-matlab

https://www.cs.waikato.ac.nz/~ihw/papers/94-HWT-SI-IHW-SIRDS-paper.pdf

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pystereogram-0.0.20.tar.gz (118.2 kB view hashes)

Uploaded Source

Built Distribution

pystereogram-0.0.20-cp38-cp38-macosx_10_9_x86_64.whl (81.4 kB view hashes)

Uploaded CPython 3.8 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page