Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define texture internalformat to fix colormap discretisation #441

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

AnaVukasinovic
Copy link

The bug occurred because the "internalFormat" field of the data texture was left as None. The bug appeared in the SIMPLE_GEOLOCATED and PIXEL_MATRIX ImageDisplayMode. It was fixed by overriding the Image class, where the _init_texture method was overridden to set the "internalFormat" parameter to "r32f"

Copy link
Collaborator

@ameraner ameraner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion inline

@ameraner ameraner linked an issue Feb 26, 2025 that may be closed by this pull request
passing on eventual texture_kwargs in the _init_texture method

Co-authored-by: Andrea Meraner <49722768+ameraner@users.noreply.github.com>
@ameraner ameraner changed the title Fix 404: colorbar discretising colors issue in SIFT Define texture internalformat to fix colormap discretisation Feb 26, 2025
@AnaVukasinovic AnaVukasinovic marked this pull request as ready for review February 27, 2025 15:38
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.

Stretching the colormap range leads to discretised colors
3 participants