Skip to content

ImageItem: request for 256-entry lut#2808

Merged
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:req-256lut
Aug 27, 2023
Merged

ImageItem: request for 256-entry lut#2808
j9ac9k merged 1 commit intopyqtgraph:masterfrom
pijyoi:req-256lut

Conversation

@pijyoi
Copy link
Copy Markdown
Contributor

@pijyoi pijyoi commented Aug 27, 2023

When used with HistogramLUTItem, floating and uint16 images will by default receive a 512-entry LUT. This causes the rendered QImage to use RGBA8888 format.

This PR makes ImageItem request for a 256-entry LUT, which:

  1. allows rendering to the more efficient Indexed8 format. (1 byte per pixel)
  2. avoids interpolation of the bundled colormaps which are natively 256-entry.

@j9ac9k j9ac9k merged commit 391524c into pyqtgraph:master Aug 27, 2023
@pijyoi pijyoi deleted the req-256lut branch August 27, 2023 12:29
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.

2 participants