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
Show older comments
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 Comments
Aarti Dwivedi
on 23 Jul 2018
Can you format your code properly? Did you try searching for some of the functions that are included in your code?
Ambika Umahetty
on 23 Jul 2018
Walter Roberson
on 23 Jul 2018
We have no idea what your level of computer experience is. Explaining the lines might require writing two or three textbooks.
Aarti Dwivedi
on 23 Jul 2018
The answer already deals with that Ambika.
Ambika Umahetty
on 23 Jul 2018
Edited: Ambika Umahetty
on 23 Jul 2018
Ambika Umahetty
on 23 Jul 2018
Edited: Ambika Umahetty
on 23 Jul 2018
Guillaume
on 23 Jul 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
on 23 Jul 2018
Edited: Ambika Umahetty
on 23 Jul 2018
Accepted Answer
More Answers (0)
Categories
Find more on Image Processing Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!