Skip to content

Support Inverted Depth compression (with png or rvl) - #1785

Merged
matlabbe merged 7 commits into
masterfrom
depth-inverse-compression
Oct 4, 2026
Merged

matlabbe merged 7 commits into
masterfrom
depth-inverse-compression

Conversation

@matlabbe

@matlabbe matlabbe commented Oct 3, 2026 •

Copy link
Copy Markdown
Member

See updated parameter description of Mem/DepthCompressionFormat:

Depth image compression format. It should be ".png" or ".rvl", optionally followed by ":maxDepth[:quantization]" (e.g., ".rvl:10:100", quantization is 100 by default) to compress 32FC1 depth images as 16 bits inverse depth with that codec (same quantization than ROS's compressed_depth_image_transport). 16UC1 depth images are always compressed losslessly with the codec. Warning: the inverse depth format is lossy, the precision is ~d^2/(2q(q+1)) (q=quantization, e.g., 0.05 mm at 1 m and 5 mm at 10 m with q=100) and depth values over maxDepth or under ~q*(q+1)/65535 meters (0.15 m with q=100) are lost. Without depth parameters, 32FC1 depth images are compressed losslessly in ".png" format (4 channels 8 bits). Databases with depth images compressed in inverse depth format cannot be opened by rtabmap versions under 0.24.

github-actions Bot added a commit that referenced this pull request Oct 3, 2026
@codecov

codecov Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 62.15%. Comparing base (a4e7f13) to head (ec247e7).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1785      +/-   ##
==========================================
+ Coverage   62.02%   62.15%   +0.12%     
==========================================
  Files         292      292              
  Lines       51421    51528     +107     
==========================================
+ Hits        31893    32026     +133     
+ Misses      19528    19502      -26     
Files with missing lines Coverage Δ
corelib/include/rtabmap/core/Compression.h 100.00% <ø> (ø)
corelib/include/rtabmap/core/Memory.h 95.83% <ø> (ø)
corelib/include/rtabmap/core/Parameters.h 100.00% <100.00%> (ø)
corelib/include/rtabmap/core/SensorData.h 100.00% <ø> (ø)
corelib/src/Compression.cpp 95.02% <100.00%> (+8.79%) ⬆️
corelib/src/Memory.cpp 64.45% <100.00%> (+0.60%) ⬆️
corelib/src/SensorData.cpp 88.99% <100.00%> (+0.18%) ⬆️
corelib/src/VisualWord.cpp 100.00% <100.00%> (ø)

... and 1 file with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

github-actions Bot added a commit that referenced this pull request Oct 3, 2026
github-actions Bot added a commit that referenced this pull request Oct 3, 2026
github-actions Bot added a commit that referenced this pull request Oct 3, 2026
github-actions Bot added a commit that referenced this pull request Oct 4, 2026
@matlabbe
matlabbe merged commit aa95581 into master Oct 4, 2026
37 checks passed
@matlabbe
matlabbe deleted the depth-inverse-compression branch October 4, 2026 02:24
github-actions Bot added a commit that referenced this pull request Oct 4, 2026
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