Binary file formats
DICOM segmented palette component
Expand one decoded 16-bit palette component and trace its encoded segments.
Your inputs
Start with an exampleYour result
Example resultHow it works
Append discrete values, interpolate each linear segment from the prior endpoint, and replay byte-addressed direct segments for indirect copies. Export exact fractions alongside integer samples.
A discrete 0 followed by a length-3 ramp ending at 9 expands to 0,3,6,9. Reusing a ramp after a different predecessor uses that current predecessor.
Limits
Already decoded words only, up to 200000 words and 65536 expanded entries; positive lengths/copy counts. Byte offsets must identify segment boundaries; indirect-to-indirect copies reject. Integer samples use labeled nearest-even rounding because the cited section does not specify a half-tie rule. No DICOM file, image, pixel-representation or dataset-conformance inference.