-
Notifications
You must be signed in to change notification settings - Fork 6
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
Color Palette always selects bbr instead of bw #14
Comments
hey @Linus4world thank you! Would you mind generating a histogram of the image please? I'm planning to be able to adjust the scale, to increase contrast, but a palette picker should be faster for now. |
Here is a histogram of the ct scan. Note that there are some extreme outliers so I also attached a text file with all the values and their respective frequency. |
Interesting! Yes, this scenario only thresholding can solve. Maybe it can do something more intelligent about it in the future, to identify these outliers. Please bear with me! 🔜 As a workaround, you can highlight some of the data using the right histogram, by selecting a range there with the cursor (click and move). |
Great thanks for your support! Yes, however, even if I select a range, I have no control over the color. It will either be displayed in blue, black, red or yellow |
Yes indeed- I've added two new options: a color picker and a fine-tuner. The color picker is a bit obvious, but the fine-tuner allows you to adjust the color range for the distribution of your data. In the example, the image has a long tail from outliers, so I adjusted the white thumb to a more reasonable place in the image distribution. LMK what you think and if it helps in your case. |
Yes perfect! That is exactly what I wanted. Thank you! |
Yeah, that would be great indeed. I'll have to think better about the settings, and what would be the most user friendly solution. Other than global options, an option is to record the choices in the file using Nifti extensions (a XML-like payload stored in the end of the file). I've opened an issue to track this: #18 Thank again for the feedback! |
For all my scans the images are displayed with the bbr color palette instead of the usual bw.
The color palette is chosen based on the min value of the nifti file.
https://github.com/anibalsolon/vscode-neuro-viewer/blob/main/webview/nifti/index.ts#L24-L26
I would either like to see the standard bw scale being used or a button to switch the color palette.
The text was updated successfully, but these errors were encountered: