mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-01 21:32:10 +08:00
Merge pull request #316 from tonysyu/doc-img_as_bool
DOC: Fix docstring note about conversion range
This commit is contained in:
@@ -360,7 +360,8 @@ def img_as_bool(image, force_copy=False):
|
||||
|
||||
Notes
|
||||
-----
|
||||
All non-zero elements are treated as True.
|
||||
The upper half of the input dtype's positive range is True, and the lower
|
||||
half is False. All negative values (if present) are False.
|
||||
|
||||
"""
|
||||
return convert(image, np.bool_, force_copy)
|
||||
|
||||
Reference in New Issue
Block a user