Skip to content

Conversation

Rylern
Copy link
Contributor

@Rylern Rylern commented Apr 23, 2025

Fix #1736 by making RenderedImageServer use gamma of QuPath viewer

@petebankhead
Copy link
Member

Interesting! I didn't imagine it would be so simple... I also didn't imagine getGammaOp() would be a public method in the viewer. I'm not sure it should be a public method, but it is, so this looks like a good fast solution for now.

Minimal example script to document use:

def path = buildPathInProject("rendered.png")
writeRenderedImage(getCurrentViewer(), path)

I confirm it applies the gamma to the image, while the overlay is unchanged.

@petebankhead petebankhead merged commit ef601ab into qupath:main Apr 23, 2025
3 checks passed
@Rylern Rylern deleted the gamma-in-rendered-image-server branch April 24, 2025 07:50
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.

Rendered RGB export does not use gamma setting
2 participants