Skip to content

fix: decode 16UC depth images as uint16#115

Open
MiaoDX wants to merge 1 commit intoNVlabs:mainfrom
MiaoDX-fork-and-pruning:fix-cv-bridge-16uc-depth
Open

fix: decode 16UC depth images as uint16#115
MiaoDX wants to merge 1 commit intoNVlabs:mainfrom
MiaoDX-fork-and-pruning:fix-cv-bridge-16uc-depth

Conversation

@MiaoDX
Copy link
Copy Markdown

@MiaoDX MiaoDX commented Apr 20, 2026

Summary

  • fix the vendored Python cv_bridge type map for 16UC1..4 encodings
  • add a focused regression test that checks 16UC1 stays uint16 and preserves depth values

Why

The previous mapping decoded 16UC1 as uint8, which corrupts millimeter depth images and breaks downstream point cloud visualization.

Verification

  • python -m pytest decoupled_wbc/tests/control/utils/test_cv_bridge.py -q

@MiaoDX
Copy link
Copy Markdown
Author

MiaoDX commented Apr 24, 2026

@ZhengyiLuo PTAL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant