You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use signal-based compositing for correct blending with any colormap
The naive additive blend (sum RGB + clip) only works with black-to-color
LUTs. For white-to-color cmaps (e.g. Reds, Greens) it saturates to
white; for diverging cmaps (e.g. seismic) it washes out.
Signal-based blending subtracts each cmap's zero-value before summing,
then composites onto a canvas colored by the mean zero-value. This
reduces to standard additive for black-to-color LUTs (Napari/ImageJ)
and to invert-add-invert for white-to-color LUTs (ImageJ Composite
Invert), while producing reasonable results for arbitrary cmaps.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
0 commit comments