Bitplane-slicing-of-an-image If you want to split the image bit planes use "bitplane_slicing.py" To construct the image from the splitted individual bit planes (starting from MSBs) use "rejoin_planes.py" If you want to perform both steps using single code use "split_and_rejoin.py" input image Bit plane 0 Bit plane 1 Bit plane 2 Bit plane 2 Bit plane 4 Bit plane 5 Bit plane 6 Bit plane 7