Skip to main content

Stereo matching and image reprojection

Project description

Bob IP Stereo

This package is part of the signal-processing and machine learning toolbox Bob.

This package implements stereo mapping and projection functionalities and provides them as to easiily integrate them in processing pipelines.


Complete bob’s installation instructions. Then, to install this package, run:

$ conda install bob.ip.stereo


Here is an example of how to use the package to load data recorded with 3 different cameras, build a depth map using 2 of them and use it to project the third camera’s data.

# Import Stream and StreamFile classes
# Generic processing filters are available through the Stream class
from import StreamFile, Stream

# Import bob.ip.stereo: this updates the Stream class with the stereo filters
# It also upates the StreamFile class to allow to set camera configuration information.

f = StreamFile(
   resource_path("test/data/input_example.h5", ""),
   resource_path("config/idiap_face_streams.json", ""),

# stream for stereo and projection tests
color = Stream("color", f)
nir_left = Stream("nir_left_stereo", f).adjust(color)
nir_right = Stream("nir_right_stereo", f).adjust(color)

# reproject operations
map_3d = nir_left.stereo(nir_right)
depth ="jet")
rep_color = color.reproject(nir_left, nir_right, map_3d)

# Use the stereo data:
rep_color[0:2]  # ...


For questions or reporting issues to this software package, contact our development mailing list.

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 (34.6 MB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page