Steganography using Spread Spectrum, Why is datanoise still an error?
3 次查看(过去 30 天)
显示 更早的评论
global image pesan;
% hObject handle to EmbedStart (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
CoverImage = image;
p_password = length(EmPass);
pass = 0;
for a = 1 : length(EmPass)
pass = pass + EmPass(a);
end
embedpass = pass;
[P,L] = size(Data);
Noise = zeros(size(CoverImage));
for i = 1:P
for j = 1:L
Noise((i-1)*K+1:i*K,(j-1)*K+1:j*K) = Data(P*L);
end
end
myStream=RandStream('threefry4x64_20');
RNG = rand(myStream,embedpass,p_password);
DataNoise = 1*Noise.*RNG;
datacover=image+DataNoise;
if length(size(image)) > 2
[P,L] = size (image);
hasilcover = uint8(zeros(P,(L/3),3));
hasilcover(:,:,1) = datacover;
hasilcover(:,:,2) = image(:,:,2);
hasilcover(:,:,3) = image(:,:,3);
hasilcover = ycbcr2rgb(hasilcover);
image = ycbcr2rgb(image);
else
hasilcover = datacover;
end
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Read, Write, and Modify Image 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!