Skip to content

Instantly share code, notes, and snippets.

@aldajo92
Last active May 14, 2022 17:08
Show Gist options
  • Save aldajo92/83712acbdb70e314c07c9a36af0e5dfe to your computer and use it in GitHub Desktop.
Save aldajo92/83712acbdb70e314c07c9a36af0e5dfe to your computer and use it in GitHub Desktop.
clear
I = imread("imagen.jpg");
G = rgb2gray(I);
GD = im2double(G);
[ni,mi] = size(G)
A = zeros(size(G));
for n=1:50
for i=1:ni
for j=1:mi
A(i,j) = ((i+j)/(i*j))-((i+j)/(i*j)*power((n+100)/(n),2));
end
end
pause(1)
imshow(GD+A)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment