MATLAB: How to do one bit difference between plain images in matlab .

bit planebitgetbitsetEmbedded CoderFilter Design HDL CoderHDL Codermatlab coder

Image= imread('camera man.png');
suppose
A=[12 13;16 8];
A=[00001100 00001101;
0010000 00001000];
if 4th bit =0
then
A=[00000100 00000101;00010000 000000000];
A=[4 5;16 0]

Best Answer

See my attached demo for dealing with bitplanes.
Related Question