color image encryption; I have tried this code for color image encryption. the same code is tried for decryption but error occurs,because dimension exceeds!!

I=double(imread('baboon .tiff'));
randomSequence = round(rand(512,512)*255);
% Encryption by bitxor with psuedo random sequence
for k=1:3
eI = bitxor(I(:,:,k),randomSequence);
end
figure(1);
imshow(uint8(eI));

Réponses (0)

Cette question est clôturée.

Clôturé :

le 24 Fév 2018

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by