5 views

Uploaded by Yashas

Arnold Cat map

Arnold Cat map

© All Rights Reserved

- History of Laplace Transform
- Ex Tt 2sx Summer2012
- Differential.equations.and.Control.theory.ebook EEn
- EE 324 Lab Report 1
- null
- Quiz 8 Solution
- History of Mathematics.pdf
- 9789382332640.pdf
- Mixture Problems Handouts.pdf
- POSTER ICOBIO NENDEN.pptx
- math 2272 2016-17 sem 2 assignment 2
- Applied and Computational Mathematics | Princeton University
- 1007.4600
- Math Promos Summary 2010 Final
- Inter-universal Teichmuller Theory I
- geometry math nation review for section 3
- Direct Variation Worksheet
- Lab 33 Physics
- Lecture11
- MIT2_087F14_Homework5

You are on page 1of 3

close all;

clear all;

image = imread('house.tiff');

figure

imshow(image)

figure

imhist(image)

[u,v,w] = size(image);

img_red = image(:,:,1); % Red channel

img_green = image(:,:,2); % Green channel

img_blue = image(:,:,3); % Blue channel

shuffled_red = zeros(u,v, 'uint8');

shuffled_green = zeros(u,v, 'uint8');

shuffled_blue = zeros(u,v, 'uint8');

twobytwo = zeros(2,2);

threebyone = zeros(3,1);

shuffled = zeros(size(image), 'uint8');

a = input('Enter the value of p in arnold cat map: ');

b = input('Enter the value of q in arnold cat map: ');

c = input('Enter the value of r in arnold cat map: ');

d = input('Enter the value of s in arnold cat map: ');

matrixA = [1 a b; c ((a*c)+1) (b*c); d (a*b*c*d) ((b*d)+1)];

matrixA = mod(matrixA, 256);

for k = 1:w

for i = 1:u

for j = 1:v

threebyone = mod(matrixA * [i; j; k], 256);

shuffled(threebyone(1,1) + 1, threebyone(2,1) + 1,

mod(threebyone(3,1),w) + 1) = image (i,j,k);

end

end

end

%threebyone

%figure

%imshow(shuffled)

%----------------------ARNOLD CAT MAP ENDS-----------------------%

%----------------------CHAOTIC MAP-------------------------------%

R1 = shuffled(:,:,1); % Red channel

G1 = shuffled(:,:,2); % Green channel

B1 = shuffled(:,:,3); % Blue channel

chaotic = lorentz(u*v,0,35,28,3,1,1,1,0.001);

for i = 1:u*v

chaotic(i) = floor(mod( (abs( chaotic(i) - floor(chaotic(i)) ) * 1e14), 256 ));

end

chaotic = uint8(chaotic);

%whos R1 chaotic

R1 = de2bi(R1);

G1 = de2bi(G1);

B1 = de2bi(B1);

chaotic = de2bi(chaotic);

em = bitxor(R1, chaotic);

%to make it into a 1D matrix from 2D of [65536,8]

reshape(em,[65536*8, 1]);

%converting the 65536*8 binary matrix into a*b matrix after intialisation

ei = zeros(u, v, 'uint8');

count = 1;

for index = 1 : 8 : 256*256*8

substring = em(index:index+7);

substring = num2str(substring);

ei(count) = bin2dec(substring);

count = count+1;

end

R2 = ei;

em = bitxor(G1, chaotic);

%to make it into a 1D matrix from 2D of [65536,8]

reshape(em,[65536*8, 1]);

%converting the 65536*8 binary matrix into a*b matrix after intialisation

ei = zeros(u, v, 'uint8');

count = 1;

for index = 1 : 8 : 256*256*8

substring = em(index:index+7);

substring = num2str(substring);

ei(count) = bin2dec(substring);

count = count+1;

end

G2 = ei;

em = bitxor(B1, chaotic);

%to make it into a 1D matrix from 2D of [65536,8]

reshape(em,[65536*8, 1]);

%converting the 65536*8 binary matrix into a*b matrix after intialisation

ei = zeros(u, v, 'uint8');

count = 1;

for index = 1 : 8 : 256*256*8

substring = em(index:index+7);

substring = num2str(substring);

ei(count) = bin2dec(substring);

count = count+1;

end

B2 = ei;

R2 = col(:,1:256);

G2 = col(:,257:512);

B2 = col(:,513:768);

%whos R2 G2 B2

I(:,:,1) = R2;

I(:,:,2) = G2;

