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 次查看(过去 30 天)
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 个评论
Guillaume
Guillaume 2018-7-23
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.

请先登录,再进行评论。

采纳的回答

Aarti Dwivedi
Aarti Dwivedi 2018-7-23
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by