hi,
here is some matlab code
clear
close all
x=imread('lena512.bmp'); %greyscale image
y=imread('hide.bmp'); %binary image
y1=bitget(uint8
,1); %this is LSB of binary image y (all other bits of image y are equal 0)
x1=bitset(x,1,y1); %puting LSB bits of image y into LSB bits of image x
subplot(221),imshow(x);title('Original image')
subplot(222),imshow(y1,[]);title('Binary image')
subplot(223),imshow(x1);title('Greyscale+binary image')
subplot(224),imshow(bitget(x1,1),[]);title('LSB of Greyscale+binary image')