can anyone say the simple definiton of pixel intensity? i am cse student so doesnt know exactly what it is?i want the simple definition with example? and also in the following code is used for encryption i also want the brief description of each line
Afficher commentaires plus anciens
cover_bi=de2bi(a_co1);
cover_bi1=cover_bi;
so_bi1=xor(cover_bi(:,1),mask1);
cover_bi(:,1)=so_bi1;
so_bi2=bi2de(cover_bi);
em_en=reshape([so_bi2; a_co(length(mask1)+1:end)],[size(CA)]);
figure,imshow(em_en,[]),title('Encrypted');
8 commentaires
Aarti Dwivedi
le 23 Juil 2018
Can you format your code properly? Did you try searching for some of the functions that are included in your code?
Ambika Umahetty
le 23 Juil 2018
Walter Roberson
le 23 Juil 2018
We have no idea what your level of computer experience is. Explaining the lines might require writing two or three textbooks.
Aarti Dwivedi
le 23 Juil 2018
The answer already deals with that Ambika.
Ambika Umahetty
le 23 Juil 2018
Modifié(e) : Ambika Umahetty
le 23 Juil 2018
Ambika Umahetty
le 23 Juil 2018
Modifié(e) : Ambika Umahetty
le 23 Juil 2018
Guillaume
le 23 Juil 2018
i got that code while browsing
Using random code of unknown quality off the internet is not a good idea. The first 5 lines are just a complicated and sloooow way of doing:
so_bi2 = bitxor(a_co1, mask1); %assuming that mask1 is a decimal number.
encrypting an image
xor encryption is trivial to defeat and can be cracked in no time at all. There's only 255 keys to try.
Ambika Umahetty
le 23 Juil 2018
Modifié(e) : Ambika Umahetty
le 23 Juil 2018
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Image Processing Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!