Skip to content

Gray saturation fix: drop blank channels from mean#1423

Merged
carsen-stringer merged 2 commits into
mainfrom
saturation_fix
Mar 30, 2026
Merged

Gray saturation fix: drop blank channels from mean#1423
carsen-stringer merged 2 commits into
mainfrom
saturation_fix

Conversation

@mrariden
Copy link
Copy Markdown
Collaborator

Grayscale image is calculated across blank image channels in GUI, causing saturation to display incorrectly. See #1422

The fix was to drop the blank channels from the mean calculation.

Tested with 2D/3D single and 2-channel images. Appears to be working well.

Before (incorrect):
CP4_incorrect

After (with fix):
CP4_correct

Resolves #1422

@carsen-stringer carsen-stringer merged commit a9f8bfc into main Mar 30, 2026
6 checks passed
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.

[BUG] GUI image displays mean of zero channels plus data channel

2 participants