I(:,:,3) = B2;

figure

imshow(I);

figure

imhist(I);

- History of Laplace TransformUploaded bynishagoyal
- Ex Tt 2sx Summer2012Uploaded byGeorge Turcas
- Differential.equations.and.Control.theory.ebook EEnUploaded bymetkmy
- EE 324 Lab Report 1Uploaded byBrittany Duffy
- nullUploaded byapi-25935812
- Quiz 8 SolutionUploaded byjay1191
- History of Mathematics.pdfUploaded bysapabapjava2012
- 9789382332640.pdfUploaded byjyoti
- Mixture Problems Handouts.pdfUploaded byBhabhie QueEnie Ü
- POSTER ICOBIO NENDEN.pptxUploaded byNSiti Nurkholipah
- math 2272 2016-17 sem 2 assignment 2Uploaded byapi-347852764
- Applied and Computational Mathematics | Princeton UniversityUploaded byharvey
- 1007.4600Uploaded byManoj Kumar
- Math Promos Summary 2010 FinalUploaded byn2oaddict
- Inter-universal Teichmuller Theory IUploaded byMiguelTolentino
- geometry math nation review for section 3Uploaded byapi-367528533
- Direct Variation WorksheetUploaded byMaria Marjorie Palconit Noquera
- Lab 33 PhysicsUploaded byHamza Khalid
- Lecture11Uploaded byshweta_lakshmanan
- MIT2_087F14_Homework5Uploaded byOmar Saeed
- Mathematics 1 Set4Uploaded byabhibangaram
- AlgebraUploaded byCancan Manlutac
- 9781441971265-t1Uploaded bynikhilpathak16674
- ejericios de cisco.docxUploaded byJUan
- Salesforce Report Summary Functions CheatsheetUploaded byMadhuri Malayathi
- Blatt03Uploaded bySanjita Chouhan
- Exercises to Chapter 2Uploaded bymanaj_mohapatra2041
- SQA lab 2Uploaded byDinesh Arriel
- Tutorial 7AUploaded bya
- Maintenance-consensus1Uploaded byalvmikel9444

- CI2001AS,BS - Owner's Manual.pdfUploaded byErnesto Torres
- Combinatorial GroupUploaded byBùi Văn Thạch
- LED_license.txtUploaded byJulianMachado
- Mehroz_Karim_CVUploaded bytahirmmd
- Mercury X-ray SoftwaareUploaded byjiviyana
- Nvbit Bitlocker PresentationUploaded byrasklad1
- LOGARITHMIC SEARCH FOR MOTION ESTIMATIONUploaded byCarlos Andres Gomez Garcia
- The SELinux Notebook the Foundations 3rd EditionUploaded byAnonymous pcdyTAlh
- S21_SRM701_BPD_EN_DEUploaded bymadhukar69
- Peter j Carroll Psybermagick PDFUploaded bycesargnomo
- Analyzer v5 LTE Training_print_copyUploaded byzhanjum
- UNCEFACT-2015-2_UNLOCODE_SecretariatNotes.pdfUploaded byRE TP
- Letter of Agreement February 13, 2009 Mr. Randall SmithUploaded byapi-10533238
- 7.Standard Adapter Framework modules [AF_Modules]...pdfUploaded byankaiah_yadav
- UOP SignalsUploaded byObed Bardales
- 1Uploaded byDarshan Minnanda
- sap_netweaver_availability_cluster_740_setup_guide.pdfUploaded bytahir mohammad
- Tackling Russian Propaganda through Investigating Russian Influence in the Media Sector - by Todor Galev, PhD, Chisinau, Dec 4, 2018Uploaded byLyubomir Sirkov
- Library Circulation SystemUploaded byHalima
- Logarithmic Functions(1) (1)Uploaded byThomas Wash
- Teklabook_Lesson7_SteelDetailingUploaded byMrsonso
- Innovation Lab [Makerspace @ SPC] Terms of UseUploaded byChad Mairn
- International Conference on EngineeringUploaded byAnchal Singh
- Hobart Quantum ManualUploaded byNoah Jones
- Serial Office 2013Uploaded byJosivaldo Cabral
- Ray tracing and velocity estimationUploaded byDebora Cores Carrera
- A starUploaded bytoncuvasile
- Uninformed SearchUploaded byOsaigbovo Timothy
- Rossiter-RIntro-ITC.pdfUploaded bynitesh kewat
- Pay Per Text ProfitUploaded byAlexandra Diana Duda