numpyimage 3.3.0__tar.gz → 3.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {numpyimage-3.3.0/numpyimage.egg-info → numpyimage-3.4.0}/PKG-INFO +1 -1
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/imageio.py +7 -2
- {numpyimage-3.3.0 → numpyimage-3.4.0/numpyimage.egg-info}/PKG-INFO +1 -1
- {numpyimage-3.3.0 → numpyimage-3.4.0}/pyproject.toml +1 -1
- {numpyimage-3.3.0 → numpyimage-3.4.0}/LICENSE +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/README.md +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/__init__.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/align.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/graphics.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/nrrd_utils.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/operations.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/utils.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/npimage/vidio.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/numpyimage.egg-info/SOURCES.txt +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/numpyimage.egg-info/dependency_links.txt +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/numpyimage.egg-info/requires.txt +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/numpyimage.egg-info/top_level.txt +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/setup.cfg +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/tests/test_heic.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/tests/test_pbm.py +0 -0
- {numpyimage-3.3.0 → numpyimage-3.4.0}/tests/test_video_writers.py +0 -0
|
@@ -367,7 +367,8 @@ def show(data,
|
|
|
367
367
|
dim_order='yx',
|
|
368
368
|
data_type: Literal['image', 'segmentation'] = 'image',
|
|
369
369
|
mode: Literal['PIL', 'mpl'] = 'PIL',
|
|
370
|
-
convert_to_8bit=True,
|
|
370
|
+
convert_to_8bit: bool = True,
|
|
371
|
+
convert_kwargs: dict = {'maximize_contrast': True},
|
|
371
372
|
channel_axis='guess',
|
|
372
373
|
**kwargs) -> None:
|
|
373
374
|
"""
|
|
@@ -411,7 +412,11 @@ def show(data,
|
|
|
411
412
|
data = np.moveaxis(data, utils.find_channel_axis(data), -1)
|
|
412
413
|
|
|
413
414
|
if convert_to_8bit and data.dtype != np.uint8:
|
|
414
|
-
|
|
415
|
+
if any(key in convert_kwargs for key in
|
|
416
|
+
['bottom_value', 'bottom_percentile', 'top_value', 'top_percentile']):
|
|
417
|
+
if 'maximize_contrast' not in convert_kwargs:
|
|
418
|
+
convert_kwargs['maximize_contrast'] = True
|
|
419
|
+
data = operations.to_8bit(data, **convert_kwargs)
|
|
415
420
|
|
|
416
421
|
colorbar = False
|
|
417
422
|
if 'colorbar' in kwargs:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|