Skip to main content

Nearest neighbor interpolation for disparity images with missing parts.

Project description

Python 3.7 Python 3.8 Python 3.9 License: MIT Linux CI

Fast nearest-neighbor interpolation of disparity maps using Cython

Some stereo matching methods such as Semi-Global Matching (SGM) might provide sparse disparity maps, meaning that some pixels will not have valid disparity values. In those cases, an interpolation of the predicted disparity map might be needed for evaluation against semi-dense ground-truth, as in the KITTI Stereo 2015 benchmark.

Usage example:

import disparity_interpolation


def interpolate_disparity(disparity_map: np.array) -> np.array:
    """Intepolate disparity image to inpaint holes.
       The expected run time for a stereo image with 2056 × 2464 pixels is ~50 ms.
    """
    # Set the invalid disparity values defined as "0" to -1.
    disparity_map[disparity_map == 0] = -1
    disparity_map_interp = disparity_interpolation.disparity_interpolator(disparity_map)

    return disparity_map_interp

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

disparity_interpolation-1.0.5-cp39-cp39-win_amd64.whl (70.9 kB view details)

Uploaded CPython 3.9Windows x86-64

disparity_interpolation-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64

disparity_interpolation-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl (67.3 kB view details)

Uploaded CPython 3.9macOS 10.9+ x86-64

disparity_interpolation-1.0.5-cp38-cp38-win_amd64.whl (71.6 kB view details)

Uploaded CPython 3.8Windows x86-64

disparity_interpolation-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.2 MB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64

disparity_interpolation-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl (69.3 kB view details)

Uploaded CPython 3.8macOS 10.9+ x86-64

disparity_interpolation-1.0.5-cp37-cp37m-win_amd64.whl (69.9 kB view details)

Uploaded CPython 3.7mWindows x86-64

disparity_interpolation-1.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.7mmanylinux: glibc 2.17+ x86-64

disparity_interpolation-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl (69.4 kB view details)

Uploaded CPython 3.7mmacOS 10.9+ x86-64

File details

Details for the file disparity_interpolation-1.0.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 70.9 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 fa91744d87ec534b50ee305ca744d82fdf894796930ecafff0f8dd734536e64b
MD5 4eb40399ae6f8c9bdffad58c4d7428aa
BLAKE2b-256 4063b359f382d3490bbdfce429386157d96770cad626b5a1a297d856380be6e1

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for disparity_interpolation-1.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b1a3b452e42b2b28bc6e6ce389c83f52cd71cf52cabc453171de66631b1cf291
MD5 23bbdcad46d51d8c1a630dd262057b02
BLAKE2b-256 44136fe158020d00ca626a0fff4c6fbcbf254f676c959cfd6a82ffde9fdb2570

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 67.3 kB
  • Tags: CPython 3.9, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp39-cp39-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 e947545655676501dfcbc117daed0ff3f0ae8cd91ab54d4d4f1ba6517fd2f088
MD5 7db0dfe26f9b61387b6badfbe16dcf2b
BLAKE2b-256 0fae61d84cdfe99e11ffc06f7688eb9357df099b47c38e3409c5b9dada045caf

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 71.6 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 90d67a5a317cdda0e07ea90b2633c724ecd7a817e96ac857d1c49bf14991cd03
MD5 7c0f5de96095fe82db9800a3e7b316aa
BLAKE2b-256 7844d8f615e3c4f44b3ae48571772db1c66bcf32e8c53b11452378267b47db3a

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for disparity_interpolation-1.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 90897efa2d5832f26a7f0f9cac7938fd6a14d76c418f36fcaa395ed375f9b27a
MD5 7464a3015afac31d49d071301941f92e
BLAKE2b-256 6f210aaae6a4c3368eb372436d65bd700cdf6a6bef531ab666070b461fee5401

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 69.3 kB
  • Tags: CPython 3.8, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 0f6428701823d7fa7ae9856cc2850f18b8cf98d4f1b0240b0ea5f2105c9cd8e6
MD5 0da2d43dd6a30837f08dff831de22b63
BLAKE2b-256 7c50f1f54925a072a2730899f98eb9309395a3ce0b0ef146268ae99e95fb6414

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 69.9 kB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 fc5aaf5e06656afcb4bcf00ff2068e38b601e602c7093b12f2a21a3609b8828b
MD5 6179f543a869f6ea08f26b4d622117db
BLAKE2b-256 417acd1de8f955589716dc00138d99a89576e79a902e40a2bf6014232e614b68

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for disparity_interpolation-1.0.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a2d0b87fddcca1c70dc90a37defbd40f23dad9953774721d9ce1242bdc404e1e
MD5 59e52f243b673338e25466bd91213c9c
BLAKE2b-256 81b8e3089c855cf624247c624216bf48bd6027c16a327db142e0b7ae7a1fd064

See more details on using hashes here.

File details

Details for the file disparity_interpolation-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl.

File metadata

  • Download URL: disparity_interpolation-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 69.4 kB
  • Tags: CPython 3.7m, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for disparity_interpolation-1.0.5-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 eca27fab1a7c1d7fe966620690c6a57ce004541d23bb6f5d88b90e37a5c86d7b
MD5 0c50348658660b4673b885fbda55ae50
BLAKE2b-256 7550c51b254bb1a3c0de6fbe557cfcfaca4475ccd16dd8b0159f97e4cef00a82

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