Expand description
CCSDS 123.0-B-2 Low-Complexity Lossless Multispectral & Hyperspectral Image Compression. CCSDS 123.0-B-2 Low-Complexity Lossless and Near-Lossless Multispectral and Hyperspectral Image Compression.
Implements the predictor and sample-adaptive entropy coder for 3D image data (NX x NY x NZ). Supports lossless compression with full or reduced prediction mode, wide/narrow neighbor-oriented or column-oriented local sums, and default weight initialization.
§Limitations
- Sample-adaptive entropy coder only (no hybrid/block-adaptive)
- BSQ encoding order only
- Lossless mode only (no near-lossless quantization)
- Default weight initialization only (no custom)
- No supplementary information tables
- Dynamic range D limited to 2..=16
- P (prediction bands) limited to 0..=15
- Image dimensions capped by
MAX_DIM
Structs§
- Config
- Compressor configuration.
Enums§
- Error
- Compression/decompression error.
- Local
SumType - Local sum type.
- Prediction
Mode - Prediction mode.
Functions§
- compress
- Compress a 3D image using CCSDS 123.0-B-2.
- decompress
- Decompress a CCSDS 123.0-B-2 compressed image.
- scratch_
len - Compute the required scratch buffer size (in
i64elements) for a given image configuration.