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 visualización (últimos 30 días)
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 comentarios
Guillaume
Guillaume el 23 de Jul. de 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.

Iniciar sesión para comentar.

Respuesta aceptada

Aarti Dwivedi
Aarti Dwivedi el 23 de Jul. de 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

Más respuestas (0)

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by