全文预览

基于matlab的数字图像加密解密技术研究

上传者:徐小白 |  格式:docx  |  页数:11 |  大小:1047KB

文档介绍
=size(RGB);Рi=randsample(s(1),s(1));РRGBS=RGB(i,:,:);Рt=1;j=1;f=1:i;Рwhile t<=length(i)Р f(j)=find(i==t);Р t=t+1;Р j=j+1;РendРi1=randsample(s(2),s(2));РRGBS1=RGBS(:,i1,:);Рt1=1;j1=1;f1=1:i1;Рwhile t1<=length(i1)Р f1(j1)=find(i1==t1);Р t1=t1+1;Р j1=j1+1;РendРRGBE1=RGBS1(:,f1,:);РRGBE=RGBE1(f,:,:);Рsubplot(1,2,1);imshow(RGBS1);Рtitle('加密后','fontsize',20);Рsubplot(1,2,2);imshow(RGBE);Рtitle('解密后','fontsize',20);Р程序四(jiamijiemi.m):РclearРRGB=imread('lenna.jpg');Рs=size(RGB);Рn=s(1)*s(2)*s(3);Рr=randsample(n,n);РRGBS=RGB(r);РRGBSS=reshape(RGBS,s(1),s(2),s(3));Рt=1;j=1;Рf=1:n;Рwhile t<=length(r)Р f(j)=find(r==t);Р t=t+1;Р j=j+1;РendРRGBE=RGBS(f);РRGBEE=reshape(RGBE,s(1),s(2),s(3));Рsubplot(1,2,1);imshow(RGBSS);Рtitle('加密后','fontsize',20);Рsubplot(1,2,2);imshow(RGBEE);Рtitle('解密后','fontsize',20);

收藏

分享

举报
下载此文档