MATLAB: How to combine bit map images to get back the original grey scale image

i have converted the grey scale image into 6 bit map images. i am using these 8 images as watermark inserting into the video. after extracting all these 8 images.Image Processing Toolbox

C=imread('cameraman.tif'); C1=bitget(C,1); figure, imshow(logical(C1));title('Bit plane 1'); C2=bitget(C,2); figure, imshow(logical(C2));title('Bit plane 2'); C3=bitget(C,3); figure, imshow(logical(C3));title('Bit plane 3'); C4=bitget(C,4); figure, imshow(logical(C4));title('Bit plane 4'); C5=bitget(C,5); figure, imshow(logical(C5));title('Bit plane 5'); C6=bitget(C,6); figure, imshow(logical(C6));title('Bit plane 6'); C7=bitget(C,7); figure, imshow(logical(C7));title('Bit plane 7'); C8=bitget(C,8); figure, imshow(logical(C8));title('Bit plane 8');

Best Answer

Multiply bit plane 7 by 2^7, bitplane 6 by 2^6, and so on. Then add them all up.