Advertisement
Guest User

ARNOL1 Criptografia

a guest
Dec 18th, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. function resumen = arnol_01( texto,matriz )
  2. %UNTITLED Summary of this function goes here
  3. % Detailed explanation goes here
  4. imagen=imread(texto);
  5. [fil,col,fon]=size(imagen);
  6. figure(1);imshow(imagen);
  7. aa=zeros(fil,col,fon);
  8. for i=1: fil
  9. for j=1: col
  10. for w=1: fon
  11. aux2=imagen(i,j,w);
  12. aux=mod(matriz*[i j]',fil);
  13. if(aux(1))==0
  14. aux(1)=fil;
  15. end
  16. if aux(2) == 0
  17. aux(2) =col;
  18. end
  19. aa(aux(1),aux(2),w)=aux2;
  20. end
  21. end
  22. end
  23. aa
  24. imwrite(aa,'mariposacuadrada01.bmp');
  25. figure(2);imshow('mariposacuadrada01.bmp');
  26. resumen=1;
  27.  
  28.  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement