Matlab练习——LSB替换

clear all;clc;
R=uint8(rand(512));
I = imread('E:\\2012\\The standard image\\Lena.bmp');
figure(1)
imshow(I);title('原始图像');
figure(2)
imhist(I);title('原始图像直方图');
I = bitshift(I,-1);
I = bitshift(I,1);
I = bitor(I,R);
figure(3);
imshow(I);title('LSB替换图像满嵌');
figure(4);
imhist(I);title('LSB替换图像直方图');

posted @ 2013-03-13 07:45  boys2012  阅读(629)  评论(0编辑  收藏  举报