how can we relate image pixels with elliptic curve points

1 visualización (últimos 30 días)
Muhammad Sohail Abid
Muhammad Sohail Abid el 22 de Sept. de 2018
Comentada: Muhammad Sohail Abid el 24 de Sept. de 2018
how can we relate image pixels with elliptic curve points which are in form of a table of 256 rows and 482 columns and after repeating pixel value we need to move to next column value
  2 comentarios
Image Analyst
Image Analyst el 22 de Sept. de 2018
After you read this link, attach a diagram, picture, or something to show what you want. I don't even know what "relate" or "move" means to you.
Muhammad Sohail Abid
Muhammad Sohail Abid el 24 de Sept. de 2018
disp('y^2 = x^3 + 5376x + 2438 mod 123457')
a=0:123456;
left_side = mod(a.^2,123457);
right_side = mod(a.^3+5376*a+2438,123457);
points = [];
for i = 1:length(right_side)
I = find(left_side == right_side(i));
for j=1:length(I)
points = [points;a(i),a(I(j))];
end
end
plot(points(:,1),points(:,2),'ro')
set(gca,'XTick',0:1:123456)
set(gca,'YTick',0:1:123456)
grid on;
pad_needed = 256 - (mod(size(points,1) - 1, 256) + 1);
if pad_needed > 0
points(end+pad_needed,:) = 0;
end
T = points;
Z = reshape(T,256,482,2);
img=rgb2gray(imread('lena.jpg'));
V=img(:);
V=V';

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Images en Help Center y File Exchange.

Productos


Versión

R2013a

Community Treasure Hunt

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

Start Hunting!

Translated by