Zeroize bit planes in 8-bit color images as a form of image augmentation. Bit plane slicing has previously been used for image compression.
$ git clone https://github.com/deanwetherby/bit-plane-slicing
$ cd bit-plane-slicing
$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ python -m pip install --upgrade pip setuptools wheel
(venv) $ python -m pip install -r requirements.txt
(venv) $ python main.py -h
usage: main.py [-h] [-i INPUT] [-o OUTPUT] [-p PLANE [PLANE ...]]
optional arguments:
-h, --help show this help message and exit
-i INPUT, --input INPUT
Input image path
-o OUTPUT, --output OUTPUT
Output image path
-p PLANE [PLANE ...], --plane PLANE [PLANE ...]
Space separated list of bit planes to zeroize
original image.jpg
(venv) $ python main.py --input images/image.jpg --output images/output_0.jpg --plane 0
(venv) $ python main.py --input images/image.jpg --output images/output_1.jpg --plane 1
(venv) $ python main.py --input images/image.jpg --output images/output_2.jpg --plane 2
(venv) $ python main.py --input images/image.jpg --output images/output_3.jpg --plane 3
(venv) $ python main.py --input images/image.jpg --output images/output_4.jpg --plane 4
(venv) $ python main.py --input images/image.jpg --output images/output_5.jpg --plane 5
(venv) $ python main.py --input images/image.jpg --output images/output_6.jpg --plane 6
(venv) $ python main.py --input images/image.jpg --output images/output_7.jpg --plane 7