mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-07 14:40:53 +08:00
Add bool dtype range
This commit is contained in:
@@ -7,7 +7,9 @@ __all__ = ['img_as_float', 'img_as_int', 'img_as_uint', 'img_as_ubyte',
|
||||
from .. import get_log
|
||||
log = get_log('dtype_converter')
|
||||
|
||||
dtype_range = {np.uint8: (0, 255),
|
||||
dtype_range = {np.bool_: (False, True),
|
||||
np.bool8: (False, True),
|
||||
np.uint8: (0, 255),
|
||||
np.uint16: (0, 65535),
|
||||
np.int8: (-128, 127),
|
||||
np.int16: (-32768, 32767),
|
||||
|
||||
Reference in New Issue
Block a user