Skip to main content

Stereo matching and image reprojection

Project description

https://img.shields.io/badge/docs-v1.0.0-yellow.svg https://img.shields.io/badge/docs-latest-orange.svg https://gitlab.idiap.ch/bob/bob.ip.stereo/badges/v1.0.0/build.svg https://gitlab.idiap.ch/bob/bob.ip.stereo/badges/v1.0.0/coverage.svg https://img.shields.io/badge/gitlab-project-0000c0.svg https://img.shields.io/pypi/v/bob.ip.stereo.svg

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 bob.io.stream.StreamFilter to easiily integrate them in processing pipelines.

Installation

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

$ conda install bob.ip.stereo

Example

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 bob.io.stream 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", "bob.io.stream"),
   resource_path("config/idiap_face_streams.json", "bob.io.stream"),
)
f.set_camera_configs(resource_path("config/idiap_face_calibration.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 = map_3d.select(channel=2).colormap(colormap="jet")
rep_color = color.reproject(nir_left, nir_right, map_3d)

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

Contact

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

bob.ip.stereo-1.0.0.zip (34.6 MB view details)

Uploaded Source

File details

Details for the file bob.ip.stereo-1.0.0.zip.

File metadata

  • Download URL: bob.ip.stereo-1.0.0.zip
  • Upload date:
  • Size: 34.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.7.1 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.1

File hashes

Hashes for bob.ip.stereo-1.0.0.zip
Algorithm Hash digest
SHA256 6008586bc73a4159cc05933f2932560cf9837ba0518341cfee9f7ffaed9ce9ab
MD5 7cf24caaa8c38c5eeaf5cf5c660a0624
BLAKE2b-256 6dbbe09d030e66d05ae378252bc6ad6b0f338b0517bd4bcec008a9083a9c0afc

See more details on using hashes here.

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