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
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Ambika Umahetty
am 23 Jul. 2018
Bearbeitet: Ambika Umahetty
am 23 Jul. 2018
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 Kommentare
Guillaume
am 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.
Akzeptierte Antwort
Aarti Dwivedi
am 23 Jul. 2018
These are some of the functions that you code uses. As a general rule, this is not a homework site, so you need to tell us what you have already tried, and what is it you don't understand.
Pixel intensity is just a representation of what the brightness of the pixel is. For an 8-bit image this value ranges from 0-255. For a grayscale image it is the grayscale value itself, and for an RGB image intensity can be imagined as an average of red, green, and blue in the HSI space. HSI is hue, saturation, and intensity. There are plenty of good resources on the net for beginners, like HSI
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!