Skip to content

Instantly share code, notes, and snippets.

@andijakl
Last active April 20, 2022 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andijakl/7c3f621ff9aa449c93fd6c82f10eb737 to your computer and use it in GitHub Desktop.
Save andijakl/7c3f621ff9aa449c93fd6c82f10eb737 to your computer and use it in GitHub Desktop.
Code to show a colored version of the (non-normalized) disparity map. Full article for context and remaining code: https://www.andreasjakl.com/how-to-apply-stereo-matching-to-generate-depth-maps-part-3
plt.imshow(disparity_SGBM, cmap='plasma')
plt.colorbar()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment