Sah*_*Roy 4 python arrays numpy
有np.unit9可能吗?为什么它是使用?
red_lower = np.array([136, 87, 111], np.uint9)
Run Code Online (Sandbox Code Playgroud)
https://numpy.org/doc/stable/reference/arrays.scalars.html#unsigned-integer-types
class numpy.ubyte[source]
Unsigned integer type, compatible with C unsigned char.
Character code
'B'
Alias on this platform (Linux x86_64)
numpy.uint8: 8-bit unsigned integer (0 to 255).
Run Code Online (Sandbox Code Playgroud)
最常用于表示图像的数组,其中 3 个颜色通道具有较小的整数值(0 到 255)。
| 归档时间: |
|
| 查看次数: |
31716 次 |
| 最近记录: |