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替换图像直方图');

转载于:https://www.cnblogs.com/kingboys/archive/2013/03/13/2956923.html

你可能感兴趣的:(Matlab练习——LSB替换)