I have an image I want to hide some text in it
I think I should get the bitplanes as follows:
a=imread('insect.gif');
[m n]=size(a);
for i=1:m,
for j=1:n,
b8(i,j)=bitand(a(i,j),128);
b7(i,j)=bitand(a(i,j),64);
b6(i,j)=bitand(a(i,j),32);
b5(i,j)=bitand(a(i,j),16);
b4(i,j)=bitand(a(i,j),8);
b3(i,j)=bitand(a(i,j),4);
b2(i,j)=bitand(a(i,j),2);
b1(i,j)=bitand(a(i,j),1);
end
end
so that I have first bit in "b1",second bit in "b2",third bit in "b3",....
s='class is good'
h=dec2bin(s,8)
it will give me my text each character in 8 bits I think I should hide my text in the LSB of the matrix of the image but I don't know how to do that.