Skip to content

Keep the full Livox tag byte in point_source_ID; tag histogram per chunk - #7

Open
siju-mf wants to merge 5 commits into
feature/mlaz-writerfrom
feature/z011-livox-tag
Open

siju-mf wants to merge 5 commits into
feature/mlaz-writerfrom
feature/z011-livox-tag

Conversation

@siju-mf

@siju-mf siju-mf commented Dec 4, 2026

Copy link
Copy Markdown
Collaborator

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).

siju-mf and others added 5 commits December 4, 2026 12:44
…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>
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.

2 participants