我有一个 3D numpy 位数组,我需要沿第三个轴打包它们。所以 numpy.packbits 到底是做什么的。但不幸的是它只打包到 uint8,但我需要更多数据,是否有类似的方法将其打包到 uint16 或 uint32?
numpy python-3.x
numpy ×1
python-3.x ×1