Repository navigation
Conversation
…am per chunk LAS 1.2 classification has 5 bits, so tag bits 5-7 were lost (Mid-360: bit 5 marks "other: low confidence"). saveLaz and saveMlaz now also write the whole tag byte to point_source_ID; classification stays tag & 0x1F as in older files. Other LiDARs write tag 0, so their records do not change. The Livox plugin counts the tag values of the buffered points (after the zero filter, before decimation) per head and reports the last chunk's histogram as lidar.last_chunk_livox_tag in statusNNNN.json, with bits_5_7_points. The histogram lives in the plugin's own status, so LidarChunk (shared with older plugins) is unchanged. check_save_mlaz.py checks point_source_ID == tag and the whole classification byte == tag & 0x1F record by record, all 256 tag values present; --laz-base replaces --laz-ref and checks that LAS/LAZ from the previous save_laz.cpp differ only in point_source_ID. test_save_mlaz unit-tests the histogram. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LAS 1.2 classification keeps tag bits 0-4 only, so bit 5 (Mid-360 "other: low
confidence") was lost. LAZ and mLAZ now also store the whole tag byte in
point_source_ID; classification is unchanged (tag & 0x1F). Other LiDARs write 0.
statusNNNN.json gets lidar.last_chunk_livox_tag: per-head histogram of tag
values (after the zero filter, before decimation) and bits_5_7_points.
LidarChunk is unchanged, so older plugins keep working.
Test: test/mlaz/check_save_mlaz.py checks point_source_ID == tag record by
record (all 256 values); --laz-base shows LAS/LAZ differ from the previous
save_laz.cpp only in point_source_ID. Size on 5 recorded files (tag
approximated by classification): LAZ +0.73%, mLAZ -0.27%.
Not built here: the Livox plugin (syntax-checked only).