-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support uint16 color layers #4152
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome refactoring ❤️ Cool to see how the previous float integration enabled this lightweight implementation!
Regarding the histogram: Maybe disable the histogram rendering for uint16 layer (like it's done for float currently). Or do you want to wait with merging until the histogram support is completed?
I think I'll disable the histogram for now :) |
I've disabled the histogram for all layers but (u)int8 for now. Although it was enabled for uint24 layers before, what was displayed was definitely not correct. |
@@ -135,7 +135,7 @@ class DatasetSettings extends React.PureComponent<DatasetSettingsProps, State> { | |||
const { alpha, color, intensityRange, isDisabled } = layer; | |||
let histogram = new Array(256).fill(0); | |||
if (this.state.histograms && this.state.histograms[layerName]) { | |||
histogram = this.state.histograms[layerName].histogram; | |||
({ histogram } = this.state.histograms[layerName]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, didn't know that syntax for already defined variables!
This PR adds uint16 color layer support. Histograms are not working correctly yet, very related to #4095.
Backend ToDo (highest priority first):
the backend doesn't send enough data for uint16 color layer buckets, looks like it automatically assumes uint8the backend doesn't detect uint16 color layers correctly when importing the dataset (detects uint8 instead)URL of deployed dev instance (used for testing):
Steps to test:
Issues: