For images with large data ranges (e.g. hot pixels) the manual changing of contrast limits towards lower values doesn't update the texture limits thus leading to image quantization artefacts.
import numpy as np import napari from skimage.data import camera x = camera().astype(np.uint16) x[100,100] = 2**16-1 napari.view_image(x)
Manually changing the contrasts limits to values like
(0,217) leads to this:
Type of change
- Bug-fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing functionality to not work as expected)
- This change requires a documentation update
Every pixel is sacred, every pixel is great. If a pixel is wasted, god gets quite irate.
How has this been tested?
- example: the test suite for my feature covers cases x, y, and z
- example: all tests pass with my change
napari/_tests depends on
tensorstore which seems not available for Apple Silicon arm64)
- My PR is the minimum possible work for the desired functionality
- I have commented my code, particularly in hard-to-understand areas
- I have made corresponding changes to the documentation
- I have added tests that prove my fix is effective or that my feature works
- If I included new strings, I have used
trans.to make them localizable. For more information see our translations guide.