: bwunpack (bwp)
: bwunpack (bwp, m)

Unpack binary image.

Each row of the packed binary image bwp, represented as an uint32 matrix, is unpacked into 32 rows of logical values. The unpacking is done such that the least significant bit of the first element in bwp maps to the first element in the unpacked image, and the most significant bit to the 32th element.

The unpacked image will be a logical array with m rows. The length of the other dimensions will be the same as bwp. If m is not specified, it will unpack all bits in bwp, otherwise the extra bits will be considered padding resulting from the packing. See the help text for bwpack for details.

See also: bwpack, bitpack, bitunpack.

Package: image