An image is taken and converted into grey scale . Eight bit planes of an Image is extracted using bitget() function. For each plane , number of runs of zeros and ones are encoded. These encoded format is stored in a structure for all eight plane with first column representing the number of ones or zeros and the second column representing the bit one / zero. Also run length coding can be done. Also I have uploaded a matlab script check.m which can be used to find proper encoding of the original script
Sandhanakrishnan R (2019). Bit plane Encoding of an Image (https://www.mathworks.com/matlabcentral/fileexchange/72977-bit-plane-encoding-of-an-image), MATLAB Central File Exchange. Retrieved .
This Version has the zip format . No update in the code.
Small correction in check.m. Rest all is the same.