Skip to main content

libSGM is a CNES version of H.Hirschmuller Semi-Global Matching

Project description

libSGM

Semi-Global Matching algorithm.

OverviewInstallUsageRelatedReferences

Overview

C++ implementation of Semi-Global Matching (SGM) algorithm that is wrapped with cython to provide a libsgm python module based on [Hirschmuller, 2008], [Ernst, Ines & Hirschmüller, 2008] and [Hirschmüller, Buder & Ernst, 2012].

Install

libsgm is available on Pypi and can be installed by:

pip install numpy
pip install libsgm

Usage

libSGM must be used as a package :

from libSGM import sgm_wrapper
...
cost_volumes_out = sgm_wrapper.sgm_api(cost_volume_in, p1, p2, directions, invalid_value, False, False)

Let's see pandora_plugin_LibSGM for real life exemple.

Related

Pandora - A stereo matching framework
Plugin_LibSGM - Stereo Matching Algorithm plugin for Pandora

References

Please cite the following paper when using libsgm:
Cournet, M., Sarrazin, E., Dumas, L., Michel, J., Guinet, J., Youssefi, D., Defonte, V., Fardet, Q., 2020. Ground-truth generation and disparity estimation for optical satellite imagery. ISPRS - International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences.

[Hirschmuller, 2008] H. Hirschmuller, "Stereo Processing by Semiglobal Matching and Mutual Information," in IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 30, no. 2, pp. 328-341, Feb. 2008. doi: 10.1109/TPAMI.2007.1166

[Ernst, Ines & Hirschmüller, 2008] Ernst, Ines & Hirschmüller, Heiko. (2008). Mutual Information Based Semi-Global Stereo Matching on the GPU. Proceedings of the International Symposium on Visual Computing. 5358. 10.1007/978-3-540-89639-5_22.

[Hirschmüller, Buder & Ernst, 2012] Hirschmüller, Heiko & Buder, Maximilian & Ernst, Ines. (2012). Memory Efficient Semi-Global Matching. ISPRS Annals of Photogrammetry, Remote Sensing and Spatial Information Sciences. I-3. 10.5194/isprsannals-I-3-371-2012.

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

libSGM-0.4.3.tar.gz (480.6 kB view details)

Uploaded Source

File details

Details for the file libSGM-0.4.3.tar.gz.

File metadata

  • Download URL: libSGM-0.4.3.tar.gz
  • Upload date:
  • Size: 480.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for libSGM-0.4.3.tar.gz
Algorithm Hash digest
SHA256 caef69ff51324d3335707ca26b393bb23686ce29f2eec53e87b8b5848378caf6
MD5 0c682552020a2492ed10d0b17ac029c4
BLAKE2b-256 227e714987b327c27032ceb8e69e205416420cf3d6423450cefbad31685bcc91

See more details on using hashes here.

Supported by

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