numpy.unpackbits(myarray, axis=None)
myarray - array of uint8 type where each element represents a bit-field

that should be unpacked into a boolean output array

The shape of the output array is either 1-d (if axis is None) or the same shape as the input array with unpacking done along the axis specified.

Previous topic


Next topic


This Page

Quick search