首页 新闻 会员 周边 捐助

怎么显示嵌入图像,和逆变换后的图像

0
悬赏园豆:10 [待解决问题]

clc;
clear;

I = imread('lena.jpg');
key = 123;
rand('state',key);
W = round(rand(1,80));

s = size(I);
Sr = rand(2,length(W));

Sr(1,:) = ceil(Sr(1,:)*s(1));
Sr(2,:) = ceil(Sr(2,:)*s(2));

for i = 1:length(W)
I(Sr(1,i),Sr(2,i)) = mod(I(Sr(1,i),Sr(2,i)) + W(i),256);
end

叶晓柔的主页 叶晓柔 | 初学一级 | 园豆:48
提问于:2014-04-28 21:47
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册